Fork me on GitHub

Changeset 2075bc1 in git for examples


Ignore:
Timestamp:
Aug 26, 2016, 11:51:33 AM (8 years ago)
Author:
Alexandre Mertens <alexandre.mertens@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
e699329
Parents:
bba5aca
Message:

some bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/Validation.cpp

    rbba5aca r2075bc1  
    328328      if(deltaR < 0.3)
    329329      {
    330         pt  = bestGenMomentum.Pt();
     330        pt  = bestGenMomentum.E();
    331331        eta = TMath::Abs(bestGenMomentum.Eta());
    332332
     
    335335          if(pt > histos->at(bin).ptmin && pt < histos->at(bin).ptmax && eta < 2.5)
    336336          {
    337             if (eta < 1.5) {histos->at(bin).cenResolHist->Fill(recoMomentum.Pt()/bestGenMomentum.Pt());}
    338             else if (eta < 2.5) {histos->at(bin).fwdResolHist->Fill(recoMomentum.Pt()/bestGenMomentum.Pt());}
     337            if (eta < 1.5) {histos->at(bin).cenResolHist->Fill(recoMomentum.E()/bestGenMomentum.E());}
     338            else if (eta < 2.5) {histos->at(bin).fwdResolHist->Fill(recoMomentum.E()/bestGenMomentum.E());}
    339339          }
    340340        }
Note: See TracChangeset for help on using the changeset viewer.