CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
PFRecHitProducer Class Referenceabstract

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

#include <PFRecHitProducer.h>

Inheritance diagram for PFRecHitProducer:
edm::EDProducer edm::ProducerBase edm::ProductRegistryHelper PFRecHitProducerECAL PFRecHitProducerHCAL PFRecHitProducerHO PFRecHitProducerPS

Public Member Functions

virtual void beginRun (edm::Run &run, const edm::EventSetup &es)
 
virtual void endRun ()
 
 PFRecHitProducer (const edm::ParameterSet &)
 
void produce (edm::Event &iEvent, const edm::EventSetup &iSetup)
 
 ~PFRecHitProducer ()
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
virtual ~EDProducer ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
boost::function< void(const
BranchDescription &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 

Protected Types

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

Protected Member Functions

virtual void createRecHits (std::vector< reco::PFRecHit > &rechits, std::vector< reco::PFRecHit > &rechitsCleaned, edm::Event &, const edm::EventSetup &)=0
 
- Protected Member Functions inherited from edm::EDProducer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::ProducerBase
template<class TProducer , class TMethod >
void callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod)
 

Protected Attributes

const HcalPFCorrsmyPFCorr
 
const EcalChannelStatustheEcalChStatus
 
const HcalChannelQualitytheHcalChStatus
 
const CaloTowerConstituentsMaptheTowerConstituentsMap
 
double thresh_Barrel_
 rechits with E < threshold will not give rise to a PFRecHit More...
 
double thresh_Endcap_
 
bool verbose_
 verbose ? More...
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
typedef WorkerT< EDProducerWorkerType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Base producer for particle flow rechits (PFRecHit)

Author
Colin Bernet
Date
february 2008

Definition at line 33 of file PFRecHitProducer.h.

Member Typedef Documentation

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

Definition at line 48 of file PFRecHitProducer.h.

Constructor & Destructor Documentation

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

Definition at line 21 of file PFRecHitProducer.cc.

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

22 {
23 
24 
25  verbose_ =
26  iConfig.getUntrackedParameter<bool>("verbose",false);
27 
29  iConfig.getParameter<double>("thresh_Barrel");
31  iConfig.getParameter<double>("thresh_Endcap");
32 
33 
34 
35  //register products
36  produces<reco::PFRecHitCollection>();
37  produces<reco::PFRecHitCollection>("Cleaned");
38 
39 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool verbose_
verbose ?
double thresh_Barrel_
rechits with E &lt; threshold will not give rise to a PFRecHit
PFRecHitProducer::~PFRecHitProducer ( )

Definition at line 58 of file PFRecHitProducer.cc.

58 {}

Member Function Documentation

void PFRecHitProducer::beginRun ( edm::Run run,
const edm::EventSetup es 
)
virtual

Reimplemented from edm::EDProducer.

Definition at line 62 of file PFRecHitProducer.cc.

References edm::EventSetup::get(), and edm::ESHandle< class >::product().

63  {
64 
65  // get the HCAL RecHits correction factors
66  // edm::ESHandle<HcalRespCorrs> rchandle;
67  // es.get<HcalRespCorrsRcd>().get(rchandle);
68  // myRespCorr= rchandle.product();
69  // And the PF-specific ones
70  edm::ESHandle<HcalPFCorrs> pfrchandle;
71  es.get<HcalPFCorrsRcd>().get(pfrchandle);
72  myPFCorr= pfrchandle.product();
73 
74  // Get cleaned channels in the HCAL and HF
75  // HCAL channel status map ****************************************
77  es.get<HcalChannelQualityRcd>().get( hcalChStatus );
78  theHcalChStatus = hcalChStatus.product();
79 
80  // Retrieve the good/bad ECAL channels from the DB
82  es.get<EcalChannelStatusRcd>().get(ecalChStatus);
83  theEcalChStatus = ecalChStatus.product();
84 
86  es.get<IdealGeometryRecord>().get(cttopo);
88 }
const HcalPFCorrs * myPFCorr
const EcalChannelStatus * theEcalChStatus
const HcalChannelQuality * theHcalChStatus
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
const CaloTowerConstituentsMap * theTowerConstituentsMap
virtual void PFRecHitProducer::createRecHits ( std::vector< reco::PFRecHit > &  rechits,
std::vector< reco::PFRecHit > &  rechitsCleaned,
edm::Event ,
const edm::EventSetup  
)
protectedpure virtual

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

Implemented in PFRecHitProducerECAL, PFRecHitProducerHO, PFRecHitProducerHCAL, and PFRecHitProducerPS.

void PFRecHitProducer::endRun ( void  )
virtual

Definition at line 92 of file PFRecHitProducer.cc.

92 {}
void PFRecHitProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Implements edm::EDProducer.

Definition at line 42 of file PFRecHitProducer.cc.

References edm::Event::put().

43  {
44 
45 
46  auto_ptr< vector<reco::PFRecHit> > recHits( new vector<reco::PFRecHit> );
47  auto_ptr< vector<reco::PFRecHit> > recHitsCleaned( new vector<reco::PFRecHit> );
48 
49  // fill the collection of rechits (see child classes)
50  createRecHits( *recHits, *recHitsCleaned, iEvent, iSetup);
51 
52  iEvent.put( recHits );
53  iEvent.put( recHitsCleaned, "Cleaned" );
54 
55 }
virtual void createRecHits(std::vector< reco::PFRecHit > &rechits, std::vector< reco::PFRecHit > &rechitsCleaned, edm::Event &, const edm::EventSetup &)=0
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:85

Member Data Documentation

const HcalPFCorrs* PFRecHitProducer::myPFCorr
protected

Definition at line 69 of file PFRecHitProducer.h.

const EcalChannelStatus* PFRecHitProducer::theEcalChStatus
protected

Definition at line 71 of file PFRecHitProducer.h.

Referenced by PFRecHitProducerHCAL::createRecHits().

const HcalChannelQuality* PFRecHitProducer::theHcalChStatus
protected
const CaloTowerConstituentsMap* PFRecHitProducer::theTowerConstituentsMap
protected

Definition at line 72 of file PFRecHitProducer.h.

Referenced by PFRecHitProducerHCAL::createRecHits().

double PFRecHitProducer::thresh_Barrel_
protected

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

Definition at line 64 of file PFRecHitProducer.h.

Referenced by PFRecHitProducerHCAL::createRecHits(), PFRecHitProducerHO::createRecHits(), and PFRecHitProducerECAL::createRecHits().

double PFRecHitProducer::thresh_Endcap_
protected
bool PFRecHitProducer::verbose_
protected

verbose ?

Definition at line 61 of file PFRecHitProducer.h.