00001 #ifndef SiPixelRawToDigi_H 00002 #define SiPixelRawToDigi_H 00003 00009 #include "FWCore/Framework/interface/EDProducer.h" 00010 #include "FWCore/Framework/interface/EventSetup.h" 00011 #include "FWCore/Framework/interface/Event.h" 00012 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00013 00014 class SiPixelFedCablingMap; 00015 class TH1D; 00016 class TFile; 00017 class R2DTimerObserver; 00018 00019 00020 class SiPixelRawToDigi : public edm::EDProducer { 00021 public: 00022 00024 explicit SiPixelRawToDigi( const edm::ParameterSet& ); 00025 00027 virtual ~SiPixelRawToDigi(); 00028 00030 virtual void beginJob( const edm::EventSetup& ); 00031 00033 virtual void endJob() {} 00034 00036 virtual void produce( edm::Event&, const edm::EventSetup& ); 00037 00038 private: 00039 00040 unsigned long eventCounter_; 00041 // edm::InputTag theLabel; 00042 edm::ParameterSet config_; 00043 const SiPixelFedCablingMap * fedCablingMap_; 00044 std::vector<int> fedList_; 00045 TH1D *hCPU, *hDigi; 00046 TFile * rootFile; 00047 R2DTimerObserver * theTimer; 00048 bool includeErrors; 00049 bool checkOrder; 00050 }; 00051 #endif