Changes in modules/MomentumSmearing.cc [fd4b326:f298e48] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/MomentumSmearing.cc
rfd4b326 rf298e48 95 95 { 96 96 Candidate *candidate, *mother; 97 Double_t pt, eta, phi, e, m,res;97 Double_t pt, eta, phi, e, res; 98 98 99 99 fItInputArray->Reset(); … … 106 106 pt = candidateMomentum.Pt(); 107 107 e = candidateMomentum.E(); 108 m = candidateMomentum.M();109 108 res = fFormula->Eval(pt, eta, phi, e, candidate); 110 109 … … 122 121 eta = candidateMomentum.Eta(); 123 122 phi = candidateMomentum.Phi(); 124 candidate->Momentum.SetPtEtaPhi M(pt, eta, phi, m);123 candidate->Momentum.SetPtEtaPhiE(pt, eta, phi, pt * TMath::CosH(eta)); 125 124 //candidate->TrackResolution = fFormula->Eval(pt, eta, phi, e); 126 125 candidate->TrackResolution = res;
Note:
See TracChangeset
for help on using the changeset viewer.