#include <RecoEgamma/ElectronIdentification/plugins/ElectronMVANtuplizer.cc>
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
void | beginJob () override |
void | endJob () override |
void | findFirstNonElectronMother2 (const reco::Candidate *particle, int &ancestorPID, int &ancestorStatus) |
template<class T , class V > | |
int | matchToTruth (const T &el, const V &genParticles, int &genIdx) |
Additional Inherited Members | |
Public Types inherited from edm::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Description: Ntuplizer for training and testing electron MVA IDs.
Implementation: [Notes on implementation]
Definition at line 56 of file ElectronMVANtuplizer.cc.
|
explicit |
Definition at line 162 of file ElectronMVANtuplizer.cc.
References edm::EDConsumerBase::consumes(), ele3Q_, eleIsEB_, eleIsEBEEGap_, eleIsEBEtaGap_, eleIsEBPhiGap_, eleIsEE_, eleIsEEDeeGap_, eleIsEERingGap_, eleMapBranchNames_, eleMapTags_, eleMapTokens_, eleQ_, genNpu_, MVAVariableManager< ParticleType >::getGlobalInputTags(), MVAVariableManager< ParticleType >::getHelperInputTags(), MVAVariableManager< ParticleType >::getName(), MVAVariableManager< ParticleType >::getNVars(), mps_fire::i, isMC_, gen::k, TFileService::kSharedResource, TFileService::make(), matchedToGenEle_, mvaCatBranchNames_, mvaCats_, mvaCatTags_, mvaCatTokens_, mvaPasses_, mvaValues_, mvaVarMngr_, nCats_, nEleMaps_, nEvent_, nLumi_, nRun_, nValMaps_, nVars_, GlobalPosition_Frontier_DevDB_cff::tag, tree_, valMapBranchNames_, valMapTags_, valMapTokens_, vars_, and vtxN_.
|
override |
Definition at line 271 of file ElectronMVANtuplizer.cc.
|
overrideprivate |
Definition at line 286 of file ElectronMVANtuplizer.cc.
References ele3Q_, eleIsEB_, eleIsEBEEGap_, eleIsEBEtaGap_, eleIsEBPhiGap_, eleIsEE_, eleIsEEDeeGap_, eleIsEERingGap_, eleMapTokens_, eleQ_, edm::EventID::event(), genNpu_, GenHFHadronMatcher_cfi::genParticles, genParticles_, genParticlesMiniAOD_, edm::Event::getByToken(), MVAVariableManager< ParticleType >::getValue(), edm::EventBase::id(), createfilelist::int, isMC_, edm::HandleBase::isValid(), gen::k, edm::EventBase::luminosityBlock(), matchedGenIdx_, matchedToGenEle_, matchToTruth(), mvaCats_, mvaCatTokens_, mvaPasses_, mvaValues_, mvaVarMngr_, nCats_, nEleMaps_, nEvent_, nLumi_, nRun_, nValMaps_, nVars_, ElectronMVANtuplizer_cfg::pileup, pileup_, pileupMiniAOD_, ptThreshold_, muons2muons_cfi::pu, edm::EventID::run(), TrackRefitter_38T_cff::src, src_, srcMiniAOD_, tree_, valMapTokens_, MuonErrorMatrixValues_cff::values, vars_, electrons_cff::vertices, vertices_, verticesMiniAOD_, and vtxN_.
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 497 of file ElectronMVANtuplizer.cc.
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 503 of file ElectronMVANtuplizer.cc.
|
static |
Definition at line 509 of file ElectronMVANtuplizer.cc.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), edm::ParameterSetDescription::addUntracked(), DEFINE_FWK_MODULE, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 424 of file ElectronMVANtuplizer.cc.
References funct::abs(), reco::Candidate::mother(), reco::Candidate::pdgId(), and reco::Candidate::status().
Referenced by matchToTruth().
|
private |
Definition at line 445 of file ElectronMVANtuplizer.cc.
References funct::abs(), HiRegitMuonDetachedTripletStep_cff::DeltaR, deltaR_, PATTauDiscriminationAgainstElectronDeadECAL_cfi::dR, findFirstNonElectronMother2(), mps_fire::i, reco::Candidate::p4(), reco::Candidate::pdgId(), reco::Candidate::status(), TRUE_ELECTRON_FROM_TAU, TRUE_NON_PROMPT_ELECTRON, TRUE_PROMPT_ELECTRON, and UNMATCHED.
Referenced by analyze().
|
private |
Definition at line 123 of file ElectronMVANtuplizer.cc.
Referenced by matchToTruth().
|
private |
Definition at line 102 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 108 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 112 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 110 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 111 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 109 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 113 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 114 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 129 of file ElectronMVANtuplizer.cc.
Referenced by ElectronMVANtuplizer().
|
private |
Definition at line 127 of file ElectronMVANtuplizer.cc.
Referenced by ElectronMVANtuplizer().
|
private |
Definition at line 128 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 101 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 97 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 80 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 86 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 122 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 104 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 103 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 140 of file ElectronMVANtuplizer.cc.
Referenced by ElectronMVANtuplizer().
|
private |
Definition at line 119 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 138 of file ElectronMVANtuplizer.cc.
Referenced by ElectronMVANtuplizer().
|
private |
Definition at line 139 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 117 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 118 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 91 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 141 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 130 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 96 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 96 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 96 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 136 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 93 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 79 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 85 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 124 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 77 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 83 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 89 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 135 of file ElectronMVANtuplizer.cc.
Referenced by ElectronMVANtuplizer().
|
private |
Definition at line 133 of file ElectronMVANtuplizer.cc.
Referenced by ElectronMVANtuplizer().
|
private |
Definition at line 134 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 92 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 78 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 84 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 98 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().