#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 |
std::unique_ptr< const GBRForest > | createSingleReader (const int iCategory, const edm::FileInPath &weightFile) |
ElectronMVAEstimatorRun2Phys14NonTrig (const edm::ParameterSet &conf) | |
std::vector< float > | fillMVAVariables (const edm::Ptr< reco::Candidate > &particle, const edm::Event &) const |
int | findCategory (const edm::Ptr< reco::Candidate > &particle) const |
virtual const std::string & | getName () const overridefinal |
virtual int | getNCategories () const overridefinal |
virtual const std::string & | getTag () const overridefinal |
bool | isEndcapCategory (int category) const |
float | mvaValue (const edm::Ptr< reco::Candidate > &particle, const edm::Event &evt) const |
~ElectronMVAEstimatorRun2Phys14NonTrig () | |
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 19 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 26 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
ElectronMVAEstimatorRun2Phys14NonTrig::ElectronMVAEstimatorRun2Phys14NonTrig | ( | const edm::ParameterSet & | conf | ) |
Definition at line 10 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References _gbrForests, _MethodName, _tag, createSingleReader(), Exception, edm::ParameterSet::getParameter(), i, nCategories, and AlCaHLTBitMon_QueryRunRegistry::string.
ElectronMVAEstimatorRun2Phys14NonTrig::~ElectronMVAEstimatorRun2Phys14NonTrig | ( | ) |
Definition at line 38 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
void ElectronMVAEstimatorRun2Phys14NonTrig::constrainMVAVariables | ( | AllVariables & | vars | ) | const |
Definition at line 311 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References funct::abs(), 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().
std::unique_ptr< const GBRForest > ElectronMVAEstimatorRun2Phys14NonTrig::createSingleReader | ( | const int | iCategory, |
const edm::FileInPath & | weightFile | ||
) |
Definition at line 137 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References _allMVAVars, _MethodName, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::deta, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::detacalo, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::dphi, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::EoP, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::etawidth, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::fbrem, edm::FileInPath::fullPath(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::HoE, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::IoEmIoP, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::isBarrel, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::isEndcap, isEndcapCategory(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::kfhits, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::OneMinusE1x5E5x5, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::phiwidth, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::PreShowerOverRaw, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::pt, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::R9, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::SCeta, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::see, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::spp, and groupFilesInBlocks::temp.
Referenced by ElectronMVAEstimatorRun2Phys14NonTrig().
|
virtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 194 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References funct::abs(), constexpr, constrainMVAVariables(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::deta, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::detacalo, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::dphi, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::EoP, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::etawidth, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::fbrem, findCategory(), edm::Ptr< T >::get(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::gsfchi2, 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, eostools::move(), NULL, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::OneMinusE1x5E5x5, AnyMVAEstimatorRun2Base::packMVAVariables(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::phiwidth, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::PreShowerOverRaw, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::pt, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::R9, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::SCeta, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::see, and ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::spp.
Referenced by mvaValue().
|
virtual |
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, eta, edm::Ptr< T >::get(), NULL, EnergyCorrector::pt, and UNDEFINED.
Referenced by fillMVAVariables(), and mvaValue().
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 80 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
References _name.
Referenced by plotting.Plot::draw().
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 78 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
References nCategories.
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 81 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
References _tag.
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 createSingleReader(), and fillMVAVariables().
|
virtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 42 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References _gbrForests, _MethodName, constexpr, gather_cfg::cout, debug, fillMVAVariables(), findCategory(), eostools::move(), and mps_fire::result.
|
private |
Definition at line 107 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by createSingleReader().
|
private |
Definition at line 103 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by ElectronMVAEstimatorRun2Phys14NonTrig(), and mvaValue().
|
private |
Definition at line 106 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by createSingleReader(), ElectronMVAEstimatorRun2Phys14NonTrig(), and mvaValue().
|
private |
Definition at line 96 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by plotting.Subtract::__str__(), plotting.FakeDuplicate::__str__(), plotting.AggregateBins::__str__(), plotting.AggregateHistos::__str__(), plotting.ROC::__str__(), plotting.PlotGroup::_drawSeparate(), plotting.PlotGroup::_save(), plotting.Subtract::create(), plotting.FakeDuplicate::create(), plotting.AggregateBins::create(), plotting.AggregateHistos::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 100 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by ElectronMVAEstimatorRun2Phys14NonTrig(), and getTag().
|
static |
Definition at line 25 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by ElectronMVAEstimatorRun2Phys14NonTrig(), and getNCategories().