CMS 3D CMS Logo

PFRecHitProducer Class Reference

Base producer for particle flow rechits (PFRecHit). More...

#include <RecoParticleFlow/PFClusterProducer/interface/PFRecHitProducer.h>

Inheritance diagram for PFRecHitProducer:

edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper PFRecHitProducerECAL PFRecHitProducerHCAL PFRecHitProducerPS

List of all members.

Public Member Functions

 PFRecHitProducer (const edm::ParameterSet &)
void produce (edm::Event &iEvent, const edm::EventSetup &iSetup)
 ~PFRecHitProducer ()

Protected Types

typedef std::map< unsigned,
unsigned >::const_iterator 
IDH

Protected Member Functions

virtual void createRecHits (std::vector< reco::PFRecHit > &rechits, edm::Event &, const edm::EventSetup &)=0
 translate the standard rechits ( or calotowers) them to PFRecHits, which are stored in the rechits vector

Protected Attributes

double thresh_Barrel_
 rechits with E < threshold will not give rise to a PFRecHit
double thresh_Endcap_
bool verbose_
 verbose ?


Detailed Description

Base producer for particle flow rechits (PFRecHit).

Author:
Colin Bernet
Date:
february 2008

Definition at line 28 of file PFRecHitProducer.h.


Member Typedef Documentation

typedef std::map<unsigned, unsigned >::const_iterator PFRecHitProducer::IDH [protected]

Definition at line 41 of file PFRecHitProducer.h.


Constructor & Destructor Documentation

PFRecHitProducer::PFRecHitProducer ( const edm::ParameterSet iConfig  )  [explicit]

Definition at line 17 of file PFRecHitProducer.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), thresh_Barrel_, thresh_Endcap_, and verbose_.

00018 {
00019 
00020     
00021   verbose_ = 
00022     iConfig.getUntrackedParameter<bool>("verbose",false);
00023 
00024   thresh_Barrel_ = 
00025     iConfig.getParameter<double>("thresh_Barrel");
00026   thresh_Endcap_ = 
00027     iConfig.getParameter<double>("thresh_Endcap");
00028     
00029     
00030   
00031   //register products
00032   produces<reco::PFRecHitCollection>();
00033   
00034 }

PFRecHitProducer::~PFRecHitProducer (  ) 

Definition at line 50 of file PFRecHitProducer.cc.

00050 {}


Member Function Documentation

virtual void PFRecHitProducer::createRecHits ( std::vector< reco::PFRecHit > &  rechits,
edm::Event ,
const edm::EventSetup  
) [protected, pure virtual]

translate the standard rechits ( or calotowers) them to PFRecHits, which are stored in the rechits vector

Implemented in PFRecHitProducerECAL, PFRecHitProducerHCAL, and PFRecHitProducerPS.

Referenced by produce().

void PFRecHitProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
) [virtual]

Implements edm::EDProducer.

Definition at line 37 of file PFRecHitProducer.cc.

References createRecHits(), and edm::Event::put().

00038                                                             {
00039 
00040 
00041   auto_ptr< vector<reco::PFRecHit> > recHits( new vector<reco::PFRecHit> ); 
00042   
00043   // fill the collection of rechits (see child classes)
00044   createRecHits( *recHits, iEvent, iSetup);
00045 
00046   iEvent.put( recHits );
00047 }


Member Data Documentation

double PFRecHitProducer::thresh_Barrel_ [protected]

rechits with E < threshold will not give rise to a PFRecHit

Definition at line 56 of file PFRecHitProducer.h.

Referenced by PFRecHitProducer().

double PFRecHitProducer::thresh_Endcap_ [protected]

Definition at line 57 of file PFRecHitProducer.h.

Referenced by PFRecHitProducer().

bool PFRecHitProducer::verbose_ [protected]

verbose ?

Definition at line 53 of file PFRecHitProducer.h.

Referenced by PFRecHitProducer().


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