5 #include "Randomize.hh" 42 vector<double> strip_id;
44 Nel = (int) (1e6*Edep/
w_i);
45 if(fabs(z-
Z0[layer])>(
hDrift+0.2)) cout <<
"Warning! z position of the FTM hit is not in the sensitive volume: " << z-
Z0[layer]<< endl;
51 for(
int iel=0;iel<
Nel;iel++)
70 for(
int istrip=0;istrip< (int) (strip_id.size()/2);istrip++)
72 if(strip_id[2*istrip]==ClosestStrip)
74 strip_id[2*istrip+1]=strip_id[2*istrip+1]+1./((double) Nel);
80 strip_id.push_back(ClosestStrip);
81 strip_id.push_back(1./((
double) Nel));
86 strip_id.push_back(-1);
87 strip_id.push_back(1);
93 strip_id.push_back(-1);
94 strip_id.push_back(1);
vector< double > FindStrip(int layer, double x, double y, double z, double Edep)