#include <ElectronMVAEstimatorRun2.h>
Public Member Functions | |
ElectronMVAEstimatorRun2 (const edm::ParameterSet &conf) | |
ElectronMVAEstimatorRun2 (const std::string &mvaTag, const std::string &mvaName, int nCategories, const std::string &variableDefinition, const std::vector< std::string > &categoryCutStrings, const std::vector< std::string > &weightFileNames, bool debug=false) | |
int | findCategory (const reco::Candidate *candidate) const override |
float | mvaValue (const reco::Candidate *candidate, float rho, int &iCategory) const |
float | mvaValue (const reco::Candidate *candidate, std::vector< float > const &auxVariables, int &iCategory) const override |
~ElectronMVAEstimatorRun2 () override | |
Public Member Functions inherited from AnyMVAEstimatorRun2Base | |
AnyMVAEstimatorRun2Base (const ::std::string &mvaName, const ::std::string &mvaTag, int nCategories, bool debug) | |
AnyMVAEstimatorRun2Base (const edm::ParameterSet &conf) | |
const std::string & | getName () const |
int | getNCategories () const |
const std::string & | getTag () const |
bool | isDebug () const |
float | mvaValue (const reco::Candidate *candidate, std::vector< float > const &auxVariables) const |
virtual | ~AnyMVAEstimatorRun2Base () |
Private Member Functions | |
int | findCategory (reco::GsfElectron const &electron) const |
void | init (const std::vector< std::string > &weightFileNames) |
Private Attributes | |
std::vector< ThreadSafeStringCut< StringCutObjectSelector< reco::GsfElectron >, 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 16 of file ElectronMVAEstimatorRun2.h.
ElectronMVAEstimatorRun2::ElectronMVAEstimatorRun2 | ( | const edm::ParameterSet & | conf | ) |
Definition at line 3 of file ElectronMVAEstimatorRun2.cc.
References categoryFunctions_, AnyMVAEstimatorRun2Base::getNCategories(), edm::ParameterSet::getParameter(), AnyMVAEstimatorRun2Base::getTag(), mps_fire::i, init(), and mvaElectronID_Fall17_iso_V1_cff::weightFileNames.
|
inlineoverride |
Definition at line 20 of file ElectronMVAEstimatorRun2.h.
ElectronMVAEstimatorRun2::ElectronMVAEstimatorRun2 | ( | const std::string & | mvaTag, |
const std::string & | mvaName, | ||
int | nCategories, | ||
const std::string & | variableDefinition, | ||
const std::vector< std::string > & | categoryCutStrings, | ||
const std::vector< std::string > & | weightFileNames, | ||
bool | debug = false |
||
) |
Definition at line 20 of file ElectronMVAEstimatorRun2.cc.
References categoryFunctions_, TkAlMuonSelectors_cfi::cut, AnyMVAEstimatorRun2Base::getName(), AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), init(), and mvaElectronID_Fall17_iso_V1_cff::weightFileNames.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 117 of file ElectronMVAEstimatorRun2.cc.
References metsig::electron, and Exception.
Referenced by mvaValue().
|
private |
Definition at line 129 of file ElectronMVAEstimatorRun2.cc.
References categoryFunctions_, metsig::electron, AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), and mps_fire::i.
|
private |
Definition at line 37 of file ElectronMVAEstimatorRun2.cc.
References gather_cfg::cout, createGBRForest(), Exception, gbrForests_, AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), MVAVariableManager< ParticleType >::getVarIndex(), mps_fire::i, AnyMVAEstimatorRun2Base::isDebug(), dqmiolumiharvest::j, mvaVarMngr_, nVariables_, variables_, and mvaElectronID_Fall17_iso_V1_cff::weightFileNames.
Referenced by ElectronMVAEstimatorRun2().
|
inline |
Definition at line 36 of file ElectronMVAEstimatorRun2.h.
References mvaValue(), and rho.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 79 of file ElectronMVAEstimatorRun2.cc.
References gather_cfg::cout, metsig::electron, Exception, findCategory(), gbrForests_, MVAVariableManager< ParticleType >::getName(), AnyMVAEstimatorRun2Base::getTag(), MVAVariableManager< ParticleType >::getValue(), mps_fire::i, AnyMVAEstimatorRun2Base::isDebug(), mvaVarMngr_, nVariables_, and variables_.
Referenced by mvaValue().
|
private |
Definition at line 47 of file ElectronMVAEstimatorRun2.h.
Referenced by ElectronMVAEstimatorRun2(), and findCategory().
|
private |
Definition at line 51 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 57 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 48 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 55 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().