Changes in modules/EnergySmearing.cc [fd4b326:341014c] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/EnergySmearing.cc
rfd4b326 r341014c 95 95 { 96 96 Candidate *candidate, *mother; 97 Double_t pt, energy, eta, phi , m;97 Double_t pt, energy, eta, phi; 98 98 99 99 fItInputArray->Reset(); … … 107 107 phi = candidatePosition.Phi(); 108 108 energy = candidateMomentum.E(); 109 m = candidateMomentum.M();110 109 111 110 // apply smearing formula … … 118 117 eta = candidateMomentum.Eta(); 119 118 phi = candidateMomentum.Phi(); 120 pt = (energy > m) ? TMath::Sqrt(energy*energy - m*m)/TMath::CosH(eta) : 0; 121 candidate->Momentum.SetPtEtaPhiE(pt, eta, phi, energy); 119 candidate->Momentum.SetPtEtaPhiE(energy / TMath::CosH(eta), eta, phi, energy); 122 120 candidate->TrackResolution = fFormula->Eval(pt, eta, phi, energy) / candidateMomentum.E(); 123 121 candidate->AddCandidate(mother);
Note:
See TracChangeset
for help on using the changeset viewer.