Changes in modules/EnergySmearing.cc [95aa610:cab38f6] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/EnergySmearing.cc
r95aa610 rcab38f6 96 96 { 97 97 Candidate *candidate, *mother; 98 Double_t pt,energy, eta, phi;98 Double_t energy, eta, phi; 99 99 100 100 fItInputArray->Reset(); … … 103 103 const TLorentzVector &candidatePosition = candidate->Position; 104 104 const TLorentzVector &candidateMomentum = candidate->Momentum; 105 106 pt = candidatePosition.Pt();107 105 eta = candidatePosition.Eta(); 108 106 phi = candidatePosition.Phi(); … … 110 108 111 109 // apply smearing formula 112 energy = gRandom->Gaus(energy, fFormula->Eval( pt, eta, phi, energy));110 energy = gRandom->Gaus(energy, fFormula->Eval(0.0, eta, 0.0, energy)); 113 111 114 112 if(energy <= 0.0) continue;
Note:
See TracChangeset
for help on using the changeset viewer.