3 #include "Randomize.hh" 40 vector<double> strip_id;
42 Nel = (int) (1e6*Edep/
w_i);
43 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;
49 for(
int iel=0;iel<
Nel;iel++)
68 for(
int istrip=0;istrip< (int) (strip_id.size()/2);istrip++)
70 if(strip_id[2*istrip]==ClosestStrip)
72 strip_id[2*istrip+1]=strip_id[2*istrip+1]+1./((double) Nel);
78 strip_id.push_back(ClosestStrip);
79 strip_id.push_back(1./((
double) Nel));
84 strip_id.push_back(-1);
85 strip_id.push_back(1);
91 strip_id.push_back(-1);
92 strip_id.push_back(1);
vector< double > FindStrip(int layer, double x, double y, double z, double Edep)