#include <PhotonMVAEstimator.h>
Public Member Functions | |
int | findCategory (const edm::Ptr< reco::Candidate > &candPtr) const override |
float | mvaValue (const edm::Ptr< reco::Candidate > &candPtr, const edm::EventBase &iEvent, int &iCategory) const override |
PhotonMVAEstimator (const edm::ParameterSet &conf) | |
void | setConsumes (edm::ConsumesCollector &&) override |
~PhotonMVAEstimator () override | |
Public Member Functions inherited from AnyMVAEstimatorRun2Base | |
AnyMVAEstimatorRun2Base (const edm::ParameterSet &conf) | |
const std::string & | getName () const |
int | getNCategories () const |
const std::string & | getTag () const |
bool | isDebug () const |
float | mvaValue (const edm::Ptr< reco::Candidate > &candPtr, const edm::EventBase &iEvent) const |
virtual | ~AnyMVAEstimatorRun2Base () |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
int | findCategory (const edm::Ptr< reco::Photon > &phoPtr) const |
Private Attributes | |
std::vector< StringCutObjectSelector< 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.h.
PhotonMVAEstimator::PhotonMVAEstimator | ( | const edm::ParameterSet & | conf | ) |
Definition at line 5 of file PhotonMVAEstimator.cc.
References categoryFunctions_, createGBRForest(), effectiveAreas_, Exception, gbrForests_, AnyMVAEstimatorRun2Base::getName(), AnyMVAEstimatorRun2Base::getNCategories(), edm::ParameterSet::getParameter(), AnyMVAEstimatorRun2Base::getTag(), MVAVariableManager< ParticleType >::getVarIndex(), mps_fire::i, mvaValue(), mvaVarMngr_, nVariables_, phoIsoCutoff_, phoIsoPtScalingCoeff_, TauGenJetsDecayModeSelectorAllHadrons_cfi::select, variables_, and mvaElectronID_Fall17_iso_V1_cff::weightFileNames.
|
inlineoverride |
Definition at line 19 of file PhotonMVAEstimator.h.
References fillDescriptions(), findCategory(), iEvent, mvaValue(), and setConsumes().
|
static |
Referenced by ~PhotonMVAEstimator().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 110 of file PhotonMVAEstimator.cc.
References Exception, and nullptr.
Referenced by mvaValue(), and ~PhotonMVAEstimator().
|
private |
Definition at line 123 of file PhotonMVAEstimator.cc.
References categoryFunctions_, AnyMVAEstimatorRun2Base::getName(), AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), mps_fire::i, reco::LeafCandidate::pt(), and reco::Photon::superCluster().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 67 of file PhotonMVAEstimator.cc.
References funct::abs(), gather_cfg::cout, effectiveAreas_, Exception, findCategory(), gbrForests_, AnyMVAEstimatorRun2Base::getName(), MVAVariableManager< ParticleType >::getName(), AnyMVAEstimatorRun2Base::getTag(), MVAVariableManager< ParticleType >::getValue(), mps_fire::i, AnyMVAEstimatorRun2Base::isDebug(), Max(), mvaVarMngr_, nVariables_, phoIsoCutoff_, phoIsoPtScalingCoeff_, and variables_.
Referenced by PhotonMVAEstimator(), and ~PhotonMVAEstimator().
|
overridevirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 137 of file PhotonMVAEstimator.cc.
References DEFINE_EDM_PLUGIN, eostools::move(), mvaVarMngr_, and MVAVariableManager< ParticleType >::setConsumes().
Referenced by ~PhotonMVAEstimator().
|
private |
Definition at line 38 of file PhotonMVAEstimator.h.
Referenced by findCategory(), and PhotonMVAEstimator().
|
private |
Definition at line 52 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 42 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 49 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), PhotonMVAEstimator(), and setConsumes().
|
private |
Definition at line 37 of file PhotonMVAEstimator.h.
|
private |
Definition at line 39 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 54 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 53 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 46 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().