Public Member Functions | |
int | findCategory (const reco::Candidate *candPtr) const override |
float | mvaValue (const reco::Candidate *candPtr, std::vector< float > const &auxVars, int &iCategory) const override |
PhotonMVAEstimator (const edm::ParameterSet &conf) | |
~PhotonMVAEstimator () 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 () |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
int | findCategory (reco::Photon const &photon) const |
Private Attributes | |
std::vector< ThreadSafeStringCut< StringCutObjectSelector< reco::Photon >, reco::Photon > > | categoryFunctions_ |
std::unique_ptr< EffectiveAreas > | effectiveAreas_ |
std::vector< std::unique_ptr< const GBRForest > > | gbrForests_ |
MVAVariableManager< reco::Photon > | mvaVarMngr_ |
int | nCategories_ |
std::vector< int > | nVariables_ |
double | phoIsoCutoff_ |
std::vector< double > | phoIsoPtScalingCoeff_ |
std::vector< std::vector< int > > | variables_ |
Definition at line 13 of file PhotonMVAEstimator.cc.
PhotonMVAEstimator::PhotonMVAEstimator | ( | const edm::ParameterSet & | conf | ) |
Definition at line 50 of file PhotonMVAEstimator.cc.
References categoryFunctions_, createGBRForest(), TkAlMuonSelectors_cfi::cut, effectiveAreas_, Exception, gbrForests_, AnyMVAEstimatorRun2Base::getNCategories(), edm::ParameterSet::getParameter(), AnyMVAEstimatorRun2Base::getTag(), MVAVariableManager< ParticleType >::getVarIndex(), mps_fire::i, dqmiolumiharvest::j, mvaVarMngr_, nVariables_, phoIsoCutoff_, phoIsoPtScalingCoeff_, variables_, and mvaElectronID_Fall17_iso_V1_cff::weightFileNames.
|
inlineoverride |
Definition at line 17 of file PhotonMVAEstimator.cc.
|
static |
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 145 of file PhotonMVAEstimator.cc.
References Exception.
Referenced by mvaValue().
|
private |
Definition at line 156 of file PhotonMVAEstimator.cc.
References categoryFunctions_, AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), mps_fire::i, and muons2muons_cfi::photon.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 101 of file PhotonMVAEstimator.cc.
References funct::abs(), gather_cfg::cout, effectiveAreas_, Exception, findCategory(), gbrForests_, MVAVariableManager< ParticleType >::getName(), AnyMVAEstimatorRun2Base::getTag(), MVAVariableManager< ParticleType >::getValue(), mps_fire::i, AnyMVAEstimatorRun2Base::isDebug(), Max(), mvaVarMngr_, nVariables_, phoIsoCutoff_, phoIsoPtScalingCoeff_, reco::LeafCandidate::pt(), reco::Photon::superCluster(), and variables_.
|
private |
Definition at line 31 of file PhotonMVAEstimator.cc.
Referenced by findCategory(), and PhotonMVAEstimator().
|
private |
Definition at line 45 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 35 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 42 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 30 of file PhotonMVAEstimator.cc.
|
private |
Definition at line 32 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 47 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 46 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 39 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().