CMS 3D CMS Logo

HFRecoEcalCandidateProducer Class Reference

#include <RecoEgamma/EgammaHFProducers/plugins/HFRecoEcalCandidateProducer.h>

Inheritance diagram for HFRecoEcalCandidateProducer:

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

List of all members.

Public Member Functions

 HFRecoEcalCandidateProducer (edm::ParameterSet const &conf)
virtual void produce (edm::Event &e, edm::EventSetup const &iSetup)

Private Attributes

HFRecoEcalCandidateAlgo algo_
edm::InputTag hfclusters_


Detailed Description

Definition at line 24 of file HFRecoEcalCandidateProducer.h.


Constructor & Destructor Documentation

HFRecoEcalCandidateProducer::HFRecoEcalCandidateProducer ( edm::ParameterSet const &  conf  )  [explicit]

Definition at line 30 of file HFRecoEcalCandidateProducer.cc.

00030                                                                                    :
00031   hfclusters_(conf.getUntrackedParameter<edm::InputTag>("hfclusters")),
00032   algo_(conf.getParameter<bool>("Correct"),conf.getParameter<double>("e9e25Cut"),conf.getParameter<double>("intercept2DCut")){
00033 
00034   produces<reco::RecoEcalCandidateCollection>();
00035 
00036 } 


Member Function Documentation

void HFRecoEcalCandidateProducer::produce ( edm::Event e,
edm::EventSetup const &  iSetup 
) [virtual]

Implements edm::EDProducer.

Definition at line 38 of file HFRecoEcalCandidateProducer.cc.

References algo_, edm::Event::getByLabel(), hfclusters_, HFRecoEcalCandidateAlgo::produce(), and edm::Event::put().

00038                                                                                    {  
00039   
00040   
00041   edm::Handle<reco::SuperClusterCollection> super_clus;
00042   edm::Handle<reco::HFEMClusterShapeAssociationCollection> hf_assoc;
00043  
00044   e.getByLabel(hfclusters_,super_clus);
00045   e.getByLabel(hfclusters_,hf_assoc);
00046 
00047   
00048   
00049   // create return data
00050   std::auto_ptr<reco::RecoEcalCandidateCollection> retdata1(new reco::RecoEcalCandidateCollection());
00051 
00052   
00053   algo_.produce(super_clus,*hf_assoc,*retdata1);
00054  
00055   e.put(retdata1);
00056 
00057 }


Member Data Documentation

HFRecoEcalCandidateAlgo HFRecoEcalCandidateProducer::algo_ [private]

Definition at line 30 of file HFRecoEcalCandidateProducer.h.

Referenced by produce().

edm::InputTag HFRecoEcalCandidateProducer::hfclusters_ [private]

Definition at line 29 of file HFRecoEcalCandidateProducer.h.

Referenced by produce().


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