#include <ElectronMVAEstimatorRun2.h>
Public Member Functions | |
ElectronMVAEstimatorRun2 (const edm::ParameterSet &conf) | |
ElectronMVAEstimatorRun2 (const std::string &mvaTag, const std::string &mvaName, const bool debug=false) | |
int | findCategory (const edm::Ptr< reco::Candidate > &candPtr) const override |
const std::string & | getName () const final |
int | getNCategories () const override |
const std::string & | getTag () const final |
void | init (const std::vector< std::string > &weightFileNames) |
float | mvaValue (const edm::Ptr< reco::Candidate > &candPtr, const edm::EventBase &iEvent) const override |
void | setConsumes (edm::ConsumesCollector &&) const final |
~ElectronMVAEstimatorRun2 () override | |
Public Member Functions inherited from AnyMVAEstimatorRun2Base | |
AnyMVAEstimatorRun2Base (const edm::ParameterSet &conf) | |
virtual | ~AnyMVAEstimatorRun2Base () |
Private Attributes | |
std::vector< StringCutObjectSelector< reco::GsfElectron > > | categoryFunctions_ |
bool | debug_ |
std::vector< std::unique_ptr< const GBRForest > > | gbrForests_ |
const std::string | methodName_ |
MVAVariableManager< reco::GsfElectron > | mvaVarMngr_ |
const std::string | name_ |
int | nCategories_ |
std::vector< int > | nVariables_ |
const std::string | tag_ |
std::vector< std::vector< int > > | variables_ |
Definition at line 9 of file ElectronMVAEstimatorRun2.h.
ElectronMVAEstimatorRun2::ElectronMVAEstimatorRun2 | ( | const edm::ParameterSet & | conf | ) |
Definition at line 3 of file ElectronMVAEstimatorRun2.cc.
References categoryFunctions_, Exception, edm::ParameterSet::getParameter(), mps_fire::i, init(), name_, nCategories_, TauGenJetsDecayModeSelectorAllHadrons_cfi::select, tag_, and mvaElectronID_Fall17_iso_V1_cff::weightFileNames.
|
override |
ElectronMVAEstimatorRun2::ElectronMVAEstimatorRun2 | ( | const std::string & | mvaTag, |
const std::string & | mvaName, | ||
const bool | debug = false |
||
) |
Definition at line 33 of file ElectronMVAEstimatorRun2.cc.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 140 of file ElectronMVAEstimatorRun2.cc.
References categoryFunctions_, Exception, edm::Ptr< T >::get(), mps_fire::i, name_, nCategories_, and tag_.
Referenced by getTag(), and mvaValue().
|
inlinefinalvirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 28 of file ElectronMVAEstimatorRun2.h.
References name_.
Referenced by plotting.Plot::draw().
|
inlineoverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 27 of file ElectronMVAEstimatorRun2.h.
References nCategories_.
|
inlinefinalvirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 29 of file ElectronMVAEstimatorRun2.h.
References findCategory(), setConsumes(), and tag_.
void ElectronMVAEstimatorRun2::init | ( | const std::vector< std::string > & | weightFileNames | ) |
Definition at line 42 of file ElectronMVAEstimatorRun2.cc.
References gather_cfg::cout, GBRForestTools::createGBRForest(), debug_, Exception, gbrForests_, MVAVariableManager< ParticleType >::getVarIndex(), mps_fire::i, mvaVarMngr_, name_, nCategories_, nVariables_, tag_, variables_, and ~ElectronMVAEstimatorRun2().
Referenced by ElectronMVAEstimatorRun2().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 104 of file ElectronMVAEstimatorRun2.cc.
References gather_cfg::cout, debug_, Exception, findCategory(), gbrForests_, MVAVariableManager< ParticleType >::getName(), MVAVariableManager< ParticleType >::getValue(), mps_fire::i, mvaVarMngr_, name_, nullptr, nVariables_, tag_, and variables_.
Referenced by setConsumes().
|
finalvirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 92 of file ElectronMVAEstimatorRun2.cc.
References MVAVariableManager< ParticleType >::getGlobalInputTags(), MVAVariableManager< ParticleType >::getHelperInputTags(), mvaValue(), mvaVarMngr_, and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by getTag().
|
private |
Definition at line 51 of file ElectronMVAEstimatorRun2.h.
Referenced by ElectronMVAEstimatorRun2(), and findCategory().
|
private |
Definition at line 66 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 55 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 57 of file ElectronMVAEstimatorRun2.h.
|
private |
Definition at line 64 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), mvaValue(), and setConsumes().
|
private |
Definition at line 42 of file ElectronMVAEstimatorRun2.h.
Referenced by ElectronMVAEstimatorRun2(), findCategory(), getName(), init(), and mvaValue().
|
private |
Definition at line 50 of file ElectronMVAEstimatorRun2.h.
Referenced by ElectronMVAEstimatorRun2(), findCategory(), getNCategories(), and init().
|
private |
Definition at line 52 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 47 of file ElectronMVAEstimatorRun2.h.
Referenced by ElectronMVAEstimatorRun2(), findCategory(), getTag(), init(), and mvaValue().
|
private |
Definition at line 62 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().