#include <ElectronMVAEstimatorRun2Spring15Trig.h>
Classes | |
struct | AllVariables |
Public Types | |
enum | mvaCategories { UNDEFINED = -1, CAT_EB1 = 0, CAT_EB2 = 1, CAT_EE = 2 } |
Public Member Functions | |
void | constrainMVAVariables (AllVariables &) const |
std::unique_ptr< const GBRForest > | createSingleReader (const int iCategory, const edm::FileInPath &weightFile) |
ElectronMVAEstimatorRun2Spring15Trig (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 |
~ElectronMVAEstimatorRun2Spring15Trig () | |
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 = 3 |
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 = "ElectronMVAEstimatorRun2Spring15Trig" |
const std::string | _tag |
Definition at line 23 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Enumerator | |
---|---|
UNDEFINED | |
CAT_EB1 | |
CAT_EB2 | |
CAT_EE |
Definition at line 30 of file ElectronMVAEstimatorRun2Spring15Trig.h.
ElectronMVAEstimatorRun2Spring15Trig::ElectronMVAEstimatorRun2Spring15Trig | ( | const edm::ParameterSet & | conf | ) |
Definition at line 13 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _gbrForests, createSingleReader(), Exception, edm::ParameterSet::getParameter(), i, and nCategories.
ElectronMVAEstimatorRun2Spring15Trig::~ElectronMVAEstimatorRun2Spring15Trig | ( | ) |
Definition at line 43 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
void ElectronMVAEstimatorRun2Spring15Trig::constrainMVAVariables | ( | AllVariables & | allMVAVars | ) | const |
Definition at line 366 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References ElectronMVAEstimatorRun2Spring15Trig::AllVariables::deta, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::detacalo, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::dphi, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::EoP, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::fbrem, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::OneMinusE1x5E5x5, and ElectronMVAEstimatorRun2Spring15Trig::AllVariables::R9.
Referenced by fillMVAVariables().
std::unique_ptr< const GBRForest > ElectronMVAEstimatorRun2Spring15Trig::createSingleReader | ( | const int | iCategory, |
const edm::FileInPath & | weightFile | ||
) |
Definition at line 140 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _allMVAVars, _MethodName, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::convVtxFitProbability, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::deta, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::detacalo, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::dphi, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::EoP, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::etawidth, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::expectedMissingInnerHits, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::fbrem, edm::FileInPath::fullPath(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::gsfhits, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::HoE, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::IoEmIoP, isEndcapCategory(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::kfhits, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::OneMinusE1x5E5x5, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::phiwidth, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::PreShowerOverRaw, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::R9, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::see, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::spp, and groupFilesInBlocks::temp.
Referenced by ElectronMVAEstimatorRun2Spring15Trig().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 197 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _beamSpotLabel, _conversionsLabelAOD, _conversionsLabelMiniAOD, reco::Vertex::chi2(), constrainMVAVariables(), conversions_cfi::conversions, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::convVtxFitProbability, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::deta, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::detacalo, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::dphi, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::EoP, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::etawidth, Exception, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::expectedMissingInnerHits, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::fbrem, findCategory(), edm::Ptr< T >::get(), edm::Ref< C, T, F >::get(), edm::Event::getByLabel(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::gsfhits, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::HoE, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::IoEmIoP, edm::Ref< C, T, F >::isAvailable(), isEndcapCategory(), edm::Ref< C, T, F >::isNonnull(), edm::Ref< C, T, F >::isNull(), reco::Vertex::isValid(), edm::HandleBase::isValid(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::kfchi2, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::kfhits, ConversionTools::matchedConversion(), reco::HitPattern::MISSING_INNER_HITS, eostools::move(), reco::Vertex::ndof(), NULL, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::OneMinusE1x5E5x5, AnyMVAEstimatorRun2Base::packMVAVariables(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::phiwidth, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::PreShowerOverRaw, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::pt, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::R9, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::SCeta, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::see, and ElectronMVAEstimatorRun2Spring15Trig::AllVariables::spp.
Referenced by mvaValue().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 97 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References funct::abs(), CAT_EB1, CAT_EB2, CAT_EE, eta, edm::Ptr< T >::get(), NULL, and UNDEFINED.
Referenced by fillMVAVariables(), and mvaValue().
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 96 of file ElectronMVAEstimatorRun2Spring15Trig.h.
References _name.
Referenced by plotting.Plot::draw().
|
inlineoverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 94 of file ElectronMVAEstimatorRun2Spring15Trig.h.
References nCategories.
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 97 of file ElectronMVAEstimatorRun2Spring15Trig.h.
References _tag.
bool ElectronMVAEstimatorRun2Spring15Trig::isEndcapCategory | ( | int | category | ) | const |
Definition at line 129 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References CAT_EE, and GeomDetEnumerators::isEndcap().
Referenced by createSingleReader(), and fillMVAVariables().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 62 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _gbrForests, _MethodName, gather_cfg::cout, debug, fillMVAVariables(), findCategory(), eostools::move(), and query::result.
|
finaloverridevirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 47 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _beamSpotLabel, _conversionsLabelAOD, and _conversionsLabelMiniAOD.
|
private |
Definition at line 129 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by createSingleReader().
|
private |
Definition at line 135 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 137 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 138 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 125 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by ElectronMVAEstimatorRun2Spring15Trig(), and mvaValue().
|
private |
Definition at line 128 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by createSingleReader(), and mvaValue().
|
private |
Definition at line 118 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by plotting.Subtract::__str__(), plotting.FakeDuplicate::__str__(), plotting.AggregateBins::__str__(), plotting.AggregateHistos::__str__(), plotting.ROC::__str__(), plotting.PlotGroup::_drawSeparate(), plotting.PlotGroup::_save(), plotting.Subtract::create(), plotting.FakeDuplicate::create(), plotting.AggregateBins::create(), plotting.AggregateHistos::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 122 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by getTag().
const int ElectronMVAEstimatorRun2Spring15Trig::nCategories = 3 |
Definition at line 29 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by ElectronMVAEstimatorRun2Spring15Trig(), and getNCategories().