#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 |
void | init (const std::vector< std::string > &weightFileNames) |
float | mvaValue (const edm::Ptr< reco::Candidate > &candPtr, const edm::EventBase &iEvent, int &iCategory) const override |
void | setConsumes (edm::ConsumesCollector &&) final |
~ElectronMVAEstimatorRun2 () override | |
Public Member Functions inherited from AnyMVAEstimatorRun2Base | |
AnyMVAEstimatorRun2Base (const edm::ParameterSet &conf) | |
const std::string & | getName () const |
int | getNCategories () const |
const std::string & | getTag () const |
bool | isDebug () const |
float | mvaValue (const edm::Ptr< reco::Candidate > &candPtr, const edm::EventBase &iEvent) const |
virtual | ~AnyMVAEstimatorRun2Base () |
Private Member Functions | |
int | findCategory (const edm::Ptr< reco::GsfElectron > &gsfPtr) const |
Private Attributes | |
std::vector< StringCutObjectSelector< reco::GsfElectron > > | categoryFunctions_ |
std::vector< std::unique_ptr< const GBRForest > > | gbrForests_ |
MVAVariableManager< reco::GsfElectron > | mvaVarMngr_ |
std::vector< int > | nVariables_ |
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_, AnyMVAEstimatorRun2Base::getName(), AnyMVAEstimatorRun2Base::getNCategories(), edm::ParameterSet::getParameter(), AnyMVAEstimatorRun2Base::getTag(), mps_fire::i, init(), TauGenJetsDecayModeSelectorAllHadrons_cfi::select, and mvaElectronID_Fall17_iso_V1_cff::weightFileNames.
Referenced by ~ElectronMVAEstimatorRun2().
|
inlineoverride |
Definition at line 15 of file ElectronMVAEstimatorRun2.h.
References debug, ElectronMVAEstimatorRun2(), findCategory(), iEvent, init(), taus_updatedMVAIds_cff::mvaName, mvaElectronID_Fall17_iso_V1_cff::mvaTag, mvaValue(), setConsumes(), AlCaHLTBitMon_QueryRunRegistry::string, and mvaElectronID_Fall17_iso_V1_cff::weightFileNames.
ElectronMVAEstimatorRun2::ElectronMVAEstimatorRun2 | ( | const std::string & | mvaTag, |
const std::string & | mvaName, | ||
const bool | debug = false |
||
) |
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 116 of file ElectronMVAEstimatorRun2.cc.
References Exception, and nullptr.
Referenced by mvaValue(), and ~ElectronMVAEstimatorRun2().
|
private |
Definition at line 129 of file ElectronMVAEstimatorRun2.cc.
References categoryFunctions_, AnyMVAEstimatorRun2Base::getName(), AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), mps_fire::i, reco::LeafCandidate::pt(), and reco::GsfElectron::superCluster().
void ElectronMVAEstimatorRun2::init | ( | const std::vector< std::string > & | weightFileNames | ) |
Definition at line 28 of file ElectronMVAEstimatorRun2.cc.
References gather_cfg::cout, createGBRForest(), Exception, gbrForests_, AnyMVAEstimatorRun2Base::getName(), AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), MVAVariableManager< ParticleType >::getVarIndex(), mps_fire::i, AnyMVAEstimatorRun2Base::isDebug(), mvaVarMngr_, nVariables_, and variables_.
Referenced by ElectronMVAEstimatorRun2(), and ~ElectronMVAEstimatorRun2().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 81 of file ElectronMVAEstimatorRun2.cc.
References gather_cfg::cout, Exception, findCategory(), gbrForests_, AnyMVAEstimatorRun2Base::getName(), MVAVariableManager< ParticleType >::getName(), AnyMVAEstimatorRun2Base::getTag(), MVAVariableManager< ParticleType >::getValue(), mps_fire::i, AnyMVAEstimatorRun2Base::isDebug(), mvaVarMngr_, nullptr, nVariables_, and variables_.
Referenced by setConsumes(), and ~ElectronMVAEstimatorRun2().
|
finalvirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 74 of file ElectronMVAEstimatorRun2.cc.
References eostools::move(), mvaValue(), mvaVarMngr_, and MVAVariableManager< ParticleType >::setConsumes().
Referenced by ~ElectronMVAEstimatorRun2().
|
private |
Definition at line 36 of file ElectronMVAEstimatorRun2.h.
Referenced by ElectronMVAEstimatorRun2(), and findCategory().
|
private |
Definition at line 40 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 47 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), mvaValue(), and setConsumes().
|
private |
Definition at line 37 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 45 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().