#include <PhotonMVAEstimatorRunIIFall17.h>
Classes | |
struct | AllVariables |
Public Types | |
enum | mvaCategories { UNDEFINED = -1, CAT_EB = 0, CAT_EE = 1 } |
Public Member Functions | |
void | constrainMVAVariables (AllVariables &) const |
std::unique_ptr< const GBRForest > | createSingleReader (const int iCategory, const edm::FileInPath &weightFile) |
std::vector< float > | fillMVAVariables (const edm::Ptr< reco::Candidate > &particle, const edm::Event &iEvent) const override |
int | findCategory (const edm::Ptr< reco::Candidate > &particle) const override |
virtual const std::string & | getName () const override final |
virtual int | getNCategories () const |
virtual const std::string & | getTag () const override final |
bool | isEndcapCategory (int category) const |
float | mvaValue (const edm::Ptr< reco::Candidate > &particle, const edm::Event &) const |
PhotonMVAEstimatorRunIIFall17 (const edm::ParameterSet &conf) | |
void | setConsumes (edm::ConsumesCollector &&) const override |
~PhotonMVAEstimatorRunIIFall17 () | |
Public Member Functions inherited from AnyMVAEstimatorRun2Base | |
AnyMVAEstimatorRun2Base (const edm::ParameterSet &conf) | |
virtual void | getEventContent (const edm::Event &iEvent) const final |
template<typename... Args> | |
std::vector< float > | packMVAVariables (const Args...args) const |
virtual | ~AnyMVAEstimatorRun2Base () |
Public Attributes | |
const uint | nCategories = 2 |
Public Attributes inherited from AnyMVAEstimatorRun2Base | |
const edm::ParameterSet | _conf |
Private Attributes | |
AllVariables | allMVAVars_ |
EffectiveAreas | effectiveAreas_ |
std::vector< std::unique_ptr< const GBRForest > > | gbrForests_ |
const std::string | methodName_ |
const std::string | name_ = "PhotonMVAEstimatorRunIIFall17" |
const edm::InputTag | phoChargedIsolationLabel_ |
std::vector< double > | phoIsoPtScalingCoeff_ |
const edm::InputTag | phoPhotonIsolationLabel_ |
const edm::InputTag | phoWorstChargedIsolationLabel_ |
const edm::InputTag | rhoLabel_ |
std::string | tag_ |
Definition at line 24 of file PhotonMVAEstimatorRunIIFall17.h.
PhotonMVAEstimatorRunIIFall17::PhotonMVAEstimatorRunIIFall17 | ( | const edm::ParameterSet & | conf | ) |
Definition at line 6 of file PhotonMVAEstimatorRunIIFall17.cc.
References createSingleReader(), gbrForests_, edm::ParameterSet::getParameter(), mps_fire::i, nCategories, AlCaHLTBitMon_QueryRunRegistry::string, tag_, parallelization::uint(), electrons_cff::weightFile, mvaElectronID_Fall17_iso_V1_cff::weightFileNames, and ~PhotonMVAEstimatorRunIIFall17().
PhotonMVAEstimatorRunIIFall17::~PhotonMVAEstimatorRunIIFall17 | ( | ) |
Definition at line 49 of file PhotonMVAEstimatorRunIIFall17.cc.
References mvaValue().
Referenced by PhotonMVAEstimatorRunIIFall17().
void PhotonMVAEstimatorRunIIFall17::constrainMVAVariables | ( | AllVariables & | ) | const |
Definition at line 292 of file PhotonMVAEstimatorRunIIFall17.cc.
Referenced by fillMVAVariables(), and getTag().
std::unique_ptr< const GBRForest > PhotonMVAEstimatorRunIIFall17::createSingleReader | ( | const int | iCategory, |
const edm::FileInPath & | weightFile | ||
) |
Definition at line 127 of file PhotonMVAEstimatorRunIIFall17.cc.
References allMVAVars_, edm::FileInPath::fullPath(), isEndcapCategory(), methodName_, PhotonMVAEstimatorRunIIFall17::AllVariables::varChIsoRaw, PhotonMVAEstimatorRunIIFall17::AllVariables::varE2x2overE5x5, PhotonMVAEstimatorRunIIFall17::AllVariables::varESEffSigmaRR, PhotonMVAEstimatorRunIIFall17::AllVariables::varESEnOverRawE, PhotonMVAEstimatorRunIIFall17::AllVariables::varPhoIsoRaw, PhotonMVAEstimatorRunIIFall17::AllVariables::varR9, PhotonMVAEstimatorRunIIFall17::AllVariables::varRawE, PhotonMVAEstimatorRunIIFall17::AllVariables::varRho, PhotonMVAEstimatorRunIIFall17::AllVariables::varSCEta, PhotonMVAEstimatorRunIIFall17::AllVariables::varSCEtaWidth, PhotonMVAEstimatorRunIIFall17::AllVariables::varSCPhiWidth, PhotonMVAEstimatorRunIIFall17::AllVariables::varSieie, PhotonMVAEstimatorRunIIFall17::AllVariables::varSieip, and PhotonMVAEstimatorRunIIFall17::AllVariables::varWorstChRaw.
Referenced by isEndcapCategory(), and PhotonMVAEstimatorRunIIFall17().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 168 of file PhotonMVAEstimatorRunIIFall17.cc.
References constrainMVAVariables(), reco::Photon::ShowerShape::e2x2, heepElectronID_HEEPV50_CSA14_25ns_cff::e5x5, mvaPhotonID_Spring15_25ns_nonTrig_V0_cff::esEffSigmaRRMap, Exception, findCategory(), reco::Photon::full5x5_showerShapeVariables(), mvaPhotonID_Spring15_25ns_nonTrig_V0_cff::full5x5E2x2Map, mvaPhotonID_Spring15_25ns_nonTrig_V0_cff::full5x5E5x5Map, heepElectronID_HEEPV50_CSA14_25ns_cff::full5x5SigmaIEtaIEtaMap, mvaPhotonID_Spring15_25ns_nonTrig_V0_cff::full5x5SigmaIEtaIPhiMap, edm::Event::getByLabel(), isEndcapCategory(), edm::Ptr< T >::isNull(), edm::HandleBase::isValid(), SiStripPI::max, AnyMVAEstimatorRun2Base::packMVAVariables(), phoChargedIsolationLabel_, phoPhotonIsolationLabel_, phoWorstChargedIsolationLabel_, reco::Photon::r9(), rho, rhoLabel_, reco::Photon::superCluster(), PhotonMVAEstimatorRunIIFall17::AllVariables::varChIsoRaw, PhotonMVAEstimatorRunIIFall17::AllVariables::varE2x2overE5x5, PhotonMVAEstimatorRunIIFall17::AllVariables::varESEffSigmaRR, PhotonMVAEstimatorRunIIFall17::AllVariables::varESEnOverRawE, PhotonMVAEstimatorRunIIFall17::AllVariables::varPhoIsoRaw, PhotonMVAEstimatorRunIIFall17::AllVariables::varR9, PhotonMVAEstimatorRunIIFall17::AllVariables::varRawE, PhotonMVAEstimatorRunIIFall17::AllVariables::varRho, PhotonMVAEstimatorRunIIFall17::AllVariables::varSCEta, PhotonMVAEstimatorRunIIFall17::AllVariables::varSCEtaWidth, PhotonMVAEstimatorRunIIFall17::AllVariables::varSCPhiWidth, PhotonMVAEstimatorRunIIFall17::AllVariables::varSieie, PhotonMVAEstimatorRunIIFall17::AllVariables::varSieip, and PhotonMVAEstimatorRunIIFall17::AllVariables::varWorstChRaw.
Referenced by getTag(), and mvaValue().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 87 of file PhotonMVAEstimatorRunIIFall17.cc.
References funct::abs(), CAT_EB, CAT_EE, mvaElectronID_Fall17_iso_V1_cff::ebeeSplit, PVValHelper::eta, isEndcapCategory(), edm::Ptr< T >::isNull(), reco::Photon::superCluster(), and UNDEFINED.
Referenced by fillMVAVariables(), getTag(), and mvaValue().
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 71 of file PhotonMVAEstimatorRunIIFall17.h.
References name_.
Referenced by plotting.Plot::draw().
|
inlinevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 69 of file PhotonMVAEstimatorRunIIFall17.h.
References python.rootplot.argparse::category, isEndcapCategory(), and nCategories.
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 72 of file PhotonMVAEstimatorRunIIFall17.h.
References constrainMVAVariables(), fillMVAVariables(), findCategory(), iEvent, setConsumes(), and tag_.
bool PhotonMVAEstimatorRunIIFall17::isEndcapCategory | ( | int | category | ) | const |
Definition at line 114 of file PhotonMVAEstimatorRunIIFall17.cc.
References CAT_EE, createSingleReader(), and GeomDetEnumerators::isEndcap().
Referenced by createSingleReader(), fillMVAVariables(), findCategory(), getNCategories(), and mvaValue().
|
virtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 53 of file PhotonMVAEstimatorRunIIFall17.cc.
References debug, fillMVAVariables(), findCategory(), gbrForests_, isEndcapCategory(), and mps_fire::result.
Referenced by ~PhotonMVAEstimatorRunIIFall17().
|
overridevirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 301 of file PhotonMVAEstimatorRunIIFall17.cc.
References DEFINE_EDM_PLUGIN, phoChargedIsolationLabel_, phoPhotonIsolationLabel_, phoWorstChargedIsolationLabel_, and rhoLabel_.
Referenced by getTag().
|
private |
Definition at line 107 of file PhotonMVAEstimatorRunIIFall17.h.
Referenced by createSingleReader().
|
private |
Definition at line 122 of file PhotonMVAEstimatorRunIIFall17.h.
|
private |
Definition at line 103 of file PhotonMVAEstimatorRunIIFall17.h.
Referenced by mvaValue(), and PhotonMVAEstimatorRunIIFall17().
|
private |
Definition at line 106 of file PhotonMVAEstimatorRunIIFall17.h.
Referenced by createSingleReader().
|
private |
Definition at line 95 of file PhotonMVAEstimatorRunIIFall17.h.
Referenced by getName().
const uint PhotonMVAEstimatorRunIIFall17::nCategories = 2 |
Definition at line 30 of file PhotonMVAEstimatorRunIIFall17.h.
Referenced by getNCategories(), and PhotonMVAEstimatorRunIIFall17().
|
private |
Definition at line 116 of file PhotonMVAEstimatorRunIIFall17.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 123 of file PhotonMVAEstimatorRunIIFall17.h.
|
private |
Definition at line 117 of file PhotonMVAEstimatorRunIIFall17.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 118 of file PhotonMVAEstimatorRunIIFall17.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 119 of file PhotonMVAEstimatorRunIIFall17.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 100 of file PhotonMVAEstimatorRunIIFall17.h.
Referenced by getTag(), and PhotonMVAEstimatorRunIIFall17().