#include <PhotonMVAEstimatorRun2Spring16NonTrig.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 |
PhotonMVAEstimatorRun2Spring16NonTrig (const edm::ParameterSet &conf) | |
void | setConsumes (edm::ConsumesCollector &&) const override |
~PhotonMVAEstimatorRun2Spring16NonTrig () | |
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_ = "PhotonMVAEstimatorRun2Spring16NonTrig" |
const edm::InputTag | phoChargedIsolationLabel_ |
double | phoIsoCutoff_ |
std::vector< double > | phoIsoPtScalingCoeff_ |
const edm::InputTag | phoPhotonIsolationLabel_ |
const edm::InputTag | phoWorstChargedIsolationLabel_ |
const edm::InputTag | rhoLabel_ |
std::string | tag_ |
Definition at line 23 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Enumerator | |
---|---|
UNDEFINED | |
CAT_EB | |
CAT_EE |
Definition at line 30 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
PhotonMVAEstimatorRun2Spring16NonTrig::PhotonMVAEstimatorRun2Spring16NonTrig | ( | const edm::ParameterSet & | conf | ) |
Definition at line 6 of file PhotonMVAEstimatorRun2Spring16NonTrig.cc.
References createSingleReader(), gbrForests_, edm::ParameterSet::getParameter(), mps_fire::i, nCategories, AlCaHLTBitMon_QueryRunRegistry::string, tag_, candidateChargeBTagComputer_cfi::weightFile, mvaElectronID_PHYS14_PU20bx25_nonTrig_V1_cff::weightFileNames, and ~PhotonMVAEstimatorRun2Spring16NonTrig().
PhotonMVAEstimatorRun2Spring16NonTrig::~PhotonMVAEstimatorRun2Spring16NonTrig | ( | ) |
Definition at line 49 of file PhotonMVAEstimatorRun2Spring16NonTrig.cc.
References mvaValue().
Referenced by PhotonMVAEstimatorRun2Spring16NonTrig().
void PhotonMVAEstimatorRun2Spring16NonTrig::constrainMVAVariables | ( | AllVariables & | ) | const |
Definition at line 321 of file PhotonMVAEstimatorRun2Spring16NonTrig.cc.
Referenced by fillMVAVariables(), and getTag().
std::unique_ptr< const GBRForest > PhotonMVAEstimatorRun2Spring16NonTrig::createSingleReader | ( | const int | iCategory, |
const edm::FileInPath & | weightFile | ||
) |
Definition at line 132 of file PhotonMVAEstimatorRun2Spring16NonTrig.cc.
References allMVAVars_, edm::FileInPath::fullPath(), isEndcapCategory(), MethodName_, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::scPhi, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varChIsoRaw, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varE2x2overE5x5, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varESEffSigmaRR, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varESEnOverRawE, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varPhoIsoCorr, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varPhoIsoRaw, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varR9, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varRawE, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varRho, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varSCEta, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varSCEtaWidth, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varSCPhiWidth, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varSieie, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varSieip, and PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varWorstChRaw.
Referenced by isEndcapCategory(), and PhotonMVAEstimatorRun2Spring16NonTrig().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 182 of file PhotonMVAEstimatorRun2Spring16NonTrig.cc.
References funct::abs(), constrainMVAVariables(), reco::Photon::ShowerShape::e2x2, heepElectronID_HEEPV50_CSA14_25ns_cff::e5x5, effectiveAreas_, mvaPhotonID_PHYS14_PU20bx25_nonTrig_V1_cff::esEffSigmaRRMap, Exception, findCategory(), reco::Photon::full5x5_showerShapeVariables(), mvaPhotonID_PHYS14_PU20bx25_nonTrig_V1_cff::full5x5E2x2Map, mvaPhotonID_PHYS14_PU20bx25_nonTrig_V1_cff::full5x5E5x5Map, cutBasedElectronID_CSA14_50ns_V1_cff::full5x5SigmaIEtaIEtaMap, mvaPhotonID_PHYS14_PU20bx25_nonTrig_V1_cff::full5x5SigmaIEtaIPhiMap, edm::Event::getByLabel(), EffectiveAreas::getEffectiveArea(), isEndcapCategory(), edm::Ptr< T >::isNull(), edm::HandleBase::isValid(), hpstanc_transforms::max, Max(), eostools::move(), AnyMVAEstimatorRun2Base::packMVAVariables(), phoChargedIsolationLabel_, phoIsoCutoff_, phoIsoPtScalingCoeff_, phoPhotonIsolationLabel_, phoWorstChargedIsolationLabel_, reco::LeafCandidate::pt(), reco::Photon::r9(), rho, rhoLabel_, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::scPhi, reco::Photon::superCluster(), PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varChIsoRaw, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varE2x2overE5x5, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varESEffSigmaRR, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varESEnOverRawE, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varPhoIsoCorr, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varPhoIsoRaw, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varR9, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varRawE, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varRho, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varSCEta, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varSCEtaWidth, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varSCPhiWidth, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varSieie, PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varSieip, and PhotonMVAEstimatorRun2Spring16NonTrig::AllVariables::varWorstChRaw.
Referenced by getTag(), and mvaValue().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 92 of file PhotonMVAEstimatorRun2Spring16NonTrig.cc.
References funct::abs(), CAT_EB, CAT_EE, stringResolutionProvider_cfi::eta, isEndcapCategory(), edm::Ptr< T >::isNull(), reco::Photon::superCluster(), and UNDEFINED.
Referenced by fillMVAVariables(), getTag(), and mvaValue().
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 72 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
References name_.
Referenced by plotting.Plot::draw().
|
inlinevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 70 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
References python.rootplot.argparse::category, isEndcapCategory(), and nCategories.
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 73 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
References constrainMVAVariables(), fillMVAVariables(), findCategory(), iEvent, setConsumes(), and tag_.
bool PhotonMVAEstimatorRun2Spring16NonTrig::isEndcapCategory | ( | int | category | ) | const |
Definition at line 119 of file PhotonMVAEstimatorRun2Spring16NonTrig.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 PhotonMVAEstimatorRun2Spring16NonTrig.cc.
References debug, fillMVAVariables(), findCategory(), gbrForests_, isEndcapCategory(), eostools::move(), and mps_fire::result.
Referenced by ~PhotonMVAEstimatorRun2Spring16NonTrig().
|
overridevirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 331 of file PhotonMVAEstimatorRun2Spring16NonTrig.cc.
References DEFINE_EDM_PLUGIN, phoChargedIsolationLabel_, phoPhotonIsolationLabel_, phoWorstChargedIsolationLabel_, and rhoLabel_.
Referenced by getTag().
|
private |
Definition at line 108 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Referenced by createSingleReader().
|
private |
Definition at line 123 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Referenced by fillMVAVariables().
|
private |
Definition at line 104 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Referenced by mvaValue(), and PhotonMVAEstimatorRun2Spring16NonTrig().
|
private |
Definition at line 107 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Referenced by createSingleReader().
|
private |
Definition at line 96 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Referenced by getName().
const uint PhotonMVAEstimatorRun2Spring16NonTrig::nCategories = 2 |
Definition at line 29 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Referenced by getNCategories(), and PhotonMVAEstimatorRun2Spring16NonTrig().
|
private |
Definition at line 117 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 125 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Referenced by fillMVAVariables().
|
private |
Definition at line 124 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Referenced by fillMVAVariables().
|
private |
Definition at line 118 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 119 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 120 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 101 of file PhotonMVAEstimatorRun2Spring16NonTrig.h.
Referenced by getTag(), and PhotonMVAEstimatorRun2Spring16NonTrig().