#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 |
~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 () |
Static Public Member Functions | |
static std::vector< float > | getExtraVars (reco::GsfElectron const &ele, reco::ConversionCollection const *conversions, reco::BeamSpot const *beamSpot, double rho) |
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.
Referenced by ~ElectronMVAEstimatorRun2().
|
inlineoverride |
Definition at line 22 of file ElectronMVAEstimatorRun2.h.
References debug, ElectronMVAEstimatorRun2(), taus_updatedMVAIds_cff::mvaName, mvaElectronID_Fall17_iso_V1_cff::mvaTag, mvaElectronID_Fall17_iso_V1_cff::nCategories, AlCaHLTBitMon_QueryRunRegistry::string, mvaElectronID_Fall17_iso_V1_cff::variableDefinition, and mvaElectronID_Fall17_iso_V1_cff::weightFileNames.
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_, TkAlMuonSelectors_cfi::cut, AnyMVAEstimatorRun2Base::getName(), AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), and init().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 125 of file ElectronMVAEstimatorRun2.cc.
References metsig::electron, and Exception.
Referenced by getExtraVars(), and mvaValue().
|
private |
Definition at line 139 of file ElectronMVAEstimatorRun2.cc.
References categoryFunctions_, AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), mps_fire::i, reco::LeafCandidate::pt(), and reco::GsfElectron::superCluster().
|
inlinestatic |
Definition at line 33 of file ElectronMVAEstimatorRun2.h.
References reco::Vertex::chi2(), reco::GsfElectron::closestCtfTrackRef(), conv, reco::Conversion::conversionVertex(), metsig::electron, findCategory(), init(), edm::Ref< C, T, F >::isAvailable(), edm::Ref< C, T, F >::isNonnull(), reco::Vertex::isValid(), ConversionTools::matchedConversion(), mvaValue(), reco::Vertex::ndof(), reco::BeamSpot::position(), rho, and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by MVAVariableHelper< reco::GsfElectron >::getAuxVariables().
|
private |
Definition at line 42 of file ElectronMVAEstimatorRun2.cc.
References gather_cfg::cout, createGBRForest(), Exception, gbrForests_, AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), MVAVariableManager< ParticleType >::getVarIndex(), mps_fire::i, AnyMVAEstimatorRun2Base::isDebug(), mvaValue(), mvaVarMngr_, nVariables_, and variables_.
Referenced by ElectronMVAEstimatorRun2(), and getExtraVars().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 89 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 getExtraVars(), and init().
|
private |
Definition at line 71 of file ElectronMVAEstimatorRun2.h.
Referenced by ElectronMVAEstimatorRun2(), and findCategory().
|
private |
Definition at line 75 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().
|
private |
Definition at line 82 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 80 of file ElectronMVAEstimatorRun2.h.
Referenced by init(), and mvaValue().