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< 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 16 of file PhotonMVAEstimator.cc.
PhotonMVAEstimator::PhotonMVAEstimator | ( | const edm::ParameterSet & | conf | ) |
Definition at line 53 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 20 of file PhotonMVAEstimator.cc.
|
static |
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 150 of file PhotonMVAEstimator.cc.
References Exception.
Referenced by mvaValue().
|
private |
Definition at line 161 of file PhotonMVAEstimator.cc.
References categoryFunctions_, AnyMVAEstimatorRun2Base::getNCategories(), AnyMVAEstimatorRun2Base::getTag(), mps_fire::i, and displacedMuons_cfi::photon.
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 105 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 34 of file PhotonMVAEstimator.cc.
Referenced by findCategory(), and PhotonMVAEstimator().
|
private |
Definition at line 48 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 38 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 45 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 33 of file PhotonMVAEstimator.cc.
|
private |
Definition at line 35 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().
|
private |
Definition at line 50 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 42 of file PhotonMVAEstimator.cc.
Referenced by mvaValue(), and PhotonMVAEstimator().