33 Z0.push_back(-131.854);
Z0.push_back(-131.854);
34 Z0.push_back(-92.329);
Z0.push_back(-92.329);
35 Z0.push_back(-165.11);
Z0.push_back(-165.11);
75 if(
z<Z0[layer] ||
z>Z0[layer]+CardLength)
77 cout <<
" Warning: z not within first card. This should never happen! z = " <<
z <<
", card = " <<
nCard << endl;
89 double mindist = 999.;
91 int ClosestStrip = -1;
94 const int MAXNSTRIP = 1024;
97 cout <<
" Warning: number of strips > 1024. Exiting. " << endl;
101 double Px[MAXNSTRIP], Py[MAXNSTRIP], Pz[MAXNSTRIP];
102 double Pxp[MAXNSTRIP], Pyp[MAXNSTRIP], Pzp[MAXNSTRIP];
153 - sin(-
alpha)*Pzp[k]);
165 if(IsOK)
return ClosestStrip;
176 double mindist = 999.;
178 int ClosestStrip = -1;
180 const int MAXNSTRIP = 1024;
184 cout <<
" Warning: number of strips > 1024. Exiting. " << endl;
188 double Px[MAXNSTRIP], Py[MAXNSTRIP], Pz[MAXNSTRIP];
189 double Pxp[MAXNSTRIP], Pyp[MAXNSTRIP], Pzp[MAXNSTRIP];
198 alpha_k = k/((float)(Nstrips-1))*
alpha;
237 sin(-alpha_k)*Pzp[k]);
258 if(IsOK)
return ClosestStrip;
int FindStripZ(int layer, int sector, double x, double y)
int FindStrip(int layer, int sector, double x, double y, double z)
void FindCard(int layer, double z)