#include <RecoEgamma/ElectronIdentification/interface/ElectronIDAlgo.h>
Public Member Functions | |
void | baseSetup (const edm::ParameterSet &conf) |
ElectronIDAlgo () | |
virtual double | result (const reco::GsfElectron *, const edm::Event &, const edm::EventSetup &) |
virtual void | setup (const edm::ParameterSet &conf) |
virtual | ~ElectronIDAlgo () |
Protected Member Functions | |
EcalClusterLazyTools | getClusterShape (const edm::Event &, const edm::EventSetup &) |
Protected Attributes | |
edm::InputTag | reducedBarrelRecHitCollection_ |
edm::InputTag | reducedEndcapRecHitCollection_ |
Definition at line 21 of file ElectronIDAlgo.h.
ElectronIDAlgo::ElectronIDAlgo | ( | ) | [inline] |
virtual ElectronIDAlgo::~ElectronIDAlgo | ( | ) | [inline, virtual] |
void ElectronIDAlgo::baseSetup | ( | const edm::ParameterSet & | conf | ) |
Definition at line 5 of file ElectronIDAlgo.cc.
References edm::ParameterSet::getParameter(), reducedBarrelRecHitCollection_, and reducedEndcapRecHitCollection_.
Referenced by CutBasedElectronID::setup(), and PTDRElectronID::setup().
00005 { 00006 reducedBarrelRecHitCollection_ = conf.getParameter<edm::InputTag>("reducedBarrelRecHitCollection"); 00007 reducedEndcapRecHitCollection_ = conf.getParameter<edm::InputTag>("reducedEndcapRecHitCollection"); 00008 }
EcalClusterLazyTools ElectronIDAlgo::getClusterShape | ( | const edm::Event & | ev, | |
const edm::EventSetup & | es | |||
) | [protected] |
Definition at line 10 of file ElectronIDAlgo.cc.
References edm::Event::getByLabel(), reducedBarrelRecHitCollection_, and reducedEndcapRecHitCollection_.
Referenced by PTDRElectronID::result(), and CutBasedElectronID::result().
00012 { 00013 00014 edm::Handle< EcalRecHitCollection > pEBRecHits; 00015 ev.getByLabel( reducedBarrelRecHitCollection_, pEBRecHits ); 00016 00017 edm::Handle< EcalRecHitCollection > pEERecHits; 00018 ev.getByLabel( reducedEndcapRecHitCollection_, pEERecHits ); 00019 00020 EcalClusterLazyTools lazyTools( ev, es, reducedBarrelRecHitCollection_, reducedEndcapRecHitCollection_ ) ; 00021 return lazyTools ; 00022 00023 }
virtual double ElectronIDAlgo::result | ( | const reco::GsfElectron * | , | |
const edm::Event & | , | |||
const edm::EventSetup & | ||||
) | [inline, virtual] |
Reimplemented in CutBasedElectronID, and PTDRElectronID.
Definition at line 31 of file ElectronIDAlgo.h.
Referenced by ElectronIDSelectorCutBased::operator()().
virtual void ElectronIDAlgo::setup | ( | const edm::ParameterSet & | conf | ) | [inline, virtual] |
Reimplemented in CutBasedElectronID, ElectronNeuralNet, and PTDRElectronID.
Definition at line 30 of file ElectronIDAlgo.h.
Referenced by ElectronIDSelectorCutBased::newEvent().