#include <ElectronMVAEstimatorRun2Spring15Trig.h>
Classes | |
struct | AllVariables |
Public Types | |
enum | mvaCategories { UNDEFINED = -1, CAT_EB1 = 0, CAT_EB2 = 1, CAT_EE = 2 } |
Public Member Functions | |
void | constrainMVAVariables (AllVariables &) const |
std::unique_ptr< const GBRForest > | createSingleReader (const int iCategory, const edm::FileInPath &weightFile) |
ElectronMVAEstimatorRun2Spring15Trig (const edm::ParameterSet &conf) | |
std::vector< float > | fillMVAVariables (const edm::Ptr< reco::Candidate > &particle, const edm::Event &) const override |
int | findCategory (const edm::Ptr< reco::Candidate > &particle) const override |
virtual const std::string & | getName () const override final |
virtual int | getNCategories () const override |
virtual const std::string & | getTag () const override final |
bool | isEndcapCategory (int category) const |
float | mvaValue (const edm::Ptr< reco::Candidate > &particle, const edm::Event &) const override |
void | setConsumes (edm::ConsumesCollector &&) const override final |
~ElectronMVAEstimatorRun2Spring15Trig () | |
Public Member Functions inherited from AnyMVAEstimatorRun2Base | |
AnyMVAEstimatorRun2Base (const edm::ParameterSet &conf) | |
virtual void | getEventContent (const edm::Event &iEvent) const final |
template<typename... Args> | |
std::vector< float > | packMVAVariables (const Args...args) const |
virtual | ~AnyMVAEstimatorRun2Base () |
Public Attributes | |
const int | nCategories = 3 |
Public Attributes inherited from AnyMVAEstimatorRun2Base | |
const edm::ParameterSet | _conf |
Private Attributes | |
AllVariables | _allMVAVars |
const edm::InputTag | _beamSpotLabel |
const edm::InputTag | _conversionsLabelAOD |
const edm::InputTag | _conversionsLabelMiniAOD |
std::vector< std::unique_ptr< const GBRForest > > | _gbrForests |
const std::string | _MethodName |
const std::string | _name = "ElectronMVAEstimatorRun2Spring15Trig" |
const std::string | _tag |
Definition at line 23 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Enumerator | |
---|---|
UNDEFINED | |
CAT_EB1 | |
CAT_EB2 | |
CAT_EE |
Definition at line 30 of file ElectronMVAEstimatorRun2Spring15Trig.h.
ElectronMVAEstimatorRun2Spring15Trig::ElectronMVAEstimatorRun2Spring15Trig | ( | const edm::ParameterSet & | conf | ) |
Definition at line 13 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _gbrForests, createSingleReader(), Exception, edm::ParameterSet::getParameter(), mps_fire::i, nCategories, candidateChargeBTagComputer_cfi::weightFile, mvaElectronID_PHYS14_PU20bx25_nonTrig_V1_cff::weightFileNames, and ~ElectronMVAEstimatorRun2Spring15Trig().
ElectronMVAEstimatorRun2Spring15Trig::~ElectronMVAEstimatorRun2Spring15Trig | ( | ) |
Definition at line 43 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
Referenced by ElectronMVAEstimatorRun2Spring15Trig().
void ElectronMVAEstimatorRun2Spring15Trig::constrainMVAVariables | ( | AllVariables & | allMVAVars | ) | const |
Definition at line 366 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References DEFINE_EDM_PLUGIN, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::deta, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::detacalo, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::dphi, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::EoP, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::fbrem, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::OneMinusE1x5E5x5, and ElectronMVAEstimatorRun2Spring15Trig::AllVariables::R9.
Referenced by fillMVAVariables(), and getTag().
std::unique_ptr< const GBRForest > ElectronMVAEstimatorRun2Spring15Trig::createSingleReader | ( | const int | iCategory, |
const edm::FileInPath & | weightFile | ||
) |
Definition at line 140 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _allMVAVars, _MethodName, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::convVtxFitProbability, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::deta, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::detacalo, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::dphi, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::EoP, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::etawidth, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::expectedMissingInnerHits, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::fbrem, fillMVAVariables(), edm::FileInPath::fullPath(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::gsfhits, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::HoE, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::IoEmIoP, isEndcapCategory(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::kfhits, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::OneMinusE1x5E5x5, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::phiwidth, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::PreShowerOverRaw, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::R9, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::see, and ElectronMVAEstimatorRun2Spring15Trig::AllVariables::spp.
Referenced by ElectronMVAEstimatorRun2Spring15Trig(), and isEndcapCategory().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 197 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _beamSpotLabel, _conversionsLabelAOD, _conversionsLabelMiniAOD, reco::Vertex::chi2(), pat::Electron::closestCtfTrackRef(), reco::GsfElectron::closestCtfTrackRef(), constrainMVAVariables(), conversions_cfi::conversions, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::convVtxFitProbability, reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::deta, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::detacalo, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::dphi, reco::GsfElectron::ecalEnergy(), reco::GsfElectron::eEleClusterOverPout(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::EoP, reco::GsfElectron::eSuperClusterOverP(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::etawidth, Exception, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::expectedMissingInnerHits, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::fbrem, reco::GsfElectron::fbrem(), findCategory(), reco::GsfElectron::full5x5_e1x5(), reco::GsfElectron::full5x5_e5x5(), reco::GsfElectron::full5x5_r9(), reco::GsfElectron::full5x5_sigmaIetaIeta(), reco::GsfElectron::full5x5_sigmaIphiIphi(), edm::Ptr< T >::get(), edm::Ref< C, T, F >::get(), edm::Event::getByLabel(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::gsfhits, reco::GsfElectron::gsfTrack(), reco::GsfElectron::hadronicOverEm(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::HoE, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::IoEmIoP, edm::Ref< C, T, F >::isAvailable(), isEndcapCategory(), edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::isNull(), reco::Vertex::isValid(), edm::HandleBase::isValid(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::kfhits, ConversionTools::matchedConversion(), reco::HitPattern::MISSING_INNER_HITS, eostools::move(), reco::Vertex::ndof(), NULL, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::OneMinusE1x5E5x5, AnyMVAEstimatorRun2Base::packMVAVariables(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::phiwidth, reco::BeamSpot::position(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::PreShowerOverRaw, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::pt, reco::LeafCandidate::pt(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::R9, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::SCeta, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::see, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::spp, reco::GsfElectron::superCluster(), reco::GsfElectron::trackMomentumAtVtx(), and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by createSingleReader(), getTag(), and mvaValue().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 97 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References funct::abs(), CAT_EB1, CAT_EB2, CAT_EE, stringResolutionProvider_cfi::eta, edm::Ptr< T >::get(), isEndcapCategory(), NULL, reco::GsfElectron::superCluster(), and UNDEFINED.
Referenced by fillMVAVariables(), getTag(), and mvaValue().
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 96 of file ElectronMVAEstimatorRun2Spring15Trig.h.
References _name.
Referenced by plotting.Plot::draw().
|
inlineoverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 94 of file ElectronMVAEstimatorRun2Spring15Trig.h.
References python.rootplot.argparse::category, isEndcapCategory(), and nCategories.
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 97 of file ElectronMVAEstimatorRun2Spring15Trig.h.
References _tag, constrainMVAVariables(), fillMVAVariables(), findCategory(), and setConsumes().
bool ElectronMVAEstimatorRun2Spring15Trig::isEndcapCategory | ( | int | category | ) | const |
Definition at line 129 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References CAT_EE, createSingleReader(), and GeomDetEnumerators::isEndcap().
Referenced by createSingleReader(), fillMVAVariables(), findCategory(), and getNCategories().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 62 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _gbrForests, _MethodName, gather_cfg::cout, debug, fillMVAVariables(), findCategory(), eostools::move(), and mps_fire::result.
Referenced by setConsumes().
|
finaloverridevirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 47 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _beamSpotLabel, _conversionsLabelAOD, _conversionsLabelMiniAOD, and mvaValue().
Referenced by getTag().
|
private |
Definition at line 129 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by createSingleReader().
|
private |
Definition at line 135 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 137 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 138 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 125 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by ElectronMVAEstimatorRun2Spring15Trig(), and mvaValue().
|
private |
Definition at line 128 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by createSingleReader(), and mvaValue().
|
private |
Definition at line 118 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by plotting.Subtract::__str__(), plotting.Transform::__str__(), plotting.FakeDuplicate::__str__(), plotting.CutEfficiency::__str__(), plotting.AggregateBins::__str__(), plotting.AggregateHistos::__str__(), plotting.ROC::__str__(), trackingPlots.TimePerTrackPlot::__str__(), plotting.PlotGroup::_drawSeparate(), plotting.PlotGroup::_save(), plotting.Subtract::create(), plotting.Transform::create(), plotting.FakeDuplicate::create(), plotting.CutEfficiency::create(), plotting.AggregateBins::create(), plotting.AggregateHistos::create(), trackingPlots.TimePerTrackPlot::create(), plotting.Plot::create(), plotting.PlotGroup::draw(), getName(), plotting.Plot::getName(), plotting.PlotGroup::getName(), plotting.PlotterFolder::getName(), plotting.PlotterItem::getName(), plotting.PlotterFolder::getSelectionNameIterator(), validation.SimpleSample::name(), trackingPlots.Iteration::name(), plotting.PlotterItem::readDirs(), and plotting.PlotGroup::remove().
|
private |
Definition at line 122 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by getTag().
const int ElectronMVAEstimatorRun2Spring15Trig::nCategories = 3 |
Definition at line 29 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by ElectronMVAEstimatorRun2Spring15Trig(), and getNCategories().