#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 |
int | matchToTruth (reco::GsfElectron const &electron, edm::View< reco::GenParticle > const &genParticles) const |
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) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
void | resetItemsToGetFrom (BranchType iType) |
Description: Ntuplizer for training and testing electron MVA IDs.
Implementation: [Notes on implementation]
Definition at line 46 of file ElectronMVANtuplizer.cc.
|
explicit |
Definition at line 152 of file ElectronMVANtuplizer.cc.
References edm::EDConsumerBase::consumesCollector().
|
overrideprivatevirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 241 of file ElectronMVANtuplizer.cc.
References makePileupJSON::bx, doEnergyMatrix_, ebRecHits_, ecalClusterToolsESGetTokens_, eeRecHits_, ele3Q_, eleIsEB_, eleIsEBEEGap_, eleIsEBEtaGap_, eleIsEBPhiGap_, eleIsEE_, eleIsEEDeeGap_, eleIsEERingGap_, eleMapTokens_, eleQ_, energyMatrix_, energyMatrixSize_, edm::EventID::event(), genNpu_, genParticleCandidates2GenParticles_cfi::genParticles, genParticles_, EcalClusterLazyToolsBase::ESGetTokens::get(), edm::Event::getByToken(), edm::Event::getHandle(), MVAVariableManager< ParticleType >::getValue(), edm::EventBase::id(), iEvent, isMC_, isotrackApplyRegressor::k, edm::EventBase::luminosityBlock(), matchedToGenEle_, matchToTruth(), mvaCats_, mvaCatTokens_, mvaPasses_, mvaValues_, mvaVarMngr_, nCats_, nEleMaps_, nEvent_, nLumi_, nRun_, nValMaps_, nVars_, pileup_, ptThreshold_, edm::EventID::run(), fileCollector::seed, alcazmumu_cfi::src, src_, tree_, valMapTokens_, makeHLTPrescaleTable::values, variableHelper_, vars_, beam_dqm_sourceclient-live_cfg::vertices, vertices_, and vtxN_.
|
inlineoverrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 56 of file ElectronMVANtuplizer.cc.
|
inlineoverrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 58 of file ElectronMVANtuplizer.cc.
|
static |
Definition at line 376 of file ElectronMVANtuplizer.cc.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 341 of file ElectronMVANtuplizer.cc.
References funct::abs(), HLT_FULL_cff::DeltaR, deltaR_, reco::GenParticle::fromHardProcessFinalState(), reco::GenParticle::isDirectHardProcessTauDecayProductFinalState(), reco::GsfElectron::p4(), TRUE_ELECTRON_FROM_TAU, TRUE_NON_PROMPT_ELECTRON, TRUE_PROMPT_ELECTRON, and UNMATCHED.
Referenced by analyze().
|
private |
Definition at line 89 of file ElectronMVANtuplizer.cc.
Referenced by matchToTruth().
|
private |
Definition at line 134 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 114 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 117 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 115 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 73 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 79 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 83 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 81 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 82 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 80 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 84 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 85 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 95 of file ElectronMVANtuplizer.cc.
|
private |
Definition at line 93 of file ElectronMVANtuplizer.cc.
|
private |
Definition at line 94 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 72 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 76 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 135 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 68 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 113 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 88 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 74 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 106 of file ElectronMVANtuplizer.cc.
|
private |
Definition at line 122 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 104 of file ElectronMVANtuplizer.cc.
|
private |
Definition at line 105 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 120 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 121 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 130 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 107 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 96 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 65 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 67 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 66 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 102 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 131 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 112 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 90 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 110 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 128 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 101 of file ElectronMVANtuplizer.cc.
|
private |
Definition at line 99 of file ElectronMVANtuplizer.cc.
|
private |
Definition at line 100 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 125 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 132 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 111 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 69 of file ElectronMVANtuplizer.cc.
Referenced by analyze().