#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) |
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<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 46 of file ElectronMVANtuplizer.cc.
|
explicit |
Definition at line 153 of file ElectronMVANtuplizer.cc.
References edm::EDConsumerBase::consumes(), doEnergyMatrix_, ele3Q_, eleIndex_, eleIsEB_, eleIsEBEEGap_, eleIsEBEtaGap_, eleIsEBPhiGap_, eleIsEE_, eleIsEEDeeGap_, eleIsEERingGap_, eleMapBranchNames_, eleMapTags_, eleMapTokens_, eleQ_, energyMatrix_, genNpu_, MVAVariableManager< ParticleType >::getName(), 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_.
|
overrideprivate |
Definition at line 242 of file ElectronMVANtuplizer.cc.
References doEnergyMatrix_, ebRecHits_, eeRecHits_, ele3Q_, eleIndex_, eleIsEB_, eleIsEBEEGap_, eleIsEBEtaGap_, eleIsEBPhiGap_, eleIsEE_, eleIsEEDeeGap_, eleIsEERingGap_, eleMapTokens_, eleQ_, energyMatrix_, energyMatrixSize_, edm::EventID::event(), genNpu_, GenHFHadronMatcher_cfi::genParticles, genParticles_, MVAVariableHelper< ParticleType >::getAuxVariables(), edm::Event::getByToken(), MultiTokenT< T >::getHandle(), MultiTokenT< T >::getValidHandle(), MVAVariableManager< ParticleType >::getValue(), edm::EventBase::id(), iEvent, isMC_, gen::k, edm::EventBase::luminosityBlock(), matchedToGenEle_, matchToTruth(), mvaCats_, mvaCatTokens_, mvaValues_, mvaVarMngr_, nCats_, nEleMaps_, nEvent_, nLumi_, nRun_, nValMaps_, nVars_, estimatePileup_makeJSON::pileup, pileup_, ptThreshold_, muons2muons_cfi::pu, edm::EventID::run(), SurveyInfoScenario_cff::seed, TrackRefitter_38T_cff::src, src_, tree_, valMapTokens_, MuonErrorMatrixValues_cff::values, variableHelper_, vars_, electrons_cff::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.
References metsig::electron, GenHFHadronMatcher_cfi::genParticles, and matchToTruth().
|
static |
Definition at line 377 of file ElectronMVANtuplizer.cc.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), DEFINE_FWK_MODULE, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 343 of file ElectronMVANtuplizer.cc.
References funct::abs(), HiRegitMuonDetachedTripletStep_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(), and endJob().
|
private |
Definition at line 92 of file ElectronMVANtuplizer.cc.
Referenced by matchToTruth().
|
private |
Definition at line 135 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 117 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 118 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 74 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 88 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 80 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 84 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 82 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 83 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 81 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 85 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 86 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 98 of file ElectronMVANtuplizer.cc.
Referenced by ElectronMVANtuplizer().
|
private |
Definition at line 96 of file ElectronMVANtuplizer.cc.
Referenced by ElectronMVANtuplizer().
|
private |
Definition at line 97 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 73 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 77 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 136 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 69 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 116 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 91 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 75 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 109 of file ElectronMVANtuplizer.cc.
Referenced by ElectronMVANtuplizer().
|
private |
Definition at line 123 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 107 of file ElectronMVANtuplizer.cc.
Referenced by ElectronMVANtuplizer().
|
private |
Definition at line 108 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 121 of file ElectronMVANtuplizer.cc.
Referenced by ElectronMVANtuplizer().
|
private |
Definition at line 122 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 131 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 99 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 66 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 68 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 67 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 105 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 132 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 115 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 93 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 113 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 129 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 104 of file ElectronMVANtuplizer.cc.
Referenced by ElectronMVANtuplizer().
|
private |
Definition at line 102 of file ElectronMVANtuplizer.cc.
Referenced by ElectronMVANtuplizer().
|
private |
Definition at line 103 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 126 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 133 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().
|
private |
Definition at line 114 of file ElectronMVANtuplizer.cc.
Referenced by analyze().
|
private |
Definition at line 70 of file ElectronMVANtuplizer.cc.
Referenced by analyze(), and ElectronMVANtuplizer().