00001 #ifndef RecoParticleFlow_PFRecHitProducer_h_ 00002 #define RecoParticleFlow_PFRecHitProducer_h_ 00003 00004 // system include files 00005 #include <memory> 00006 #include <vector> 00007 00008 // user include files 00009 #include "FWCore/Framework/interface/Frameworkfwd.h" 00010 #include "FWCore/Framework/interface/EDProducer.h" 00011 00012 #include "FWCore/Framework/interface/Event.h" 00013 #include "FWCore/Framework/interface/MakerMacros.h" 00014 00015 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00016 00017 #include "DataFormats/ParticleFlowReco/interface/PFRecHitFwd.h" 00018 00028 class PFRecHitProducer : public edm::EDProducer { 00029 public: 00030 explicit PFRecHitProducer(const edm::ParameterSet&); 00031 ~PFRecHitProducer(); 00032 00033 00034 void produce(edm::Event& iEvent, 00035 const edm::EventSetup& iSetup); 00036 00037 00038 00039 protected: 00040 00041 typedef std::map<unsigned, unsigned >::const_iterator IDH; 00042 00045 virtual void createRecHits(std::vector<reco::PFRecHit>& rechits, 00046 edm::Event&, const edm::EventSetup&) = 0; 00047 00048 00049 // ----------member data --------------------------- 00050 00051 00053 bool verbose_; 00054 00056 double thresh_Barrel_; 00057 double thresh_Endcap_; 00058 }; 00059 00060 #endif