#include <ElectronMVAEstimatorRun2Phys14NonTrig.h>
Classes | |
struct | AllVariables |
Public Types | |
enum | mvaCategories { UNDEFINED = -1, CAT_EB1_PT5to10 = 0, CAT_EB2_PT5to10 = 1, CAT_EE_PT5to10 = 2, CAT_EB1_PT10plus = 3, CAT_EB2_PT10plus = 4, CAT_EE_PT10plus = 5 } |
Public Member Functions | |
void | constrainMVAVariables (AllVariables &vars) const |
ElectronMVAEstimatorRun2Phys14NonTrig (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 |
const std::string & | getName () const final |
int | getNCategories () const final |
const std::string & | getTag () const final |
bool | isEndcapCategory (int category) const |
float | mvaValue (const edm::Ptr< reco::Candidate > &particle, const edm::Event &evt) const override |
~ElectronMVAEstimatorRun2Phys14NonTrig () override | |
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 void | setConsumes (edm::ConsumesCollector &&cc) const |
virtual | ~AnyMVAEstimatorRun2Base () |
Static Public Attributes | |
static int | nCategories = 6 |
Private Attributes | |
AllVariables | _allMVAVars |
std::vector< std::unique_ptr< const GBRForest > > | _gbrForests |
std::string | _MethodName |
const std::string | _name = "ElectronMVAEstimatorRun2Phys14NonTrig" |
std::string | _tag |
Additional Inherited Members | |
Public Attributes inherited from AnyMVAEstimatorRun2Base | |
const edm::ParameterSet | _conf |
Definition at line 13 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Enumerator | |
---|---|
UNDEFINED | |
CAT_EB1_PT5to10 | |
CAT_EB2_PT5to10 | |
CAT_EE_PT5to10 | |
CAT_EB1_PT10plus | |
CAT_EB2_PT10plus | |
CAT_EE_PT10plus |
Definition at line 20 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
ElectronMVAEstimatorRun2Phys14NonTrig::ElectronMVAEstimatorRun2Phys14NonTrig | ( | const edm::ParameterSet & | conf | ) |
Definition at line 10 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References _gbrForests, _MethodName, _tag, GBRForestTools::createGBRForest(), Exception, edm::ParameterSet::getParameter(), mps_fire::i, nCategories, AlCaHLTBitMon_QueryRunRegistry::string, electrons_cff::weightFile, mvaElectronID_Fall17_iso_V1_cff::weightFileNames, and ~ElectronMVAEstimatorRun2Phys14NonTrig().
|
override |
Definition at line 38 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References mvaValue().
Referenced by ElectronMVAEstimatorRun2Phys14NonTrig().
void ElectronMVAEstimatorRun2Phys14NonTrig::constrainMVAVariables | ( | AllVariables & | vars | ) | const |
Definition at line 251 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References funct::abs(), DEFINE_EDM_PLUGIN, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::deta, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::detacalo, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::dphi, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::EoP, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::fbrem, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::OneMinusE1x5E5x5, and ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::R9.
Referenced by fillMVAVariables(), and getTag().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 136 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References funct::abs(), pat::Electron::closestCtfTrackRef(), reco::GsfElectron::closestCtfTrackRef(), constexpr, constrainMVAVariables(), reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::deta, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::detacalo, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::dphi, mvaElectronID_Fall17_iso_V1_cff::ebeeSplit, reco::GsfElectron::ecalEnergy(), reco::GsfElectron::eEleClusterOverPout(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::EoP, reco::GsfElectron::eSuperClusterOverP(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::etawidth, ElectronMVAEstimatorRun2Phys14NonTrig::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(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::gsfchi2, reco::GsfElectron::gsfTrack(), reco::GsfElectron::hadronicOverEm(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::HoE, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::IoEmIoP, edm::Ref< C, T, F >::isAvailable(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::isBarrel, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::isEndcap, isEndcapCategory(), edm::Ref< C, T, F >::isNonnull(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::kfhits, nullptr, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::OneMinusE1x5E5x5, reco::LeafCandidate::p(), AnyMVAEstimatorRun2Base::packMVAVariables(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::phiwidth, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::PreShowerOverRaw, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::pt, reco::LeafCandidate::pt(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::R9, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::SCeta, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::see, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::spp, and reco::GsfElectron::superCluster().
Referenced by getTag(), and mvaValue().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 82 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References funct::abs(), CAT_EB1_PT10plus, CAT_EB1_PT5to10, CAT_EB2_PT10plus, CAT_EB2_PT5to10, CAT_EE_PT10plus, CAT_EE_PT5to10, constexpr, mvaElectronID_Fall17_iso_V1_cff::ebeeSplit, mvaElectronID_Fall17_iso_V1_cff::ebSplit, PVValHelper::eta, edm::Ptr< T >::get(), isEndcapCategory(), nullptr, EnergyCorrector::pt, reco::LeafCandidate::pt(), mvaElectronID_Fall17_iso_V1_cff::ptSplit, reco::GsfElectron::superCluster(), and UNDEFINED.
Referenced by fillMVAVariables(), getTag(), and mvaValue().
|
inlinefinalvirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 72 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
References _name.
Referenced by plotting.Plot::draw().
|
inlinefinalvirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 70 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
References python.rootplot.argparse::category, isEndcapCategory(), and nCategories.
|
inlinefinalvirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 73 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
References _tag, constrainMVAVariables(), fillMVAVariables(), and findCategory().
bool ElectronMVAEstimatorRun2Phys14NonTrig::isEndcapCategory | ( | int | category | ) | const |
Definition at line 125 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References CAT_EE_PT10plus, CAT_EE_PT5to10, and GeomDetEnumerators::isEndcap().
Referenced by fillMVAVariables(), findCategory(), and getNCategories().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 42 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References _gbrForests, _MethodName, constexpr, gather_cfg::cout, debug, fillMVAVariables(), findCategory(), and mps_fire::result.
Referenced by ~ElectronMVAEstimatorRun2Phys14NonTrig().
|
private |
Definition at line 99 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
|
private |
Definition at line 95 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by ElectronMVAEstimatorRun2Phys14NonTrig(), and mvaValue().
|
private |
Definition at line 98 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by ElectronMVAEstimatorRun2Phys14NonTrig(), and mvaValue().
|
private |
Definition at line 88 of file ElectronMVAEstimatorRun2Phys14NonTrig.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.TimePerEventPlot::__str__(), trackingPlots.TimePerTrackPlot::__str__(), trackingPlots.TimePerEventPlot::_create(), 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 92 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by ElectronMVAEstimatorRun2Phys14NonTrig(), and getTag().
|
static |
Definition at line 19 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by ElectronMVAEstimatorRun2Phys14NonTrig(), and getNCategories().