#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, std::vector< float > const &auxVariables, int &iCategory) const override |
float | mvaValue (const reco::Candidate *candidate, float rho, int &iCategory) const |
~ElectronMVAEstimatorRun2 () override | |
Public Member Functions inherited from AnyMVAEstimatorRun2Base | |
AnyMVAEstimatorRun2Base (const edm::ParameterSet &conf) | |
AnyMVAEstimatorRun2Base (const ::std::string &mvaName, const ::std::string &mvaTag, int nCategories, bool debug) | |
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< ThreadSafeFunctor < 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 15 of file ElectronMVAEstimatorRun2.h.
ElectronMVAEstimatorRun2::ElectronMVAEstimatorRun2 | ( | const edm::ParameterSet & | conf | ) |
Definition at line 5 of file ElectronMVAEstimatorRun2.cc.
References categoryFunctions_, AnyMVAEstimatorRun2Base::getNCategories(), edm::ParameterSet::getParameter(), AnyMVAEstimatorRun2Base::getTag(), mps_fire::i, and init().
|
inlineoverride |
Definition at line 19 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 23 of file ElectronMVAEstimatorRun2.cc.
References categoryFunctions_, GOODCOLL_filter_cfg::cut, AnyMVAEstimatorRun2Base::getName(), AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), and init().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 122 of file ElectronMVAEstimatorRun2.cc.
References runTheMatrix::const, metsig::electron, and Exception.
Referenced by mvaValue().
|
private |
Definition at line 134 of file ElectronMVAEstimatorRun2.cc.
References categoryFunctions_, AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), mps_fire::i, reco::LeafCandidate::pt(), and reco::GsfElectron::superCluster().
|
private |
Definition at line 41 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_, and variables_.
Referenced by ElectronMVAEstimatorRun2().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 83 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_, uploadConditions::response, and variables_.
Referenced by mvaValue().
|
inline |
Definition at line 35 of file ElectronMVAEstimatorRun2.h.
References mvaValue().
|
private |
Definition at line 46 of file ElectronMVAEstimatorRun2.h.
Referenced by ElectronMVAEstimatorRun2(), and findCategory().
|
private |
Definition at line 50 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 56 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 47 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 54 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().