#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 |
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 32 of file ElectronMVAEstimatorRun2.h.
ElectronMVAEstimatorRun2::ElectronMVAEstimatorRun2 | ( | const edm::ParameterSet & | conf | ) |
Definition at line 9 of file ElectronMVAEstimatorRun2.cc.
References edm::ParameterSet::getParameter(), MVAVariableHelper::indexMap(), and AlCaHLTBitMon_QueryRunRegistry::string.
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 27 of file ElectronMVAEstimatorRun2.cc.
References MVAVariableHelper::indexMap(), and mvaElectronID_Fall17_iso_V1_cff::variableDefinition.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 125 of file ElectronMVAEstimatorRun2.cc.
References Options::const, HPSPFTauProducerPuppi_cfi::electron, and Exception.
Referenced by mvaValue().
|
private |
Definition at line 137 of file ElectronMVAEstimatorRun2.cc.
References categoryFunctions_, HPSPFTauProducerPuppi_cfi::electron, AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), and mps_fire::i.
|
private |
Definition at line 45 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.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 86 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_, G2GainsValidator::response, and variables_.
Referenced by mvaValue().
|
inline |
Definition at line 51 of file ElectronMVAEstimatorRun2.h.
References mvaValue(), and rho.
|
private |
Definition at line 62 of file ElectronMVAEstimatorRun2.h.
Referenced by findCategory().
|
private |
Definition at line 66 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 72 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 63 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 70 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().