Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
GarfieldConstants.hh
Go to the documentation of this file.
1
2#ifndef G_GARFIELD_CONSTANTS_H
3#define G_GARFIELD_CONSTANTS_H
4
5namespace Garfield {
6
7static const int IonProdTypeElectron = -1;
8static const int IonProdTypeHole = 1;
9static const int IonProdTypeIon = 2;
10
11static const int DxcProdTypeElectron = -1;
12static const int DxcProdTypePhoton = 1;
13
14// Collision types
15static const int ElectronCollisionTypeElastic = 0;
16static const int ElectronCollisionTypeIonisation = 1;
17static const int ElectronCollisionTypeAttachment = 2;
18static const int ElectronCollisionTypeInelastic = 3;
19static const int ElectronCollisionTypeExcitation = 4;
20static const int ElectronCollisionTypeSuperelastic = 5;
21
22static const int ElectronCollisionTypeAcousticPhonon = 10;
23static const int ElectronCollisionTypeOpticalPhonon = 11;
24static const int ElectronCollisionTypeIntervalleyG = 12;
25static const int ElectronCollisionTypeIntervalleyF = 13;
26static const int ElectronCollisionTypeInterbandXL = 14;
27static const int ElectronCollisionTypeInterbandXG = 15;
28static const int ElectronCollisionTypeInterbandLG = 16;
29static const int ElectronCollisionTypeImpurity = 17;
30
31static const int PhotonCollisionTypeElastic = 0;
32static const int PhotonCollisionTypeIonisation = 1;
33static const int PhotonCollisionTypeInelastic = 2;
34static const int PhotonCollisionTypeExcitation = 3;
35
36// Status codes for drift lines
37static const int StatusAlive = 0;
38static const int StatusLeftDriftArea = -1;
39static const int StatusTooManySteps = -2;
40static const int StatusCalculationAbandoned = -3;
41static const int StatusLeftDriftMedium = -5;
42static const int StatusAttached = -7;
43static const int StatusBelowTransportCut = -16;
44static const int StatusOutsideTimeWindow = -17;
45static const double Small = 1.e-20;
46
47static const double BoundaryDistance = 1.e-8;
48
49// Conversion from Tesla to internal magnetic field units
50// compatible with cm and ns.
51static const double Tesla2Internal = 1.e5;
52}
53
54#endif