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