#include <ElectronMVAEstimatorRun2Spring15NonTrig.h>
Classes | |
struct | AllVariables |
Public Types | |
enum | mvaCategories { UNDEFINED = -1, CAT_EB1_PT5to10 = 0, CAT_EB2_PT5to10 = 1, CAT_EE_PT5to10 = 2, CAT_EB1_PT10plus = 3, CAT_EB2_PT10plus = 4, CAT_EE_PT10plus = 5 } |
Public Member Functions | |
void | constrainMVAVariables (AllVariables &) const |
std::unique_ptr< const GBRForest > | createSingleReader (const int iCategory, const edm::FileInPath &weightFile) |
ElectronMVAEstimatorRun2Spring15NonTrig (const edm::ParameterSet &conf) | |
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 |
virtual const std::string & | getName () const overridefinal |
virtual int | getNCategories () const override |
virtual const std::string & | getTag () const overridefinal |
bool | isEndcapCategory (int category) const |
float | mvaValue (const edm::Ptr< reco::Candidate > &particle, const edm::Event &) const override |
void | setConsumes (edm::ConsumesCollector &&) const overridefinal |
~ElectronMVAEstimatorRun2Spring15NonTrig () | |
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 = 6 |
Public Attributes inherited from AnyMVAEstimatorRun2Base | |
const edm::ParameterSet | _conf |
Private Attributes | |
AllVariables | _allMVAVars |
const edm::InputTag | _beamSpotLabel |
const edm::InputTag | _conversionsLabelAOD |
const edm::InputTag | _conversionsLabelMiniAOD |
std::vector< std::unique_ptr < const GBRForest > > | _gbrForests |
const std::string | _MethodName |
const std::string | _name = "ElectronMVAEstimatorRun2Spring15NonTrig" |
const std::string | _tag |
Definition at line 23 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
Enumerator | |
---|---|
UNDEFINED | |
CAT_EB1_PT5to10 | |
CAT_EB2_PT5to10 | |
CAT_EE_PT5to10 | |
CAT_EB1_PT10plus | |
CAT_EB2_PT10plus | |
CAT_EE_PT10plus |
Definition at line 30 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
ElectronMVAEstimatorRun2Spring15NonTrig::ElectronMVAEstimatorRun2Spring15NonTrig | ( | const edm::ParameterSet & | conf | ) |
Definition at line 13 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
References _gbrForests, createSingleReader(), Exception, edm::ParameterSet::getParameter(), i, and nCategories.
ElectronMVAEstimatorRun2Spring15NonTrig::~ElectronMVAEstimatorRun2Spring15NonTrig | ( | ) |
Definition at line 43 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
void ElectronMVAEstimatorRun2Spring15NonTrig::constrainMVAVariables | ( | AllVariables & | allMVAVars | ) | const |
Definition at line 418 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
References ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::deta, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::detacalo, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::dphi, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::EoP, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::fbrem, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::OneMinusE1x5E5x5, and ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::R9.
Referenced by fillMVAVariables().
std::unique_ptr< const GBRForest > ElectronMVAEstimatorRun2Spring15NonTrig::createSingleReader | ( | const int | iCategory, |
const edm::FileInPath & | weightFile | ||
) |
Definition at line 151 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
References _allMVAVars, _MethodName, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::convVtxFitProbability, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::deta, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::detacalo, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::dphi, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::eClass, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::EoP, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::etawidth, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::expectedInnerHits, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::expectedMissingInnerHits, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::fbrem, edm::FileInPath::fullPath(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::gsfhits, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::HoE, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::IoEmIoP, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::isBarrel, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::isEndcap, isEndcapCategory(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::kfhits, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::mcCBmatchingCategory, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::mcEventWeight, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::OneMinusE1x5E5x5, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::pfRelIso, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::phiwidth, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::PreShowerOverRaw, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::pt, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::R9, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::SCeta, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::see, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::spp, groupFilesInBlocks::temp, and ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::vtxconv.
Referenced by ElectronMVAEstimatorRun2Spring15NonTrig().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 218 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
References _beamSpotLabel, _conversionsLabelAOD, _conversionsLabelMiniAOD, funct::abs(), reco::Vertex::chi2(), constexpr, constrainMVAVariables(), conversions_cfi::conversions, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::convVtxFitProbability, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::deta, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::detacalo, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::dphi, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::eClass, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::EoP, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::etawidth, Exception, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::expectedInnerHits, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::expectedMissingInnerHits, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::fbrem, findCategory(), edm::Ptr< T >::get(), edm::Ref< C, T, F >::get(), edm::Event::getByLabel(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::gsfhits, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::HoE, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::IoEmIoP, edm::Ref< C, T, F >::isAvailable(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::isBarrel, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::isEndcap, isEndcapCategory(), edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::isNull(), reco::Vertex::isValid(), edm::HandleBase::isValid(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::kfhits, ConversionTools::matchedConversion(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::mcCBmatchingCategory, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::mcEventWeight, reco::HitPattern::MISSING_INNER_HITS, reco::Vertex::ndof(), NULL, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::OneMinusE1x5E5x5, AnyMVAEstimatorRun2Base::packMVAVariables(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::pfRelIso, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::phiwidth, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::PreShowerOverRaw, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::pt, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::R9, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::SCeta, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::see, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::spp, and ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::vtxconv.
Referenced by mvaValue().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 97 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
References funct::abs(), CAT_EB1_PT10plus, CAT_EB1_PT5to10, CAT_EB2_PT10plus, CAT_EB2_PT5to10, CAT_EE_PT10plus, CAT_EE_PT5to10, eta, edm::Ptr< T >::get(), NULL, EnergyCorrector::pt, and UNDEFINED.
Referenced by fillMVAVariables(), and mvaValue().
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 100 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
References _name.
Referenced by plotting.Plot::draw().
|
inlineoverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 98 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
References nCategories.
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 101 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
References _tag.
bool ElectronMVAEstimatorRun2Spring15NonTrig::isEndcapCategory | ( | int | category | ) | const |
Definition at line 140 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
References CAT_EE_PT10plus, CAT_EE_PT5to10, and GeomDetEnumerators::isEndcap().
Referenced by createSingleReader(), and fillMVAVariables().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 62 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
References _gbrForests, _MethodName, gather_cfg::cout, debug, fillMVAVariables(), findCategory(), and query::result.
|
finaloverridevirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 47 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
References _beamSpotLabel, _conversionsLabelAOD, and _conversionsLabelMiniAOD.
|
private |
Definition at line 133 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
Referenced by createSingleReader().
|
private |
Definition at line 139 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 141 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 142 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 129 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
Referenced by ElectronMVAEstimatorRun2Spring15NonTrig(), and mvaValue().
|
private |
Definition at line 132 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
Referenced by createSingleReader(), and mvaValue().
|
private |
Definition at line 122 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
Referenced by plotting.Subtract::__str__(), plotting.FakeDuplicate::__str__(), plotting.AggregateBins::__str__(), plotting.AggregateHistos::__str__(), plotting.ROC::__str__(), plotting.Plot::_createOne(), plotting.PlotGroup::_drawSeparate(), plotting.PlotGroup::_save(), plotting.Subtract::create(), plotting.FakeDuplicate::create(), plotting.AggregateBins::create(), plotting.AggregateHistos::create(), plotting.PlotGroup::draw(), getName(), plotting.Plot::getName(), plotting.PlotterFolder::getName(), plotting.PlotterFolder::getSelectionNameIterator(), validation.SimpleSample::name(), and plotting.PlotterItem::readDirs().
|
private |
Definition at line 126 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
Referenced by getTag().
const int ElectronMVAEstimatorRun2Spring15NonTrig::nCategories = 6 |
Definition at line 29 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
Referenced by ElectronMVAEstimatorRun2Spring15NonTrig(), and getNCategories().