Changeset 7b0e00c in git
- Timestamp:
- Feb 22, 2016, 2:29:04 PM (9 years ago)
- Parents:
- cf0c13c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/ParticlePropagator.cc
rcf0c13c r7b0e00c 239 239 zd = z + (TMath::Sqrt(xd*xd + yd*yd) - TMath::Sqrt(x*x + y*y))*pz/pt; 240 240 241 // use perigee momentum rather than original particle 242 // momentum, since the orignal particle momentum isn't known 243 double r_sign = std::signbit(r) ? 1 : -1; 244 px = r_sign * pt * (y_c / r_c); 245 py = r_sign * pt * (-x_c / r_c); 246 double eta_p = candidateMomentum.Eta(); 247 double phi_p = std::atan2(py, px); 248 candidateMomentum.SetPtEtaPhiE(pt, eta_p, phi_p, candidateMomentum.E()); 249 241 250 // calculate impact paramater 242 251 dxy = (xd*py - yd*px)/pt;
Note:
See TracChangeset
for help on using the changeset viewer.