#include <PhotonMVAEstimatorRun2Spring15NonTrig.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 overridefinal |
virtual int | getNCategories () const |
virtual const std::string & | getTag () const overridefinal |
bool | isEndcapCategory (int category) const |
float | mvaValue (const edm::Ptr< reco::Candidate > &particle, const edm::Event &) const |
PhotonMVAEstimatorRun2Spring15NonTrig (const edm::ParameterSet &conf) | |
void | setConsumes (edm::ConsumesCollector &&) const override |
~PhotonMVAEstimatorRun2Spring15NonTrig () | |
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 = "PhotonMVAEstimatorRun2Spring15NonTrig" |
const edm::InputTag | _phoChargedIsolationLabel |
const edm::InputTag | _phoPhotonIsolationLabel |
const edm::InputTag | _phoWorstChargedIsolationLabel |
const edm::InputTag | _rhoLabel |
std::string | _tag |
Definition at line 21 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Enumerator | |
---|---|
UNDEFINED | |
CAT_EB | |
CAT_EE |
Definition at line 28 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
PhotonMVAEstimatorRun2Spring15NonTrig::PhotonMVAEstimatorRun2Spring15NonTrig | ( | const edm::ParameterSet & | conf | ) |
Definition at line 7 of file PhotonMVAEstimatorRun2Spring15NonTrig.cc.
References _gbrForests, _tag, createSingleReader(), edm::hlt::Exception, edm::ParameterSet::getParameter(), i, nCategories, and AlCaHLTBitMon_QueryRunRegistry::string.
PhotonMVAEstimatorRun2Spring15NonTrig::~PhotonMVAEstimatorRun2Spring15NonTrig | ( | ) |
Definition at line 54 of file PhotonMVAEstimatorRun2Spring15NonTrig.cc.
void PhotonMVAEstimatorRun2Spring15NonTrig::constrainMVAVariables | ( | AllVariables & | ) | const |
Definition at line 338 of file PhotonMVAEstimatorRun2Spring15NonTrig.cc.
Referenced by fillMVAVariables().
std::unique_ptr< const GBRForest > PhotonMVAEstimatorRun2Spring15NonTrig::createSingleReader | ( | const int | iCategory, |
const edm::FileInPath & | weightFile | ||
) |
Definition at line 141 of file PhotonMVAEstimatorRun2Spring15NonTrig.cc.
References _allMVAVars, _MethodName, edm::FileInPath::fullPath(), isEndcapCategory(), groupFilesInBlocks::temp, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varChIsoRaw, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varE1x3overE5x5, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varE2x2overE5x5, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varE2x5overE5x5, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varESEffSigmaRR, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varESEnOverRawE, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varEta, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varPhi, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varPhoIsoRaw, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varPt, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varR9, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varRawE, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varRho, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varSCEta, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varSCEtaWidth, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varSCPhiWidth, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varSieie, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varSieip, and PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varWorstChRaw.
Referenced by PhotonMVAEstimatorRun2Spring15NonTrig().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 193 of file PhotonMVAEstimatorRun2Spring15NonTrig.cc.
References _esEffSigmaRRMapLabel, _full5x5E1x3MapLabel, _full5x5E2x2MapLabel, _full5x5E2x5MaxMapLabel, _full5x5E5x5MapLabel, _full5x5SigmaIEtaIEtaMapLabel, _full5x5SigmaIEtaIPhiMapLabel, _phoChargedIsolationLabel, _phoPhotonIsolationLabel, _phoWorstChargedIsolationLabel, _rhoLabel, constrainMVAVariables(), edm::hlt::Exception, findCategory(), edm::Event::getByLabel(), isEndcapCategory(), edm::Ptr< T >::isNull(), edm::HandleBase::isValid(), eostools::move(), AnyMVAEstimatorRun2Base::packMVAVariables(), rho, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varChIsoRaw, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varE1x3overE5x5, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varE2x2overE5x5, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varE2x5overE5x5, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varESEffSigmaRR, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varESEnOverRawE, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varEta, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varPhi, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varPhoIsoRaw, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varPt, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varR9, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varRawE, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varRho, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varSCEta, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varSCEtaWidth, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varSCPhiWidth, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varSieie, PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varSieip, and PhotonMVAEstimatorRun2Spring15NonTrig::AllVariables::varWorstChRaw.
Referenced by mvaValue().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 100 of file PhotonMVAEstimatorRun2Spring15NonTrig.cc.
References funct::abs(), CAT_EB, CAT_EE, eta(), edm::Ptr< T >::isNull(), and UNDEFINED.
Referenced by fillMVAVariables(), and mvaValue().
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 73 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
References _name.
|
inlinevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 71 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
References nCategories.
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 74 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
References _tag.
bool PhotonMVAEstimatorRun2Spring15NonTrig::isEndcapCategory | ( | int | category | ) | const |
Definition at line 128 of file PhotonMVAEstimatorRun2Spring15NonTrig.cc.
References CAT_EE, and GeomDetEnumerators::isEndcap().
Referenced by createSingleReader(), fillMVAVariables(), and mvaValue().
|
virtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 58 of file PhotonMVAEstimatorRun2Spring15NonTrig.cc.
References _gbrForests, debug, fillMVAVariables(), findCategory(), isEndcapCategory(), eostools::move(), and query::result.
|
overridevirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 348 of file PhotonMVAEstimatorRun2Spring15NonTrig.cc.
References _esEffSigmaRRMapLabel, _full5x5E1x3MapLabel, _full5x5E2x2MapLabel, _full5x5E2x5MaxMapLabel, _full5x5E5x5MapLabel, _full5x5SigmaIEtaIEtaMapLabel, _full5x5SigmaIEtaIPhiMapLabel, _phoChargedIsolationLabel, _phoPhotonIsolationLabel, _phoWorstChargedIsolationLabel, and _rhoLabel.
|
private |
Definition at line 109 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by createSingleReader().
|
private |
Definition at line 124 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 120 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 121 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 122 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 123 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 118 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 119 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 105 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by mvaValue(), and PhotonMVAEstimatorRun2Spring15NonTrig().
|
private |
Definition at line 108 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by createSingleReader().
|
private |
Definition at line 97 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by getName().
|
private |
Definition at line 126 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 127 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 128 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 129 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 102 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by getTag(), and PhotonMVAEstimatorRun2Spring15NonTrig().
const int PhotonMVAEstimatorRun2Spring15NonTrig::nCategories = 2 |
Definition at line 27 of file PhotonMVAEstimatorRun2Spring15NonTrig.h.
Referenced by getNCategories(), and PhotonMVAEstimatorRun2Spring15NonTrig().