CMS 3D CMS Logo

PFRecHitProducer.cc

Go to the documentation of this file.
00001 #include "RecoParticleFlow/PFClusterProducer/interface/PFRecHitProducer.h"
00002 
00003 #include <memory>
00004 
00005 #include "DataFormats/ParticleFlowReco/interface/PFRecHit.h"
00006 
00007 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00008 #include "FWCore/Framework/interface/ESHandle.h"
00009 #include "FWCore/Framework/interface/EventSetup.h"
00010 
00011 
00012 
00013 using namespace std;
00014 using namespace edm;
00015 
00016 
00017 PFRecHitProducer::PFRecHitProducer(const edm::ParameterSet& iConfig)
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 }
00035 
00036 
00037 void PFRecHitProducer::produce(edm::Event& iEvent, 
00038                                const edm::EventSetup& iSetup) {
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 }
00048 
00049 
00050 PFRecHitProducer::~PFRecHitProducer() {}
00051 
00052 
00053 
00054 //define this as a plug-in
00055 // DEFINE_FWK_MODULE(PFRecHitProducer);
00056 

Generated on Tue Jun 9 17:44:40 2009 for CMSSW by  doxygen 1.5.4