Fork me on GitHub

Changeset ebf057e in git for modules


Ignore:
Timestamp:
Aug 26, 2016, 2:17:11 PM (8 years ago)
Author:
Alexandre Mertens <alexandre.mertens@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
058006a
Parents:
1160e4f (diff), 7da1826 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'dev_01' of https://github.com/delphes/delphes into ValidationWorkWithPavel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/SimpleCalorimeter.cc

    r1160e4f rebf057e  
    190190  Double_t fraction;
    191191  Double_t energy;
     192  Double_t sigma;
     193  Double_t energyGuess;
     194
    192195  Int_t pdgCode;
    193196
     
    364367       // compute total charged energy   
    365368       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);
    368374       fTowerTrackArray->Add(track);
    369      
    370375      }
    371376       
Note: See TracChangeset for help on using the changeset viewer.