-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathConstants.h
124 lines (91 loc) · 4.12 KB
/
Constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
//Constants.h.
#ifndef CONSTANTS_H_PROJECT_TRANSPORT
#define CONSTANTS_H_PROJECT_TRANSPORT
#ifdef __cplusplus
extern "C" {
#endif
//----------------------------------------------------------------------------------//
//--------------------------------- Sanity Checks ----------------------------------//
//----------------------------------------------------------------------------------//
namespace LoggingQuantities {
extern const bool MassAttenuationCoefficients;
extern const bool MFPWaterSampling;
extern const bool BeamSpectrumSampling;
extern const bool CTGeometry;
extern const bool CTDetectorGeometry;
extern const bool CTPathMaterial;
extern const bool PDD_6MV;
extern const bool PDK_1MEV;
extern const bool PDK_10MEV;
extern const bool ElectronStoppingPos;
extern const bool NumbOfInteractions;
extern const bool DistanceTravelled;
extern const bool FractionTransferredCompton;
extern const bool PhotonAngularSampled;
extern const bool VoxelAutoDump;
}
//----------------------------------------------------------------------------------//
//------------------------------------ Generic -------------------------------------//
//----------------------------------------------------------------------------------//
extern const unsigned int INTERACTION_COUNT_MAX_CULL;
extern const double electron_mass;
extern const double electron_charge;
extern const double positron_mass;
extern const double positron_charge;
extern const double water_mass_density;
extern const double water_binding_energy_oxygen_K;
extern const double PHOTON_SEPUKU_ENERGY_THRESHOLD;
extern const bool PHOTON_SEPUKU_DONATE_TO_ELECTRON;
extern const bool PHOTON_SEPUKU_DISAPPEAR;
extern const bool PHOTON_SEPUKU_DISTRIBUTE;
extern const double ELECTRON_SEPUKU_ENERGY_THRESHOLD;
extern const bool ELECTRON_SEPUKU_LOCALDUMP;
//extern const bool ELECTRON_SEPUKU_DISAPPEAR;
//extern const bool ELECTRON_SEPUKU_DISTRIBUTE;
extern const double POSITRON_SEPUKU_ENERGY_THRESHOLD;
extern const bool POSITRON_SEPUKU_LOCALDUMP;
//extern const bool POSITRON_SEPUKU_DISAPPEAR;
//extern const bool POSITRON_SEPUKU_DISTRIBUTE;
extern const bool USE_CSDA;
extern const bool track_interactions;
//----------------------------------------------------------------------------------//
//----------------------------------- Materials ------------------------------------//
//----------------------------------------------------------------------------------//
namespace Material {
extern const unsigned char Beam;
extern const unsigned char Black;
extern const unsigned char Vacuum;
extern const unsigned char Air;
extern const unsigned char Water;
extern const unsigned char Detector;
extern const unsigned char Unknown;
}
//----------------------------------------------------------------------------------//
//--------------------------------- Particle types ---------------------------------//
//----------------------------------------------------------------------------------//
namespace Particletype {
extern const unsigned char Photon;
extern const unsigned char Electron;
extern const unsigned char Positron;
}
//----------------------------------------------------------------------------------//
//------------------------------- Interaction types --------------------------------//
//----------------------------------------------------------------------------------//
namespace Interactiontype {
extern const unsigned char Creation;
extern const unsigned char Coherent;
extern const unsigned char Compton;
extern const unsigned char Photoelectric;
extern const unsigned char Pair;
extern const unsigned char LocalDump; //A simple, generic interaction which dumps
// all particle energy locally and destroys
// the particle.
extern const unsigned char None; //A 'virtual' interaction - does nothing.
extern const unsigned char Disappear;
extern const unsigned char Detect;
extern const unsigned char SlowDown;
}
#ifdef __cplusplus
}
#endif
#endif