Changes in modules/TrackSmearing.cc [fd4b326:f298e48] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TrackSmearing.cc
rfd4b326 rf298e48 158 158 TLorentzVector beamSpotPosition; 159 159 Candidate *candidate, *mother; 160 Double_t pt, eta, e, m,d0, d0Error, trueD0, dz, dzError, trueDZ, p, pError, trueP, ctgTheta, ctgThetaError, trueCtgTheta, phi, phiError, truePhi;160 Double_t pt, eta, e, d0, d0Error, trueD0, dz, dzError, trueDZ, p, pError, trueP, ctgTheta, ctgThetaError, trueCtgTheta, phi, phiError, truePhi; 161 161 Double_t x, y, z, t, px, py, pz, theta; 162 162 Double_t q, r; … … 224 224 eta = momentum.Eta(); 225 225 e = momentum.E(); 226 m = momentum.M(); 227 226 228 227 d0 = trueD0 = candidate->D0; 229 228 dz = trueDZ = candidate->DZ; … … 333 332 candidate->Momentum.SetPy(p * TMath::Sin(phi) * TMath::Sin(theta)); 334 333 candidate->Momentum.SetPz(p * TMath::Cos(theta)); 335 candidate->Momentum.SetE( TMath::Sqrt(p*p + m*m));334 candidate->Momentum.SetE(candidate->Momentum.Pt() * TMath::CosH(eta)); 336 335 candidate->PT = candidate->Momentum.Pt(); 337 336
Note:
See TracChangeset
for help on using the changeset viewer.