00001 #ifndef RPCUnpackingModule_H 00002 #define RPCUnpackingModule_H 00003 00004 00009 #include "FWCore/Framework/interface/EDProducer.h" 00010 #include "FWCore/Utilities/interface/InputTag.h" 00011 #include "FWCore/Framework/interface/ESWatcher.h" 00012 #include "CondFormats/DataRecord/interface/RPCEMapRcd.h" 00013 #include "RPCReadOutMappingWithFastSearch.h" 00014 00015 00016 class RPCReadOutMapping; 00017 namespace edm { class Event; class EventSetup; } 00018 00019 class RPCUnpackingModule: public edm::EDProducer { 00020 public: 00021 00023 RPCUnpackingModule(const edm::ParameterSet& pset); 00024 00026 virtual ~RPCUnpackingModule(); 00027 00031 void produce(edm::Event & ev, const edm::EventSetup& es); 00032 00033 private: 00034 edm::InputTag dataLabel_; 00035 bool doSynchro_; 00036 unsigned long eventCounter_; 00037 00038 edm::ESWatcher<RPCEMapRcd> theRecordWatcher; 00039 const RPCReadOutMapping* theCabling; 00040 RPCReadOutMappingWithFastSearch theReadoutMappingSearch; 00041 }; 00042 00043 00044 #endif