00001 #ifndef SiPixelDigiToRaw_H 00002 #define SiPixelDigiToRaw_H 00003 00007 #include "FWCore/Framework/interface/ESWatcher.h" 00008 #include "FWCore/Framework/interface/EDProducer.h" 00009 #include "FWCore/Framework/interface/EventSetup.h" 00010 #include "FWCore/Framework/interface/Event.h" 00011 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00012 #include "FWCore/Utilities/interface/InputTag.h" 00013 #include "CondFormats/DataRecord/interface/SiPixelFedCablingMapRcd.h" 00014 00015 class SiPixelFedCablingTree; 00016 00017 class SiPixelDigiToRaw : public edm::EDProducer { 00018 public: 00019 00021 explicit SiPixelDigiToRaw( const edm::ParameterSet& ); 00022 00024 virtual ~SiPixelDigiToRaw(); 00025 00026 00028 virtual void endJob() {} 00029 00031 virtual void produce( edm::Event&, const edm::EventSetup& ); 00032 00033 private: 00034 00035 SiPixelFedCablingTree * cablingTree_; 00036 edm::ParameterSet config_; 00037 unsigned long eventCounter; 00038 edm::InputTag label; //label of input digi data 00039 int allDigiCounter; 00040 int allWordCounter; 00041 edm::ESWatcher<SiPixelFedCablingMapRcd> recordWatcher; 00042 bool debug; 00043 00044 }; 00045 #endif