71 for(
unsigned iLayer=0; iLayer<43; iLayer++){
74 double rMidLayer = m_mdcGeomSvc->Layer(iLayer)->Radius();
75 double flightLength = rMidLayer;
79 double c = CLHEP::c_light * 100.;
80 double alpha = 1/(c * Bz);
81 double kappa = helix[2];
82 double rc = (-1.)*
alpha/kappa;
84 double tanl = helix[4];
85 double phi0 = helix[1];
86 double phi = flightLength/rc + phi0;
87 double z = pivot.z() + dz - (
alpha/kappa) * tanl * phi;
89 double layerHalfLength = m_mdcGeomSvc->Layer(iLayer)->Length()/2.;
93 if (fabs(z) < fabs(layerHalfLength)) ++nLayer;