Skip to content

Commit

Permalink
Merge pull request #191 from BrieucF/eleIso
Browse files Browse the repository at this point in the history
Add the different electron relative isolations
  • Loading branch information
blinkseb authored Jul 20, 2016
2 parents 2874612 + 9dfe6ad commit 4810337
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions interface/ElectronsProducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class ElectronsProducer: public LeptonsProducer<pat::Electron>, public Identifia
BRANCH(dz, std::vector<float>);
BRANCH(dca, std::vector<float>);

BRANCH(ecalPFClusterIso, std::vector<float>);
BRANCH(hcalPFClusterIso, std::vector<float>);
BRANCH(trackIso, std::vector<float>);
BRANCH(relEcalPFClusterIso, std::vector<float>);
BRANCH(relHcalPFClusterIso, std::vector<float>);
BRANCH(relTrackIso, std::vector<float>);
};

#endif
6 changes: 3 additions & 3 deletions src/ElectronsProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ void ElectronsProducer::produce(edm::Event& event, const edm::EventSetup& eventS
dxy.push_back(electron.gsfTrack()->dxy(primary_vertex.position()));
dz.push_back(electron.gsfTrack()->dz(primary_vertex.position()));
dca.push_back(electron.dB(pat::Electron::PV3D)/electron.edB(pat::Electron::PV3D));
ecalPFClusterIso.push_back(electron.ecalPFClusterIso());
hcalPFClusterIso.push_back(electron.hcalPFClusterIso());
trackIso.push_back(electron.trackIso());
relEcalPFClusterIso.push_back(electron.ecalPFClusterIso()/electron.pt());
relHcalPFClusterIso.push_back(electron.hcalPFClusterIso()/electron.pt());
relTrackIso.push_back(electron.trackIso()/electron.pt());
ScaleFactors::store_scale_factors({static_cast<float>(fabs(electron.eta())), static_cast<float>(electron.pt())}, event.isRealData());
}
Identifiable::clean();
Expand Down
Binary file modified test/unit_tests_data_ref.root
Binary file not shown.
Binary file modified test/unit_tests_mc_ref.root
Binary file not shown.
Binary file modified test/unit_tests_mc_with_db_ref.root
Binary file not shown.

0 comments on commit 4810337

Please sign in to comment.