#include <PhotonMVAEstimator.h>
Public Types | |
enum | mvaCategories { CAT_EB = 0, CAT_EE = 1 } |
Public Member Functions | |
std::unique_ptr< const GBRForest > | createSingleReader (const int iCategory, const edm::FileInPath &weightFile) |
int | findCategory (const edm::Ptr< reco::Candidate > &candPtr) const override |
const std::string & | getName () const final |
int | getNCategories () const override |
const std::string & | getTag () const final |
float | mvaValue (const edm::Ptr< reco::Candidate > &candPtr, const edm::EventBase &) const override |
PhotonMVAEstimator (const edm::ParameterSet &conf) | |
void | setConsumes (edm::ConsumesCollector &&) const override |
~PhotonMVAEstimator () override | |
Public Member Functions inherited from AnyMVAEstimatorRun2Base | |
AnyMVAEstimatorRun2Base (const edm::ParameterSet &conf) | |
virtual | ~AnyMVAEstimatorRun2Base () |
Public Attributes | |
const int | nCategories_ = 2 |
Private Attributes | |
const bool | debug_ |
const double | ebeeSplit_ |
std::unique_ptr< EffectiveAreas > | effectiveAreas_ |
std::vector< std::unique_ptr< const GBRForest > > | gbrForests_ |
const std::string | methodName_ |
MVAVariableManager< reco::Photon > | mvaVarMngr_ |
const std::string | name_ |
std::vector< int > | nVariables_ |
double | phoIsoCutoff_ |
std::vector< double > | phoIsoPtScalingCoeff_ |
const std::string | tag_ |
std::vector< std::vector< int > > | variables_ |
Definition at line 22 of file PhotonMVAEstimator.h.
PhotonMVAEstimator::PhotonMVAEstimator | ( | const edm::ParameterSet & | conf | ) |
Definition at line 3 of file PhotonMVAEstimator.cc.
References GBRForestTools::createGBRForest(), effectiveAreas_, Exception, gbrForests_, edm::ParameterSet::getParameter(), MVAVariableManager< ParticleType >::getVarIndex(), mps_fire::i, mvaVarMngr_, name_, nCategories_, nVariables_, phoIsoCutoff_, phoIsoPtScalingCoeff_, tag_, variables_, mvaElectronID_Fall17_iso_V1_cff::weightFileNames, and ~PhotonMVAEstimator().
|
override |
Definition at line 60 of file PhotonMVAEstimator.cc.
References mvaValue().
Referenced by PhotonMVAEstimator().
std::unique_ptr<const GBRForest> PhotonMVAEstimator::createSingleReader | ( | const int | iCategory, |
const edm::FileInPath & | weightFile | ||
) |
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 107 of file PhotonMVAEstimator.cc.
References funct::abs(), CAT_EB, CAT_EE, ebeeSplit_, PVValHelper::eta, Exception, and edm::Ptr< T >::get().
Referenced by getTag(), and mvaValue().
|
inlinefinalvirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 45 of file PhotonMVAEstimator.h.
References name_.
Referenced by plotting.Plot::draw().
|
inlineoverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 44 of file PhotonMVAEstimator.h.
References nCategories_.
|
inlinefinalvirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 46 of file PhotonMVAEstimator.h.
References findCategory(), setConsumes(), and tag_.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 64 of file PhotonMVAEstimator.cc.
References funct::abs(), CAT_EE, gather_cfg::cout, debug_, effectiveAreas_, Exception, findCategory(), gbrForests_, MVAVariableManager< ParticleType >::getName(), MVAVariableManager< ParticleType >::getValue(), mps_fire::i, Max(), mvaVarMngr_, name_, nVariables_, phoIsoCutoff_, phoIsoPtScalingCoeff_, tag_, and variables_.
Referenced by ~PhotonMVAEstimator().
|
overridevirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 130 of file PhotonMVAEstimator.cc.
References DEFINE_EDM_PLUGIN, MVAVariableManager< ParticleType >::getGlobalInputTags(), MVAVariableManager< ParticleType >::getHelperInputTags(), mvaVarMngr_, and GlobalPosition_Frontier_DevDB_cff::tag.
Referenced by getTag().
|
private |
Definition at line 83 of file PhotonMVAEstimator.h.
Referenced by mvaValue().
|
private |
Definition at line 81 of file PhotonMVAEstimator.h.
Referenced by findCategory().
|
private |
Definition at line 86 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 69 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 72 of file PhotonMVAEstimator.h.
|
private |
Definition at line 79 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), PhotonMVAEstimator(), and setConsumes().
|
private |
Definition at line 59 of file PhotonMVAEstimator.h.
Referenced by getName(), mvaValue(), and PhotonMVAEstimator().
const int PhotonMVAEstimator::nCategories_ = 2 |
Definition at line 28 of file PhotonMVAEstimator.h.
Referenced by getNCategories(), and PhotonMVAEstimator().
|
private |
Definition at line 66 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 88 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 87 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 64 of file PhotonMVAEstimator.h.
Referenced by getTag(), mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 76 of file PhotonMVAEstimator.h.
Referenced by mvaValue(), and PhotonMVAEstimator().