#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 override final |
virtual int | getNCategories () const override |
virtual const std::string & | getTag () const override final |
bool | isEndcapCategory (int category) const |
float | mvaValue (const edm::Ptr< reco::Candidate > &particle, const edm::Event &) const override |
void | setConsumes (edm::ConsumesCollector &&) const override final |
~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(), mps_fire::i, nCategories, candidateChargeBTagComputer_cfi::weightFile, mvaElectronID_PHYS14_PU20bx25_nonTrig_V1_cff::weightFileNames, and ~ElectronMVAEstimatorRun2Spring15NonTrig().
ElectronMVAEstimatorRun2Spring15NonTrig::~ElectronMVAEstimatorRun2Spring15NonTrig | ( | ) |
Definition at line 43 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
Referenced by ElectronMVAEstimatorRun2Spring15NonTrig().
void ElectronMVAEstimatorRun2Spring15NonTrig::constrainMVAVariables | ( | AllVariables & | allMVAVars | ) | const |
Definition at line 418 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
References DEFINE_EDM_PLUGIN, 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(), and getTag().
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, fillMVAVariables(), 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, and ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::vtxconv.
Referenced by ElectronMVAEstimatorRun2Spring15NonTrig(), and isEndcapCategory().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 218 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
References _beamSpotLabel, _conversionsLabelAOD, _conversionsLabelMiniAOD, funct::abs(), reco::Vertex::chi2(), pat::Electron::closestCtfTrackRef(), reco::GsfElectron::closestCtfTrackRef(), constexpr, constrainMVAVariables(), conversions_cfi::conversions, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::convVtxFitProbability, reco::GsfElectron::deltaEtaSeedClusterTrackAtCalo(), reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::deta, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::detacalo, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::dphi, reco::GsfElectron::ecalEnergy(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::eClass, reco::GsfElectron::eEleClusterOverPout(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::eleEoPout, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::EoP, reco::GsfElectron::eSuperClusterOverP(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::etawidth, Exception, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::expectedInnerHits, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::expectedMissingInnerHits, ElectronMVAEstimatorRun2Spring15NonTrig::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(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::gsfchi2, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::gsfhits, reco::GsfElectron::gsfTrack(), reco::GsfElectron::hadronicOverEm(), 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, eostools::move(), reco::Vertex::ndof(), NULL, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::OneMinusE1x5E5x5, AnyMVAEstimatorRun2Base::packMVAVariables(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::pfRelIso, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::phiwidth, reco::BeamSpot::position(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::PreShowerOverRaw, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::pt, reco::LeafCandidate::pt(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::R9, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::SCeta, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::see, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::spp, reco::GsfElectron::superCluster(), reco::GsfElectron::trackMomentumAtVtx(), badGlobalMuonTaggersAOD_cff::vtx, and ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables::vtxconv.
Referenced by createSingleReader(), getTag(), and 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, PVValHelper::eta, edm::Ptr< T >::get(), isEndcapCategory(), NULL, EnergyCorrector::pt, reco::LeafCandidate::pt(), reco::GsfElectron::superCluster(), and UNDEFINED.
Referenced by fillMVAVariables(), getTag(), 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 python.rootplot.argparse::category, isEndcapCategory(), and nCategories.
|
inlinefinaloverridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 101 of file ElectronMVAEstimatorRun2Spring15NonTrig.h.
References _tag, constrainMVAVariables(), fillMVAVariables(), findCategory(), and setConsumes().
bool ElectronMVAEstimatorRun2Spring15NonTrig::isEndcapCategory | ( | int | category | ) | const |
Definition at line 140 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
References CAT_EE_PT10plus, CAT_EE_PT5to10, createSingleReader(), and GeomDetEnumerators::isEndcap().
Referenced by createSingleReader(), fillMVAVariables(), findCategory(), and getNCategories().
|
overridevirtual |
Implements AnyMVAEstimatorRun2Base.
Definition at line 62 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
References _gbrForests, _MethodName, gather_cfg::cout, debug, fillMVAVariables(), findCategory(), eostools::move(), and mps_fire::result.
Referenced by setConsumes().
|
finaloverridevirtual |
Reimplemented from AnyMVAEstimatorRun2Base.
Definition at line 47 of file ElectronMVAEstimatorRun2Spring15NonTrig.cc.
References _beamSpotLabel, _conversionsLabelAOD, _conversionsLabelMiniAOD, and mvaValue().
Referenced by getTag().
|
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.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 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().