6 #include "CLHEP/Random/RanluxEngine.h"
12 m_rtParameters(nullptr),
24 m_rtParameters(nullptr),
69 double gammaFactor[] = {0.10110E+01,0.10133E+01,0.10162E+01,0.10196E+01,0.10237E+01,0.10287E+01,0.10348E+01,0.10422E+01,0.10511E+01,
70 0.10619E+01,0.10750E+01,0.10909E+01,0.11101E+01,0.11334E+01,0.11616E+01,0.11957E+01,0.12371E+01,0.12873E+01,
71 0.13481E+01,0.14217E+01,0.15109E+01,0.16190E+01,0.17499E+01,0.19085E+01,0.21007E+01,0.23335E+01,0.26156E+01,
72 0.29573E+01,0.33714E+01,0.38730E+01,0.44807E+01,0.52170E+01,0.61090E+01,0.71897E+01,0.84989E+01,0.10085E+02,
73 0.12007E+02,0.14335E+02,0.17156E+02,0.20573E+02,0.24714E+02,0.29730E+02,0.35807E+02,0.43170E+02,0.52090E+02,
74 0.62897E+02,0.75989E+02,0.91852E+02,0.11107E+03,0.13435E+03,0.16256E+03,0.19673E+03,0.23814E+03,0.28830E+03,
75 0.34907E+03,0.42270E+03,0.51190E+03,0.61997E+03,0.75089E+03,0.90952E+03,0.11017E+04,0.13345E+04,0.16166E+04,
76 0.19583E+04,0.23724E+04,0.28740E+04,0.34817E+04,0.42180E+04,0.51100E+04,0.61907E+04,0.74999E+04,0.90862E+04,
77 0.11008E+05,0.13336E+05,0.16157E+05,0.19574E+05,0.23715E+05,0.28731E+05,0.34808E+05,0.42171E+05,0.51091E+05,
78 0.61898E+05,0.74990E+05,0.90853E+05,0.11007E+06,0.13335E+06,0.16156E+06,0.19574E+06,0.23714E+06,0.28730E+06,
79 0.34807E+06,0.42170E+06,0.51090E+06,0.61897E+06,0.74990E+06,0.90852E+06};
81 double numberOfClustersPerCm[] = {720.157,611.293,518.910,440.579,374.222,318.055,270.554,230.415,196.530,167.949,143.867,123.598,106.560,
82 92.259,80.277,70.258,61.904,54.960,49.215,44.488,40.626,37.503,35.009,33.054,31.558,30.455,29.686,29.200,
83 28.954,28.908,29.030,29.288,29.658,30.119,30.653,31.245,31.885,32.563,33.274,34.014,34.781,35.593,36.502,
84 37.371,38.065,38.606,39.024,39.347,39.600,39.800,39.960,40.090,40.197,40.285,40.359,40.419,40.469,40.509,
85 40.540,40.564,40.582,40.596,40.606,40.614,40.620,40.624,40.627,40.629,40.631,40.632,40.633,40.634,40.635,
86 40.635,40.635,40.635,40.635,40.636,40.636,40.636,40.636,40.636,40.636,40.636,40.636,40.636,40.636,40.636,
87 40.636,40.636,40.636,40.636,40.636,40.636,40.636,40.636};
89 for(
int ik = 0; ik < 96; ++ik ) {
142 std::cout <<
"MDT_Response: Wrong rt-mode" << std::endl;
159 for(
int i=0;
i<2;++
i){
163 double r = sqrt(
cl*
cl + r2);
177 std::cout <<
"out of range " << tc <<
" bin " <<
bin << std::endl;
187 double correctedClusterDensity;
190 if(ParticleGamma<0.90852
E+06){
204 correctedClusterDensity=8.5;
212 for(
int i=0;
i<2;++
i){
216 if(fabs(ParticleCharge)!=1.){
217 cl += 8.5/(correctedClusterDensity*
pow(ParticleCharge,2))*
DoStep(rndmEngine);
219 cl += 8.5/(correctedClusterDensity)*
DoStep(rndmEngine);
222 double r = sqrt(
cl*
cl + r2);
236 std::cout <<
"out of range " << tc <<
" bin " <<
bin << std::endl;
268 DoStepping(ParticleCharge,ParticleGamma,rndmEngine);