#include <PhotonMVAEstimator.h>
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 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 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 14 of file PhotonMVAEstimator.h.
PhotonMVAEstimator::PhotonMVAEstimator | ( | const edm::ParameterSet & | conf | ) |
Definition at line 5 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, mvaValue(), mvaVarMngr_, nVariables_, phoIsoCutoff_, phoIsoPtScalingCoeff_, variables_, and mvaElectronID_Fall17_iso_V1_cff::weightFileNames.
|
inlineoverride |
Definition at line 20 of file PhotonMVAEstimator.h.
References fillDescriptions(), findCategory(), mvaValue(), and muons2muons_cfi::photon.
|
static |
Referenced by ~PhotonMVAEstimator().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 104 of file PhotonMVAEstimator.cc.
References Exception.
Referenced by mvaValue(), and ~PhotonMVAEstimator().
|
private |
Definition at line 117 of file PhotonMVAEstimator.cc.
References categoryFunctions_, DEFINE_EDM_PLUGIN, AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), mps_fire::i, reco::LeafCandidate::pt(), and reco::Photon::superCluster().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 61 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_.
Referenced by PhotonMVAEstimator(), and ~PhotonMVAEstimator().
|
private |
Definition at line 35 of file PhotonMVAEstimator.h.
Referenced by findCategory(), and PhotonMVAEstimator().
|
private |
Definition at line 49 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 39 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 46 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 34 of file PhotonMVAEstimator.h.
|
private |
Definition at line 36 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 51 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 50 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 43 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().