00001 #ifndef CastorRawToDigi_h 00002 #define CastorRawToDigi_h 00003 00017 #include "FWCore/Framework/interface/EDProducer.h" 00018 #include "FWCore/Framework/interface/Event.h" 00019 #include "DataFormats/Common/interface/Handle.h" 00020 00021 #include "FWCore/Framework/interface/EventSetup.h" 00022 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00023 00024 #include "EventFilter/CastorRawToDigi/interface/CastorUnpacker.h" 00025 #include "EventFilter/CastorRawToDigi/interface/CastorDataFrameFilter.h" 00026 00027 class CastorRawToDigi : public edm::EDProducer 00028 { 00029 public: 00030 explicit CastorRawToDigi(const edm::ParameterSet& ps); 00031 virtual ~CastorRawToDigi(); 00032 virtual void produce(edm::Event& e, const edm::EventSetup& c); 00033 private: 00034 edm::InputTag dataTag_; 00035 CastorUnpacker unpacker_; 00036 CastorDataFrameFilter filter_; 00037 std::vector<int> fedUnpackList_; 00038 int firstFED_; 00039 bool unpackCalib_; 00040 bool complainEmptyData_; 00041 }; 00042 00043 #endif