#include <PhotonMVAEstimatorRun2Phys14NonTrig.h>
Classes | |
struct | AllVariables |
Public Types | |
enum | mvaCategories { UNDEFINED = -1, CAT_EB = 0, CAT_EE = 1 } |
Public Member Functions | |
void | constrainMVAVariables () |
TMVA::Reader * | createSingleReader (const int iCategory, const edm::FileInPath &weightFile) |
void | fillMVAVariables (const edm::Ptr< reco::Candidate > &particle) |
int | findCategory (const edm::Ptr< reco::Candidate > &particle) |
void | getEventContent (const edm::Event &iEvent) override |
const std::string | getName () |
int | getNCategories () |
bool | isEndcapCategory (int category) |
float | mvaValue (const edm::Ptr< reco::Candidate > &particle) |
PhotonMVAEstimatorRun2Phys14NonTrig (const edm::ParameterSet &conf) | |
void | setConsumes (edm::ConsumesCollector &&) override |
~PhotonMVAEstimatorRun2Phys14NonTrig () | |
Public Member Functions inherited from AnyMVAEstimatorRun2Base | |
AnyMVAEstimatorRun2Base (const edm::ParameterSet &conf) | |
virtual | ~AnyMVAEstimatorRun2Base () |
Public Attributes | |
const int | nCategories = 2 |
Public Attributes inherited from AnyMVAEstimatorRun2Base | |
const edm::ParameterSet | _conf |
Definition at line 19 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Enumerator | |
---|---|
UNDEFINED | |
CAT_EB | |
CAT_EE |
Definition at line 26 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
PhotonMVAEstimatorRun2Phys14NonTrig::PhotonMVAEstimatorRun2Phys14NonTrig | ( | const edm::ParameterSet & | conf | ) |
Definition at line 5 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References _MethodName, _tmvaReaders, createSingleReader(), edm::hlt::Exception, edm::ParameterSet::getParameter(), i, and nCategories.
PhotonMVAEstimatorRun2Phys14NonTrig::~PhotonMVAEstimatorRun2Phys14NonTrig | ( | ) |
Definition at line 39 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References _tmvaReaders.
void PhotonMVAEstimatorRun2Phys14NonTrig::constrainMVAVariables | ( | ) |
Definition at line 295 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
Referenced by mvaValue().
TMVA::Reader * PhotonMVAEstimatorRun2Phys14NonTrig::createSingleReader | ( | const int | iCategory, |
const edm::FileInPath & | weightFile | ||
) |
Definition at line 202 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 PhotonMVAEstimatorRun2Phys14NonTrig().
|
virtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 253 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References _allMVAVars, _rho, edm::Ptr< T >::isNull(), 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 mvaValue().
|
virtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 161 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References funct::abs(), CAT_EB, CAT_EE, eta(), edm::Ptr< T >::isNull(), and UNDEFINED.
Referenced by mvaValue().
|
overridevirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 84 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References _esEffSigmaRRMap, _esEffSigmaRRMapToken, _full5x5E1x3Map, _full5x5E1x3MapToken, _full5x5E2x2Map, _full5x5E2x2MapToken, _full5x5E2x5MaxMap, _full5x5E2x5MaxMapToken, _full5x5E5x5Map, _full5x5E5x5MapToken, _full5x5SigmaIEtaIEtaMap, _full5x5SigmaIEtaIEtaMapToken, _full5x5SigmaIEtaIPhiMap, _full5x5SigmaIEtaIPhiMapToken, _phoChargedIsolationMap, _phoChargedIsolationToken, _phoPhotonIsolationMap, _phoPhotonIsolationToken, _phoWorstChargedIsolationMap, _phoWorstChargedIsolationToken, _rho, _rhoToken, edm::hlt::Exception, edm::Event::getByToken(), and edm::HandleBase::isValid().
|
inlinevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 72 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
References name_.
|
inlinevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 70 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
References nCategories.
bool PhotonMVAEstimatorRun2Phys14NonTrig::isEndcapCategory | ( | int | category | ) |
Definition at line 189 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References CAT_EE, and GeomDetEnumerators::isEndcap().
Referenced by createSingleReader().
|
virtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 125 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References _allMVAVars, _MethodName, _tmvaReaders, constrainMVAVariables(), debug, fillMVAVariables(), findCategory(), query::result, 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.
|
overridevirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 44 of file PhotonMVAEstimatorRun2Phys14NonTrig.cc.
References AnyMVAEstimatorRun2Base::_conf, _esEffSigmaRRMapToken, _full5x5E1x3MapToken, _full5x5E2x2MapToken, _full5x5E2x5MaxMapToken, _full5x5E5x5MapToken, _full5x5SigmaIEtaIEtaMapToken, _full5x5SigmaIEtaIPhiMapToken, _phoChargedIsolationToken, _phoPhotonIsolationToken, _phoWorstChargedIsolationToken, _rhoToken, and edm::ParameterSet::getParameter().
|
private |
Definition at line 102 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by createSingleReader(), fillMVAVariables(), and mvaValue().
|
private |
Definition at line 132 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent().
|
private |
Definition at line 117 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent(), and setConsumes().
|
private |
Definition at line 128 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent().
|
private |
Definition at line 113 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent(), and setConsumes().
|
private |
Definition at line 129 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent().
|
private |
Definition at line 114 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent(), and setConsumes().
|
private |
Definition at line 130 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent().
|
private |
Definition at line 115 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent(), and setConsumes().
|
private |
Definition at line 131 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent().
|
private |
Definition at line 116 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent(), and setConsumes().
|
private |
Definition at line 126 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent().
|
private |
Definition at line 111 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent(), and setConsumes().
|
private |
Definition at line 127 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent().
|
private |
Definition at line 112 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent(), and setConsumes().
|
private |
Definition at line 101 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by createSingleReader(), mvaValue(), and PhotonMVAEstimatorRun2Phys14NonTrig().
|
private |
Definition at line 134 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent().
|
private |
Definition at line 119 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent(), and setConsumes().
|
private |
Definition at line 135 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent().
|
private |
Definition at line 120 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent(), and setConsumes().
|
private |
Definition at line 136 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent().
|
private |
Definition at line 121 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent(), and setConsumes().
|
private |
Definition at line 140 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by fillMVAVariables(), and getEventContent().
|
private |
Definition at line 139 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getEventContent(), and setConsumes().
|
private |
Definition at line 98 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by mvaValue(), PhotonMVAEstimatorRun2Phys14NonTrig(), and ~PhotonMVAEstimatorRun2Phys14NonTrig().
|
private |
Definition at line 95 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getName().
const int PhotonMVAEstimatorRun2Phys14NonTrig::nCategories = 2 |
Definition at line 25 of file PhotonMVAEstimatorRun2Phys14NonTrig.h.
Referenced by getNCategories(), and PhotonMVAEstimatorRun2Phys14NonTrig().