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/CastorCtdcUnpacker.h" 00026 #include "EventFilter/CastorRawToDigi/interface/CastorDataFrameFilter.h" 00027 00028 class CastorRawToDigi : public edm::EDProducer 00029 { 00030 public: 00031 explicit CastorRawToDigi(const edm::ParameterSet& ps); 00032 virtual ~CastorRawToDigi(); 00033 virtual void produce(edm::Event& e, const edm::EventSetup& c); 00034 virtual void beginRun(edm::Run&, edm::EventSetup const&); 00035 00036 private: 00037 edm::InputTag dataTag_; 00038 CastorUnpacker unpacker_; 00039 CastorCtdcUnpacker ctdcunpacker_; 00040 CastorDataFrameFilter filter_; 00041 std::vector<int> fedUnpackList_; 00042 int firstFED_; 00043 // bool unpackCalib_; 00044 bool complainEmptyData_; 00045 bool usingctdc_; 00046 bool unpackTTP_; 00047 bool silent_; 00048 bool usenominalOrbitMessageTime_; 00049 int expectedOrbitMessageTime_; 00050 00051 }; 00052 00053 #endif