Changes in / [974f5bc:09ffaee] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/ParticlePropagator.cc
r974f5bc r09ffaee 135 135 Double_t l, d0, dz, p, ctgTheta, phip, etap, alpha; 136 136 Double_t bsx, bsy, bsz; 137 Double_t s0, s1, sd; 138 137 139 138 const Double_t c_light = 2.99792458E8; 140 139 … … 298 297 zd = z + (TMath::Sqrt(xd * xd + yd * yd) - TMath::Sqrt(x * x + y * y)) * pz / pt; 299 298 300 // proper calculation of the DCAz coordinate301 // s0: track circle parameter at the track origin302 // s1: track circle parameter at the closest approach to beam pipe303 // sd: s1-s0 signed angular difference304 s0 = atan2(y - y_c, x - x_c);305 s1 = atan2(yd - y_c, xd - x_c);306 sd = atan2(sin(s1 - s0), cos(s1 - s0));307 zd = z - r * pz / pt * sd;308 309 299 // use perigee momentum rather than original particle 310 300 // momentum, since the orignal particle momentum isn't known
Note:
See TracChangeset
for help on using the changeset viewer.