Garfield++ 3.0
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;
21static const int ElectronCollisionTypeVirtual = 6;
22
23static const int ElectronCollisionTypeAcousticPhonon = 10;
24static const int ElectronCollisionTypeOpticalPhonon = 11;
25static const int ElectronCollisionTypeIntervalleyG = 12;
26static const int ElectronCollisionTypeIntervalleyF = 13;
27static const int ElectronCollisionTypeInterbandXL = 14;
28static const int ElectronCollisionTypeInterbandXG = 15;
29static const int ElectronCollisionTypeInterbandLG = 16;
30static const int ElectronCollisionTypeImpurity = 17;
31
32static const int PhotonCollisionTypeElastic = 0;
33static const int PhotonCollisionTypeIonisation = 1;
34static const int PhotonCollisionTypeInelastic = 2;
35static const int PhotonCollisionTypeExcitation = 3;
36
37// Status codes for drift lines
38static const int StatusAlive = 0;
39static const int StatusLeftDriftArea = -1;
40static const int StatusTooManySteps = -2;
41static const int StatusCalculationAbandoned = -3;
42static const int StatusLeftDriftMedium = -5;
43static const int StatusAttached = -7;
44static const int StatusSharpKink = -8;
45static const int StatusBelowTransportCut = -16;
46static const int StatusOutsideTimeWindow = -17;
47static const double Small = 1.e-20;
48
49static const double BoundaryDistance = 1.e-8;
50
51// Conversion from Tesla to internal magnetic field units
52// compatible with cm and ns.
53static const double Tesla2Internal = 1.e5;
54}
55
56#endif