Changeset 79d4123 in git
- Timestamp:
- Aug 26, 2016, 10:13:25 AM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 4827699, eceb415
- Parents:
- bc58cf5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/MomentumSmearing.cc
rbc58cf5 r79d4123 96 96 { 97 97 Candidate *candidate, *mother; 98 Double_t pt, eta, phi, e ;98 Double_t pt, eta, phi, e, res; 99 99 100 100 fItInputArray->Reset(); … … 107 107 pt = candidateMomentum.Pt(); 108 108 e = candidateMomentum.E(); 109 109 res = fFormula->Eval(pt, eta, phi, e); 110 110 111 // apply smearing formula 111 112 //pt = gRandom->Gaus(pt, fFormula->Eval(pt, eta, phi, e) * pt); 112 pt = LogNormal(pt, fFormula->Eval(pt, eta, phi, e) * pt ); 113 114 res = ( res > 1.0 ) ? 1.0 : res; 115 116 pt = LogNormal(pt, res * pt ); 113 117 114 118 //if(pt <= 0.0) continue;
Note:
See TracChangeset
for help on using the changeset viewer.