Garfield++ v2r0
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 StatusSharpKink = -8;
44static const int StatusBelowTransportCut = -16;
45static const int StatusOutsideTimeWindow = -17;
46static const double Small = 1.e-20;
47
48static const double BoundaryDistance = 1.e-8;
49
50// Conversion from Tesla to internal magnetic field units
51// compatible with cm and ns.
52static const double Tesla2Internal = 1.e5;
53}
54
55#endif