5 #include "Randomize.hh" 14 interlayer = (0.5+0.1+0.015+0.128+0.030+2.500)*2.;
24 Z_1stlayer = 295.-0.5-0.1-0.015-0.128-0.030-2.500;
51 vector<double> strip_id;
53 Nel = (int) (1e6*Edep/
w_i);
54 if(z-
Z0[layer]>0.5001*
hDrift || z-
Z0[layer]<-0.5001*
hDrift) cout <<
"Warning! z position of the FMT hit is not in the sensitive volume: " << z-
Z0[layer]<< endl;
60 for(
int iel=0;iel<
Nel;iel++)
65 if(sqrt(x*x+y*y)<
R_max && sqrt(x*x+y*y)>
R_min && ClosestStrip>=0 && ClosestStrip<=
N_str)
67 for(
int istrip=0;istrip< (int) (strip_id.size()/2);istrip++)
69 if(strip_id[2*istrip]==ClosestStrip)
71 strip_id[2*istrip+1]=strip_id[2*istrip+1]+1./((double) Nel);
77 strip_id.push_back(ClosestStrip);
78 strip_id.push_back(1./((
double) Nel));
83 strip_id.push_back(-1);
84 strip_id.push_back(1);
90 strip_id.push_back(-1);
91 strip_id.push_back(1);
vector< double > FindStrip(int layer, int sector, double x, double y, double z, double Edep)