Skip to content

Commit

Permalink
Merge pull request #273 from OlivierBondu/add_electron_id_var
Browse files Browse the repository at this point in the history
adding electron track expectedMissingInnerHits
  • Loading branch information
pieterdavid authored Feb 16, 2018
2 parents 2e28cee + 561cb50 commit f5b8b8e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions interface/ElectronsProducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class ElectronsProducer: public LeptonsProducer<pat::Electron>, public Identifia
BRANCH(hcalPFClusterIso, std::vector<float>);
BRANCH(trackIso, std::vector<float>);

BRANCH(expectedMissingInnerHits, std::vector<unsigned int>);

BRANCH(mva_id_values, std::vector<float>);
BRANCH(mva_id_categories, std::vector<int>);

Expand Down
2 changes: 2 additions & 0 deletions src/ElectronsProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ void ElectronsProducer::produce(edm::Event& event, const edm::EventSetup& eventS
ecalPFClusterIso.push_back(electron.ecalPFClusterIso());
hcalPFClusterIso.push_back(electron.hcalPFClusterIso());
trackIso.push_back(electron.trackIso());
// see https://github.com/latinos/LatinoTrees/blob/cc89e18d1a956f633cf59a7143f24491716d1047/DataFormats/src/SkimEvent.cc#L5831
expectedMissingInnerHits.push_back(electron.gsfTrack()->hitPattern().numberOfHits(reco::HitPattern::MISSING_INNER_HITS));

// MVA id
if (! m_mva_id_values_map_token.isUninitialized()) {
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 f5b8b8e

Please sign in to comment.