#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 () |
TMVA::Reader * | createSingleReader (const int iCategory, const edm::FileInPath &weightFile) |
ElectronMVAEstimatorRun2Phys14NonTrig (const edm::ParameterSet &conf) | |
void | fillMVAVariables (const edm::Ptr< reco::Candidate > &particle) |
int | findCategory (const edm::Ptr< reco::Candidate > &particle) |
const std::string | getName () |
int | getNCategories () |
bool | isEndcapCategory (int category) |
float | mvaValue (const edm::Ptr< reco::Candidate > &particle) |
~ElectronMVAEstimatorRun2Phys14NonTrig () | |
Public Member Functions inherited from AnyMVAEstimatorRun2Base | |
AnyMVAEstimatorRun2Base (const edm::ParameterSet &conf) | |
virtual void | getEventContent (const edm::Event &iEvent) |
virtual void | setConsumes (edm::ConsumesCollector &&cc) |
virtual | ~AnyMVAEstimatorRun2Base () |
Public Attributes | |
const int | nCategories = 6 |
Public Attributes inherited from AnyMVAEstimatorRun2Base | |
const edm::ParameterSet | _conf |
Private Attributes | |
AllVariables | _allMVAVars |
std::string | _MethodName |
std::vector< std::unique_ptr < TMVA::Reader > > | _tmvaReaders |
const std::string | name_ = "ElectronMVAEstimatorRun2Phys14NonTrig" |
Definition at line 15 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 22 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
ElectronMVAEstimatorRun2Phys14NonTrig::ElectronMVAEstimatorRun2Phys14NonTrig | ( | const edm::ParameterSet & | conf | ) |
Definition at line 10 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References _MethodName, _tmvaReaders, createSingleReader(), edm::hlt::Exception, edm::ParameterSet::getParameter(), i, and nCategories.
ElectronMVAEstimatorRun2Phys14NonTrig::~ElectronMVAEstimatorRun2Phys14NonTrig | ( | ) |
Definition at line 36 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References _tmvaReaders.
void ElectronMVAEstimatorRun2Phys14NonTrig::constrainMVAVariables | ( | ) |
Definition at line 249 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References _allMVAVars, 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 mvaValue().
TMVA::Reader * ElectronMVAEstimatorRun2Phys14NonTrig::createSingleReader | ( | const int | iCategory, |
const edm::FileInPath & | weightFile | ||
) |
Definition at line 134 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, and ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::spp.
Referenced by ElectronMVAEstimatorRun2Phys14NonTrig().
|
virtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 190 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References _allMVAVars, funct::abs(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::deta, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::detacalo, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::dphi, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::EoP, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::etawidth, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::fbrem, 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, edm::Ref< C, T, F >::isNonnull(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::kfhits, NULL, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::OneMinusE1x5E5x5, 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 80 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, eta(), edm::Ptr< T >::get(), NULL, EnergyCorrector::pt, and UNDEFINED.
Referenced by mvaValue().
|
inlinevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 76 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
References name_.
|
inlinevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 74 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
References nCategories.
bool ElectronMVAEstimatorRun2Phys14NonTrig::isEndcapCategory | ( | int | category | ) |
Definition at line 123 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References CAT_EE_PT10plus, CAT_EE_PT5to10, and GeomDetEnumerators::isEndcap().
Referenced by createSingleReader().
|
virtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 42 of file ElectronMVAEstimatorRun2Phys14NonTrig.cc.
References _allMVAVars, _MethodName, _tmvaReaders, constrainMVAVariables(), gather_cfg::cout, debug, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::deta, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::detacalo, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::dphi, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::EoP, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::etawidth, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::fbrem, fillMVAVariables(), findCategory(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::HoE, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::IoEmIoP, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::kfhits, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::OneMinusE1x5E5x5, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::phiwidth, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::pt, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::R9, query::result, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::SCeta, ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::see, and ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables::spp.
|
private |
Definition at line 98 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by constrainMVAVariables(), createSingleReader(), fillMVAVariables(), and mvaValue().
|
private |
Definition at line 97 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by createSingleReader(), ElectronMVAEstimatorRun2Phys14NonTrig(), and mvaValue().
|
private |
Definition at line 94 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by ElectronMVAEstimatorRun2Phys14NonTrig(), mvaValue(), and ~ElectronMVAEstimatorRun2Phys14NonTrig().
|
private |
Definition at line 91 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getName().
const int ElectronMVAEstimatorRun2Phys14NonTrig::nCategories = 6 |
Definition at line 21 of file ElectronMVAEstimatorRun2Phys14NonTrig.h.
Referenced by ElectronMVAEstimatorRun2Phys14NonTrig(), and getNCategories().