#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< 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, init(), and mvaElectronID_Fall17_iso_V1_cff::weightFileNames.
|
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_, PA_MinBiasSkim_cff::cut, AnyMVAEstimatorRun2Base::getName(), AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), init(), and mvaElectronID_Fall17_iso_V1_cff::weightFileNames.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 122 of file ElectronMVAEstimatorRun2.cc.
References HPSPFTauProducerPuppi_cfi::electron, and Exception.
Referenced by mvaValue().
|
private |
Definition at line 134 of file ElectronMVAEstimatorRun2.cc.
References categoryFunctions_, HPSPFTauProducerPuppi_cfi::electron, AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), and mps_fire::i.
|
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_, variables_, and mvaElectronID_Fall17_iso_V1_cff::weightFileNames.
Referenced by ElectronMVAEstimatorRun2().
|
inline |
Definition at line 35 of file ElectronMVAEstimatorRun2.h.
References mvaValue(), and rho.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 83 of file ElectronMVAEstimatorRun2.cc.
References gather_cfg::cout, HPSPFTauProducerPuppi_cfi::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 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().