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< ThreadSafeFunctor< 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 15 of file PhotonMVAEstimator.cc.
PhotonMVAEstimator::PhotonMVAEstimator | ( | const edm::ParameterSet & | conf | ) |
Definition at line 52 of file PhotonMVAEstimator.cc.
References categoryFunctions_, createGBRForest(), PA_MinBiasSkim_cff::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 19 of file PhotonMVAEstimator.cc.
|
static |
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 149 of file PhotonMVAEstimator.cc.
References Exception.
Referenced by mvaValue().
|
private |
Definition at line 160 of file PhotonMVAEstimator.cc.
References categoryFunctions_, AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), mps_fire::i, and muons2muons_cfi::photon.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 104 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(), SiStripPI::max, mvaVarMngr_, nVariables_, phoIsoCutoff_, phoIsoPtScalingCoeff_, reco::LeafCandidate::pt(), reco::Photon::superCluster(), and variables_.
|
private |
Definition at line 33 of file PhotonMVAEstimator.cc.
Referenced by findCategory(), and PhotonMVAEstimator().
|
private |
Definition at line 47 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 37 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 44 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 32 of file PhotonMVAEstimator.cc.
|
private |
Definition at line 34 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 49 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 48 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 41 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().