00001 #ifndef FastSimulation_TrackingRecHitProducer_TrackingRecHitTranslator_h 00002 #define FastSimulation_TrackingRecHitProducer_TrackingRecHitTranslator_h 00003 00004 //--------------------------------------------------------------------------- 00010 //--------------------------------------------------------------------------- 00011 00012 // Framework 00013 #include "FWCore/Framework/interface/EDProducer.h" 00014 00015 // Data Formats 00016 #include "DataFormats/TrackerRecHit2D/interface/SiTrackerGSRecHit2DCollection.h" 00017 00018 class TrackerGeometry; 00019 class DetId; 00020 00021 namespace edm { 00022 class ParameterSet; 00023 class Event; 00024 class EventSetup; 00025 } 00026 00027 class TrackingRecHitTranslator : public edm::EDProducer 00028 { 00029 public: 00030 //--- Constructor, virtual destructor (just in case) 00031 explicit TrackingRecHitTranslator(const edm::ParameterSet& conf); 00032 virtual ~TrackingRecHitTranslator(); 00033 00034 //--- The top-level event method. 00035 virtual void produce(edm::Event& e, const edm::EventSetup& c); 00036 00037 // Begin Job 00038 virtual void beginRun(edm::Run & run, const edm::EventSetup & es); 00039 00040 private: 00041 00042 void loadRecHits( 00043 std::map<DetId,edm::OwnVector<SiTrackerGSRecHit2D> >& theRecHits, 00044 SiTrackerFullGSRecHit2DCollection& theRecHitCollection) const; 00045 00046 // 00047 const TrackerGeometry* geometry; 00048 // 00049 }; 00050 00051 00052 #endif