#include <PhotonMVAEstimatorRun2Phys14NonTrig.h>
Classes | |
struct | AllVariables |
Public Types | |
enum | mvaCategories { UNDEFINED = -1, CAT_EB = 0, CAT_EE = 1 } |
Public Member Functions | |
void | constrainMVAVariables (AllVariables &vars) 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 &) const override |
int | findCategory (const edm::Ptr< reco::Candidate > &particle) const override |
const std::string & | getName () const final |
int | getNCategories () const final |
const std::string & | getTag () const final |
bool | isEndcapCategory (int category) const |
float | mvaValue (const edm::Ptr< reco::Candidate > &particle, const edm::Event &) const override |
PhotonMVAEstimatorRun2Phys14NonTrig (const edm::ParameterSet &conf) | |
void | setConsumes (edm::ConsumesCollector &&) const override |
~PhotonMVAEstimatorRun2Phys14NonTrig () override | |
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 int | nCategories = 2 |
Public Attributes inherited from AnyMVAEstimatorRun2Base | |
const edm::ParameterSet | _conf |
Private Attributes | |
AllVariables | _allMVAVars |
const edm::InputTag | _esEffSigmaRRMapLabel |
const edm::InputTag | _full5x5E1x3MapLabel |
const edm::InputTag | _full5x5E2x2MapLabel |
const edm::InputTag | _full5x5E2x5MaxMapLabel |
const edm::InputTag | _full5x5E5x5MapLabel |
const edm::InputTag | _full5x5SigmaIEtaIEtaMapLabel |
const edm::InputTag | _full5x5SigmaIEtaIPhiMapLabel |
std::vector< std::unique_ptr< const GBRForest > > | _gbrForests |
const std::string | _MethodName |
const std::string | _name = "PhotonMVAEstimatorRun2Phys14NonTrig" |
const edm::InputTag | _phoChargedIsolationLabel |
const edm::InputTag | _phoPhotonIsolationLabel |
const edm::InputTag | _phoWorstChargedIsolationLabel |
const edm::InputTag | _rhoLabel |
std::string | _tag |
const bool | _useValueMaps |
Definition at line 21 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Enumerator | |
---|---|
UNDEFINED | |
CAT_EB | |
CAT_EE |
Definition at line 28 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
PhotonMVAEstimatorRun2Phys14NonTrig::PhotonMVAEstimatorRun2Phys14NonTrig | ( | const edm::ParameterSet & | conf | ) |
Definition at line 7 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References _gbrForests, _tag, createSingleReader(), Exception, edm::ParameterSet::getParameter(), mps_fire::i, nCategories, AlCaHLTBitMon_QueryRunRegistry::string, electrons_cff::weightFile, mvaElectronID_Fall17_iso_V1_cff::weightFileNames, and ~PhotonMVAEstimatorRun2Phys14NonTrig().
|
override |
Definition at line 48 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References mvaValue().
Referenced by PhotonMVAEstimatorRun2Phys14NonTrig().
void PhotonMVAEstimatorRun2Phys14NonTrig::constrainMVAVariables | ( | AllVariables & | vars | ) | const |
Definition at line 355 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
Referenced by fillMVAVariables(), and getTag().
std::unique_ptr< const GBRForest > PhotonMVAEstimatorRun2Phys14NonTrig::createSingleReader | ( | const int | iCategory, |
const edm::FileInPath & | weightFile | ||
) |
Definition at line 134 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References _allMVAVars, _MethodName, edm::FileInPath::fullPath(), isEndcapCategory(), PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varChIsoRaw, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varE1x3overE5x5, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varE2x2overE5x5, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varE2x5overE5x5, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varESEffSigmaRR, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varESEnOverRawE, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varEta, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varPhi, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varPhoIsoRaw, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varPt, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varR9, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varRawE, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varRho, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varSCEta, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varSCEtaWidth, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varSCPhiWidth, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varSieie, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varSieip, and PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varWorstChRaw.
Referenced by isEndcapCategory(), and PhotonMVAEstimatorRun2Phys14NonTrig().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 184 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References _esEffSigmaRRMapLabel, _full5x5E1x3MapLabel, _full5x5E2x2MapLabel, _full5x5E2x5MaxMapLabel, _full5x5E5x5MapLabel, _full5x5SigmaIEtaIEtaMapLabel, _full5x5SigmaIEtaIPhiMapLabel, _phoChargedIsolationLabel, _phoPhotonIsolationLabel, _phoWorstChargedIsolationLabel, _rhoLabel, _useValueMaps, constrainMVAVariables(), reco::Photon::ShowerShape::e1x3, heepElectronID_HEEPV50_CSA14_25ns_cff::e2x5, heepElectronID_HEEPV50_CSA14_25ns_cff::e5x5, mvaPhotonID_Spring15_25ns_nonTrig_V0_cff::esEffSigmaRRMap, reco::LeafCandidate::eta(), Exception, findCategory(), reco::Photon::full5x5_showerShapeVariables(), mvaPhotonID_Spring15_25ns_nonTrig_V0_cff::full5x5E1x3Map, mvaPhotonID_Spring15_25ns_nonTrig_V0_cff::full5x5E2x2Map, mvaPhotonID_Spring15_25ns_nonTrig_V0_cff::full5x5E2x5MaxMap, 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, eostools::move(), AnyMVAEstimatorRun2Base::packMVAVariables(), reco::LeafCandidate::phi(), reco::LeafCandidate::pt(), reco::Photon::r9(), rho, reco::Photon::superCluster(), PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varChIsoRaw, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varE1x3overE5x5, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varE2x2overE5x5, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varE2x5overE5x5, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varESEffSigmaRR, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varESEnOverRawE, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varEta, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varPhi, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varPhoIsoRaw, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varPt, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varR9, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varRawE, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varRho, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varSCEta, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varSCEtaWidth, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varSCPhiWidth, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varSieie, PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varSieip, and PhotonMVAEstimatorRun2Phys14NonTrig::AllVariables::varWorstChRaw.
Referenced by getTag(), and mvaValue().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 93 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References funct::abs(), CAT_EB, CAT_EE, constexpr, mvaElectronID_Fall17_iso_V1_cff::ebeeSplit, PVValHelper::eta, isEndcapCategory(), edm::Ptr< T >::isNull(), reco::Photon::superCluster(), and UNDEFINED.
Referenced by fillMVAVariables(), getTag(), and mvaValue().
|
inlinefinalvirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 73 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
References _name.
Referenced by plotting.Plot::draw().
|
inlinefinalvirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 71 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
References python.rootplot.argparse::category, isEndcapCategory(), and nCategories.
|
inlinefinalvirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 74 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
References _tag, constrainMVAVariables(), fillMVAVariables(), findCategory(), and setConsumes().
bool PhotonMVAEstimatorRun2Phys14NonTrig::isEndcapCategory | ( | int | category | ) | const |
Definition at line 121 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References CAT_EE, createSingleReader(), and GeomDetEnumerators::isEndcap().
Referenced by createSingleReader(), fillMVAVariables(), findCategory(), getNCategories(), and mvaValue().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 52 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References _gbrForests, constexpr, debug, fillMVAVariables(), findCategory(), isEndcapCategory(), eostools::move(), and mps_fire::result.
Referenced by ~PhotonMVAEstimatorRun2Phys14NonTrig().
|
overridevirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 365 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References _esEffSigmaRRMapLabel, _full5x5E1x3MapLabel, _full5x5E2x2MapLabel, _full5x5E2x5MaxMapLabel, _full5x5E5x5MapLabel, _full5x5SigmaIEtaIEtaMapLabel, _full5x5SigmaIEtaIPhiMapLabel, _phoChargedIsolationLabel, _phoPhotonIsolationLabel, _phoWorstChargedIsolationLabel, _rhoLabel, _useValueMaps, and DEFINE_EDM_PLUGIN.
Referenced by getTag().
|
private |
Definition at line 110 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by createSingleReader().
|
private |
Definition at line 126 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 122 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 123 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 124 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 125 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 120 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 121 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 106 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by mvaValue(), and PhotonMVAEstimatorRun2Phys14NonTrig().
|
private |
Definition at line 109 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by createSingleReader().
|
private |
Definition at line 99 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by plotting.Subtract::__str__(), plotting.Transform::__str__(), plotting.FakeDuplicate::__str__(), plotting.CutEfficiency::__str__(), plotting.AggregateBins::__str__(), plotting.AggregateHistos::__str__(), plotting.ROC::__str__(), trackingPlots.TimePerEventPlot::__str__(), trackingPlots.TimePerTrackPlot::__str__(), trackingPlots.TimePerEventPlot::_create(), plotting.PlotGroup::_drawSeparate(), plotting.PlotGroup::_save(), plotting.Subtract::create(), plotting.Transform::create(), plotting.FakeDuplicate::create(), plotting.CutEfficiency::create(), plotting.AggregateBins::create(), plotting.AggregateHistos::create(), trackingPlots.TimePerTrackPlot::create(), plotting.Plot::create(), plotting.PlotGroup::draw(), getName(), plotting.Plot::getName(), plotting.PlotGroup::getName(), plotting.PlotterFolder::getName(), plotting.PlotterItem::getName(), plotting.PlotterFolder::getSelectionNameIterator(), validation.SimpleSample::name(), trackingPlots.Iteration::name(), plotting.PlotterItem::readDirs(), and plotting.PlotGroup::remove().
|
private |
Definition at line 128 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 129 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 130 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 132 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 103 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getTag(), and PhotonMVAEstimatorRun2Phys14NonTrig().
|
private |
Definition at line 119 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
const int PhotonMVAEstimatorRun2Phys14NonTrig::nCategories = 2 |
Definition at line 27 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getNCategories(), and PhotonMVAEstimatorRun2Phys14NonTrig().