#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 |
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 |
const std::string & | getName () const final |
int | getNCategories () const override |
const std::string & | getTag () const final |
bool | isEndcapCategory (int category) const |
float | mvaValue (const edm::Ptr< reco::Candidate > &particle, const edm::Event &) const override |
void | setConsumes (edm::ConsumesCollector &&) const final |
~ElectronMVAEstimatorRun2Spring15Trig () override | |
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 19 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Enumerator | |
---|---|
UNDEFINED | |
CAT_EB1 | |
CAT_EB2 | |
CAT_EE |
Definition at line 26 of file ElectronMVAEstimatorRun2Spring15Trig.h.
ElectronMVAEstimatorRun2Spring15Trig::ElectronMVAEstimatorRun2Spring15Trig | ( | const edm::ParameterSet & | conf | ) |
Definition at line 13 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _gbrForests, GBRForestTools::createGBRForest(), Exception, edm::ParameterSet::getParameter(), mps_fire::i, nCategories, electrons_cff::weightFile, mvaElectronID_Fall17_iso_V1_cff::weightFileNames, and ~ElectronMVAEstimatorRun2Spring15Trig().
|
override |
Definition at line 43 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
Referenced by ElectronMVAEstimatorRun2Spring15Trig().
void ElectronMVAEstimatorRun2Spring15Trig::constrainMVAVariables | ( | AllVariables & | allMVAVars | ) | const |
Definition at line 307 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References DEFINE_EDM_PLUGIN, 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(), and getTag().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 140 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _beamSpotLabel, _conversionsLabelAOD, _conversionsLabelMiniAOD, reco::Vertex::chi2(), pat::Electron::closestCtfTrackRef(), reco::GsfElectron::closestCtfTrackRef(), constrainMVAVariables(), conversions_cfi::conversions, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::convVtxFitProbability, reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::deta, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::detacalo, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::dphi, reco::GsfElectron::ecalEnergy(), reco::GsfElectron::eEleClusterOverPout(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::EoP, reco::GsfElectron::eSuperClusterOverP(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::etawidth, Exception, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::expectedMissingInnerHits, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::fbrem, reco::GsfElectron::fbrem(), findCategory(), reco::GsfElectron::full5x5_e1x5(), reco::GsfElectron::full5x5_e5x5(), reco::GsfElectron::full5x5_r9(), reco::GsfElectron::full5x5_sigmaIetaIeta(), reco::GsfElectron::full5x5_sigmaIphiIphi(), edm::Ptr< T >::get(), edm::Ref< C, T, F >::get(), edm::Event::getByLabel(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::gsfhits, reco::GsfElectron::gsfTrack(), reco::GsfElectron::hadronicOverEm(), 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, reco::Vertex::ndof(), nullptr, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::OneMinusE1x5E5x5, AnyMVAEstimatorRun2Base::packMVAVariables(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::phiwidth, reco::BeamSpot::position(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::PreShowerOverRaw, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::pt, reco::LeafCandidate::pt(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables::R9, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::SCeta, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::see, ElectronMVAEstimatorRun2Spring15Trig::AllVariables::spp, reco::GsfElectron::superCluster(), reco::GsfElectron::trackMomentumAtVtx(), and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by getTag(), isEndcapCategory(), and mvaValue().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 97 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References funct::abs(), CAT_EB1, CAT_EB2, CAT_EE, mvaElectronID_Fall17_iso_V1_cff::ebeeSplit, mvaElectronID_Fall17_iso_V1_cff::ebSplit, PVValHelper::eta, edm::Ptr< T >::get(), isEndcapCategory(), nullptr, reco::GsfElectron::superCluster(), and UNDEFINED.
Referenced by fillMVAVariables(), getTag(), and mvaValue().
|
inlinefinalvirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 89 of file ElectronMVAEstimatorRun2Spring15Trig.h.
References _name.
Referenced by plotting.Plot::draw().
|
inlineoverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 87 of file ElectronMVAEstimatorRun2Spring15Trig.h.
References python.rootplot.argparse::category, isEndcapCategory(), and nCategories.
|
inlinefinalvirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 90 of file ElectronMVAEstimatorRun2Spring15Trig.h.
References _tag, constrainMVAVariables(), fillMVAVariables(), findCategory(), and setConsumes().
bool ElectronMVAEstimatorRun2Spring15Trig::isEndcapCategory | ( | int | category | ) | const |
Definition at line 129 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References CAT_EE, fillMVAVariables(), and GeomDetEnumerators::isEndcap().
Referenced by fillMVAVariables(), findCategory(), and getNCategories().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 62 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _gbrForests, _MethodName, gather_cfg::cout, debug, fillMVAVariables(), findCategory(), and mps_fire::result.
Referenced by setConsumes().
|
finalvirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 47 of file ElectronMVAEstimatorRun2Spring15Trig.cc.
References _beamSpotLabel, _conversionsLabelAOD, _conversionsLabelMiniAOD, and mvaValue().
Referenced by getTag().
|
private |
Definition at line 122 of file ElectronMVAEstimatorRun2Spring15Trig.h.
|
private |
Definition at line 128 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 130 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 131 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by fillMVAVariables(), and setConsumes().
|
private |
Definition at line 118 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by ElectronMVAEstimatorRun2Spring15Trig(), and mvaValue().
|
private |
Definition at line 121 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by mvaValue().
|
private |
Definition at line 111 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by plotting.Subtract::__str__(), plotting.Transform::__str__(), plotting.FakeDuplicate::__str__(), plotting.CutEfficiency::__str__(), plotting.AggregateBins::__str__(), plotting.AggregateHistos::__str__(), plotting.ROC::__str__(), trackingPlots.TimePerEventPlot::__str__(), trackingPlots.TimePerTrackPlot::__str__(), trackingPlots.TimePerEventPlot::_create(), plotting.PlotGroup::_drawSeparate(), plotting.PlotGroup::_save(), plotting.Subtract::create(), plotting.Transform::create(), plotting.FakeDuplicate::create(), plotting.CutEfficiency::create(), plotting.AggregateBins::create(), plotting.AggregateHistos::create(), trackingPlots.TimePerTrackPlot::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 115 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by getTag().
const int ElectronMVAEstimatorRun2Spring15Trig::nCategories = 3 |
Definition at line 25 of file ElectronMVAEstimatorRun2Spring15Trig.h.
Referenced by ElectronMVAEstimatorRun2Spring15Trig(), and getNCategories().