Changes in modules/SimpleCalorimeter.cc [e0f8f99:7da1826] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/SimpleCalorimeter.cc
re0f8f99 r7da1826 190 190 Double_t fraction; 191 191 Double_t energy; 192 Double_t sigma; 193 Double_t energyGuess; 194 192 195 Int_t pdgCode; 193 196 … … 364 367 // compute total charged energy 365 368 fTrackEnergy += energy; 366 fTrackSigma += ((track->TrackResolution)*momentum.E())*((track->TrackResolution)*momentum.E()); 367 369 sigma = fResolutionFormula->Eval(0.0, fTowerEta, 0.0, momentum.E()); 370 if(sigma/momentum.E() < track->TrackResolution) energyGuess = energy; 371 else energyGuess = momentum.E(); 372 373 fTrackSigma += ((track->TrackResolution)*energyGuess)*((track->TrackResolution)*energyGuess); 368 374 fTowerTrackArray->Add(track); 369 370 375 } 371 376
Note:
See TracChangeset
for help on using the changeset viewer.