#include <CutBasedElectronID.h>
Public Member Functions | |
double | cicSelection (const reco::GsfElectron *, const edm::Event &, const edm::EventSetup &) |
int | classify (const reco::GsfElectron *) |
bool | compute_cut (double x, double et, double cut_min, double cut_max, bool gtn=false) |
CutBasedElectronID (const edm::ParameterSet &conf, edm::ConsumesCollector &iC) | |
double | result (const reco::GsfElectron *, const edm::Event &, const edm::EventSetup &) override |
double | robustSelection (const reco::GsfElectron *, const edm::Event &, const edm::EventSetup &) |
void | setup (const edm::ParameterSet &conf) override |
~CutBasedElectronID () override | |
Public Member Functions inherited from ElectronIDAlgo | |
ElectronIDAlgo () | |
virtual | ~ElectronIDAlgo () |
Private Attributes | |
edm::ParameterSet | cuts_ |
bool | newCategories_ |
std::string | quality_ |
std::string | type_ |
std::string | version_ |
edm::EDGetTokenT< std::vector< reco::Vertex > > | verticesCollection_ |
bool | wantBinning_ |
Additional Inherited Members | |
Protected Attributes inherited from ElectronIDAlgo | |
edm::InputTag | reducedBarrelRecHitCollection_ |
edm::InputTag | reducedEndcapRecHitCollection_ |
Definition at line 10 of file CutBasedElectronID.h.
CutBasedElectronID::CutBasedElectronID | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector & | iC | ||
) |
Definition at line 9 of file CutBasedElectronID.cc.
References edm::ConsumesCollector::consumes(), edm::ParameterSet::getParameter(), and verticesCollection_.
|
inlineoverride |
Definition at line 16 of file CutBasedElectronID.h.
References cicSelection(), classify(), compute_cut(), stringResolutionProvider_cfi::et, result(), robustSelection(), setup(), and x.
double CutBasedElectronID::cicSelection | ( | const reco::GsfElectron * | electron, |
const edm::Event & | e, | ||
const edm::EventSetup & | es | ||
) |
Definition at line 127 of file CutBasedElectronID.cc.
References stringResolutionProvider_cfi::bin, eostools::cat(), classify(), compute_cut(), reco::GsfElectron::convDcot(), reco::GsfElectron::convDist(), TkAlMuonSelectors_cfi::cut, cutsInCategoriesElectronIdentification_cfi::cutdcotdist, electronIdCutBased_cfi::cutdeta, electronIdCutBased_cfi::cutdphi, electronIdCutBased_cfi::cuteopin, cutsInCategoriesElectronIdentification_cfi::cutet, cutsInCategoriesElectronIdentification_cfi::cuthoe, cutsInCategoriesElectronIdentificationV06_cfi::cuthoel, electronIdCutBased_cfi::cutip, electronIdCutBased_cfi::cutmishits, cuts_, cutsInCategoriesElectronIdentification_cfi::cutsee, cutsInCategoriesElectronIdentificationV06_cfi::cutseel, electronIdCutBased_cfi::deltaEtaIn, reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), electronIdCutBased_cfi::deltaPhiIn, reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::GsfElectron::dr03TkSumPt(), reco::GsfElectron::dr04EcalRecHitSumEt(), reco::GsfElectron::dr04HcalTowerSumEt(), reco::GsfElectron::eSeedClusterOverP(), electronIdCutBased_cfi::eSeedOverPin, reco::GsfElectron::eSuperClusterOverP(), PVValHelper::eta, JetChargeProducer_cfi::exp, reco::GsfElectron::fbrem(), edm::Event::getByToken(), edm::ParameterSet::getParameter(), reco::GsfElectron::gsfTrack(), reco::GsfElectron::hadronicOverEm(), electronIdCutBased_cfi::hOverE, reco::GsfElectron::isEB(), reco::GsfElectron::isEE(), SiStripPI::max, reco::HitPattern::MISSING_INNER_HITS, or, funct::pow(), quality_, result(), reco::GsfElectron::sigmaEtaEta(), reco::GsfElectron::sigmaIetaIeta(), funct::sin(), reco::GsfElectron::superCluster(), type_, version_, verticesCollection_, badGlobalMuonTaggersAOD_cff::vtx, and wantBinning_.
Referenced by result(), and ~CutBasedElectronID().
int CutBasedElectronID::classify | ( | const reco::GsfElectron * | electron | ) |
Definition at line 57 of file CutBasedElectronID.cc.
References eostools::cat(), reco::GsfElectron::ecalDrivenSeed(), reco::GsfElectron::eSuperClusterOverP(), PVValHelper::eta, reco::GsfElectron::fbrem(), reco::GsfElectron::isEB(), reco::GsfElectron::isEE(), newCategories_, or, reco::GsfElectron::superCluster(), reco::GsfElectron::trackerDrivenSeed(), and version_.
Referenced by cicSelection(), and ~CutBasedElectronID().
bool CutBasedElectronID::compute_cut | ( | double | x, |
double | et, | ||
double | cut_min, | ||
double | cut_max, | ||
bool | gtn = false |
||
) |
Definition at line 429 of file CutBasedElectronID.cc.
References accept(), TkAlMuonSelectors_cfi::cut, and stringResolutionProvider_cfi::et.
Referenced by cicSelection(), and ~CutBasedElectronID().
|
overridevirtual |
Reimplemented from ElectronIDAlgo.
Definition at line 44 of file CutBasedElectronID.cc.
References cicSelection(), robustSelection(), and type_.
Referenced by cicSelection(), robustSelection(), and ~CutBasedElectronID().
double CutBasedElectronID::robustSelection | ( | const reco::GsfElectron * | electron, |
const edm::Event & | e, | ||
const edm::EventSetup & | es | ||
) |
Definition at line 456 of file CutBasedElectronID.cc.
References reco::GsfElectron::convDcot(), reco::GsfElectron::convDist(), TkAlMuonSelectors_cfi::cut, cuts_, electronIdCutBased_cfi::deltaEtaIn, reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), electronIdCutBased_cfi::deltaPhiIn, reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), reco::GsfElectron::dr03EcalRecHitSumEt(), reco::GsfElectron::dr03HcalDepth1TowerSumEt(), reco::GsfElectron::dr03HcalDepth2TowerSumEt(), reco::GsfElectron::dr03HcalTowerSumEt(), reco::GsfElectron::dr03TkSumPt(), reco::GsfElectron::dr04EcalRecHitSumEt(), reco::GsfElectron::dr04HcalDepth1TowerSumEt(), reco::GsfElectron::dr04HcalDepth2TowerSumEt(), reco::GsfElectron::dr04HcalTowerSumEt(), reco::GsfElectron::e1x5(), reco::GsfElectron::e2x5Max(), reco::GsfElectron::e5x5(), reco::GsfElectron::eSuperClusterOverP(), PVValHelper::eta, JetChargeProducer_cfi::exp, edm::Event::getByToken(), edm::ParameterSet::getParameter(), reco::GsfElectron::gsfTrack(), reco::GsfElectron::hadronicOverEm(), electronIdCutBased_cfi::hOverE, reco::GsfElectron::isEB(), reco::GsfElectron::isEE(), edm::HandleBase::isValid(), SiStripPI::max, reco::HitPattern::MISSING_INNER_HITS, or, reco::GsfElectron::p4(), GeomDetEnumerators::PixelBarrel, reco::BeamSpot::position(), edm::Handle< T >::product(), quality_, result(), reco::GsfElectron::sigmaEtaEta(), reco::GsfElectron::sigmaIetaIeta(), funct::sin(), reco::GsfElectron::superCluster(), type_, version_, verticesCollection_, and badGlobalMuonTaggersAOD_cff::vtx.
Referenced by result(), and ~CutBasedElectronID().
|
overridevirtual |
Reimplemented from ElectronIDAlgo.
Definition at line 15 of file CutBasedElectronID.cc.
References cuts_, Exception, edm::ParameterSet::getParameter(), newCategories_, or, quality_, AlCaHLTBitMon_QueryRunRegistry::string, type_, version_, and wantBinning_.
Referenced by ~CutBasedElectronID().
|
private |
Definition at line 32 of file CutBasedElectronID.h.
Referenced by cicSelection(), robustSelection(), and setup().
|
private |
Definition at line 27 of file CutBasedElectronID.h.
Referenced by classify(), and setup().
|
private |
Definition at line 29 of file CutBasedElectronID.h.
Referenced by cicSelection(), robustSelection(), and setup().
|
private |
Definition at line 28 of file CutBasedElectronID.h.
Referenced by Modules.Service::__str__(), Modules.Service::_placeImpl(), Modules.ESSource::_placeImpl(), Modules.ESProducer::_placeImpl(), cicSelection(), Modules.ESPrefer::copy(), Mixins._TypedParameterizable::dumpPython(), Modules.ESPrefer::dumpPythonAs(), Modules.Service::dumpSequencePython(), RandomRunSource.RandomRunSource::insertInto(), Modules.Service::insertInto(), Mixins._TypedParameterizable::insertInto(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), Modules.ESPrefer::nameInProcessDesc_(), result(), robustSelection(), and setup().
|
private |
Definition at line 30 of file CutBasedElectronID.h.
Referenced by cicSelection(), classify(), robustSelection(), and setup().
|
private |
Definition at line 31 of file CutBasedElectronID.h.
Referenced by cicSelection(), CutBasedElectronID(), and robustSelection().
|
private |
Definition at line 26 of file CutBasedElectronID.h.
Referenced by cicSelection(), and setup().