CMS 3D CMS Logo

ElectronIDAlgo Class Reference

#include <RecoEgamma/ElectronIdentification/interface/ElectronIDAlgo.h>

Inheritance diagram for ElectronIDAlgo:

CutBasedElectronID ElectronNeuralNet PTDRElectronID

List of all members.

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_


Detailed Description

Definition at line 21 of file ElectronIDAlgo.h.


Constructor & Destructor Documentation

ElectronIDAlgo::ElectronIDAlgo (  )  [inline]

Definition at line 25 of file ElectronIDAlgo.h.

00025 {};

virtual ElectronIDAlgo::~ElectronIDAlgo (  )  [inline, virtual]

Definition at line 27 of file ElectronIDAlgo.h.

00027 {};


Member Function Documentation

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()().

00031 {return 0.;};

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().

00030 {};


Member Data Documentation

edm::InputTag ElectronIDAlgo::reducedBarrelRecHitCollection_ [protected]

Definition at line 37 of file ElectronIDAlgo.h.

Referenced by baseSetup(), and getClusterShape().

edm::InputTag ElectronIDAlgo::reducedEndcapRecHitCollection_ [protected]

Definition at line 38 of file ElectronIDAlgo.h.

Referenced by baseSetup(), and getClusterShape().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:20:13 2009 for CMSSW by  doxygen 1.5.4