#include <RecoParticleFlow/PFClusterProducer/interface/PFRecHitProducer.h>
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 ? |
Definition at line 28 of file PFRecHitProducer.h.
typedef std::map<unsigned, unsigned >::const_iterator PFRecHitProducer::IDH [protected] |
Definition at line 41 of file PFRecHitProducer.h.
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 | ( | ) |
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 }
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] |
bool PFRecHitProducer::verbose_ [protected] |