#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 11 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 15 of file CutBasedElectronID.h.
double CutBasedElectronID::cicSelection | ( | const reco::GsfElectron * | electron, |
const edm::Event & | e, | ||
const edm::EventSetup & | es | ||
) |
Definition at line 117 of file CutBasedElectronID.cc.
References newFWLiteAna::bin, eostools::cat(), classify(), compute_cut(), TkAlMuonSelectors_cfi::cut, electronIdCutBasedExt_cfi::cutdcotdist, electronIdCutBasedExt_cfi::cutdeta, electronIdCutBasedExt_cfi::cutdphi, electronIdCutBasedExt_cfi::cuteopin, electronIdCutBasedExt_cfi::cutet, electronIdCutBasedExt_cfi::cuthoe, electronIdCutBasedExt_cfi::cuthoel, electronIdCutBasedExt_cfi::cutip, electronIdCutBasedExt_cfi::cutmishits, cuts_, electronIdCutBasedExt_cfi::cutsee, electronIdCutBasedExt_cfi::cutseel, ticlTrackstersMerge_cfi::cutTk, electronIdCutBasedExt_cfi::deltaEtaIn, electronIdCutBasedExt_cfi::deltaPhiIn, MillePedeFileConverter_cfg::e, run3scouting_cff::ecalIso, HPSPFTauProducerPuppi_cfi::electron, EgHLTOffHistBins_cfi::eOverP, electronIdCutBasedExt_cfi::eSeedOverPin, PVValHelper::eta, JetChargeProducer_cfi::exp, edm::ParameterSet::getParameter(), run3scouting_cff::hcalIso, EgHLTOffHistBins_cfi::hOverE, SiStripPI::max, or, funct::pow(), quality_, result(), funct::sin(), type_, version_, verticesCollection_, L1BJetProducer_cff::vtx, and wantBinning_.
Referenced by result().
int CutBasedElectronID::classify | ( | const reco::GsfElectron * | electron | ) |
Definition at line 49 of file CutBasedElectronID.cc.
References eostools::cat(), HPSPFTauProducerPuppi_cfi::electron, EgHLTOffHistBins_cfi::eOverP, PVValHelper::eta, newCategories_, or, and version_.
Referenced by cicSelection().
bool CutBasedElectronID::compute_cut | ( | double | x, |
double | et, | ||
double | cut_min, | ||
double | cut_max, | ||
bool | gtn = false |
||
) |
Definition at line 409 of file CutBasedElectronID.cc.
References accept(), TkAlMuonSelectors_cfi::cut, EgHLTOffHistBins_cfi::et, and x.
Referenced by cicSelection().
|
overridevirtual |
Reimplemented from ElectronIDAlgo.
Definition at line 40 of file CutBasedElectronID.cc.
References cicSelection(), MillePedeFileConverter_cfg::e, HPSPFTauProducerPuppi_cfi::electron, robustSelection(), and type_.
Referenced by cicSelection(), and robustSelection().
double CutBasedElectronID::robustSelection | ( | const reco::GsfElectron * | electron, |
const edm::Event & | e, | ||
const edm::EventSetup & | es | ||
) |
Definition at line 434 of file CutBasedElectronID.cc.
References TkAlMuonSelectors_cfi::cut, cuts_, electronIdCutBasedExt_cfi::deltaEtaIn, electronIdCutBasedExt_cfi::deltaPhiIn, MillePedeFileConverter_cfg::e, run3scouting_cff::ecalIso, HPSPFTauProducerPuppi_cfi::electron, EgHLTOffHistBins_cfi::eOverP, PVValHelper::eta, JetChargeProducer_cfi::exp, funct::false, edm::ParameterSet::getParameter(), run3scouting_cff::hcalIso, EgHLTOffHistBins_cfi::hOverE, edm::HandleBase::isValid(), SiStripPI::max, or, GeomDetEnumerators::PixelBarrel, reco::BeamSpot::position(), edm::Handle< T >::product(), quality_, result(), funct::sin(), type_, version_, verticesCollection_, and L1BJetProducer_cff::vtx.
Referenced by result().
|
overridevirtual |
Reimplemented from ElectronIDAlgo.
Definition at line 13 of file CutBasedElectronID.cc.
References cuts_, Exception, edm::ParameterSet::getParameter(), newCategories_, or, quality_, AlCaHLTBitMon_QueryRunRegistry::string, type_, version_, and wantBinning_.
|
private |
Definition at line 31 of file CutBasedElectronID.h.
Referenced by cicSelection(), robustSelection(), and setup().
|
private |
Definition at line 26 of file CutBasedElectronID.h.
Referenced by classify(), and setup().
|
private |
Definition at line 28 of file CutBasedElectronID.h.
Referenced by cicSelection(), robustSelection(), and setup().
|
private |
Definition at line 27 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(), ExternalGeneratorFilter.ExternalGeneratorFilter::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 29 of file CutBasedElectronID.h.
Referenced by cicSelection(), classify(), robustSelection(), and setup().
|
private |
Definition at line 30 of file CutBasedElectronID.h.
Referenced by cicSelection(), CutBasedElectronID(), and robustSelection().
|
private |
Definition at line 25 of file CutBasedElectronID.h.
Referenced by cicSelection(), and setup().