CMS 3D CMS Logo

GsfElectronProducer Class Reference

Description: EDProducer of GsfElectron objects. More...

#include <RecoEgamma/EgammaElectronProducers/plugins/GsfElectronProducer.h>

Inheritance diagram for GsfElectronProducer:

edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper

List of all members.

Public Member Functions

virtual void beginJob (edm::EventSetup const &iSetup)
 GsfElectronProducer (const edm::ParameterSet &conf)
virtual void produce (edm::Event &e, const edm::EventSetup &c)
virtual ~GsfElectronProducer ()

Private Attributes

GsfElectronAlgoalgo_


Detailed Description

Description: EDProducer of GsfElectron objects.

Implementation: <Notes on="" implementation>="">

Definition at line 22 of file GsfElectronProducer.h.


Constructor & Destructor Documentation

GsfElectronProducer::GsfElectronProducer ( const edm::ParameterSet conf  )  [explicit]

Definition at line 38 of file GsfElectronProducer.cc.

References algo_, and edm::ParameterSet::getParameter().

00039 {
00040   //register your products
00041   produces<GsfElectronCollection>();
00042 
00043   //create algo
00044   algo_ = new
00045     GsfElectronAlgo(iConfig,
00046                     iConfig.getParameter<double>("maxEOverPBarrel"),
00047                     iConfig.getParameter<double>("maxEOverPEndcaps"),
00048                     iConfig.getParameter<double>("minEOverPBarrel"),
00049                     iConfig.getParameter<double>("minEOverPEndcaps"),
00050                     iConfig.getParameter<double>("maxDeltaEta"),
00051                     iConfig.getParameter<double>("maxDeltaPhi"),
00052                     iConfig.getParameter<bool>("highPtPreselection"),
00053                     iConfig.getParameter<double>("highPtMin"),
00054                     iConfig.getParameter<bool>("applyEtaCorrection"),
00055                     iConfig.getParameter<bool>("applyAmbResolution")
00056                     );
00057 
00058 }

GsfElectronProducer::~GsfElectronProducer (  )  [virtual]

Definition at line 60 of file GsfElectronProducer.cc.

References algo_.

00061 {
00062   delete algo_;
00063 }


Member Function Documentation

void GsfElectronProducer::beginJob ( edm::EventSetup const &  iSetup  )  [virtual]

Reimplemented from edm::EDProducer.

Definition at line 65 of file GsfElectronProducer.cc.

00066 {     
00067 }

void GsfElectronProducer::produce ( edm::Event e,
const edm::EventSetup c 
) [virtual]

Implements edm::EDProducer.

Definition at line 70 of file GsfElectronProducer.cc.

References algo_, edm::Event::put(), GsfElectronAlgo::run(), and GsfElectronAlgo::setupES().

00071 {
00072   algo_->setupES(iSetup);  
00073 
00074   // Create the output collections   
00075   std::auto_ptr<GsfElectronCollection> pOutEle(new GsfElectronCollection);
00076   
00077   // invoke algorithm
00078   algo_->run(e,*pOutEle);
00079 
00080   // put result into the Event
00081   e.put(pOutEle);
00082   
00083 }


Member Data Documentation

GsfElectronAlgo* GsfElectronProducer::algo_ [private]

Definition at line 35 of file GsfElectronProducer.h.

Referenced by GsfElectronProducer(), produce(), and ~GsfElectronProducer().


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