00001 #ifndef HcalTBObjectUnpacker_h 00002 #define HcalTBObjectUnpacker_h 00003 00017 #include "FWCore/Framework/interface/EDProducer.h" 00018 #include "DataFormats/Common/interface/EDProduct.h" 00019 #include "FWCore/Framework/interface/Event.h" 00020 #include "DataFormats/Common/interface/Handle.h" 00021 00022 #include "FWCore/Framework/interface/EventSetup.h" 00023 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00024 00025 #include "RecoTBCalo/HcalTBObjectUnpacker/interface/HcalTBTriggerDataUnpacker.h" 00026 #include "RecoTBCalo/HcalTBObjectUnpacker/interface/HcalTBSlowDataUnpacker.h" 00027 #include "RecoTBCalo/HcalTBObjectUnpacker/interface/HcalTBTDCUnpacker.h" 00028 #include "RecoTBCalo/HcalTBObjectUnpacker/interface/HcalTBQADCUnpacker.h" 00029 #include "RecoTBCalo/HcalTBObjectUnpacker/interface/HcalTBSourcePositionDataUnpacker.h" 00030 00031 using namespace std; 00032 00033 class HcalTBObjectUnpacker : public edm::EDProducer 00034 { 00035 public: 00036 explicit HcalTBObjectUnpacker(const edm::ParameterSet& ps); 00037 virtual ~HcalTBObjectUnpacker(); 00038 virtual void produce(edm::Event& e, const edm::EventSetup& c); 00039 private: 00040 int triggerFed_; 00041 int sdFed_; 00042 int spdFed_; 00043 int tdcFed_; 00044 int qadcFed_; 00045 string calibFile_; 00046 hcaltb::HcalTBTriggerDataUnpacker tdUnpacker_; 00047 hcaltb::HcalTBSlowDataUnpacker sdUnpacker_; 00048 hcaltb::HcalTBTDCUnpacker tdcUnpacker_; 00049 hcaltb::HcalTBQADCUnpacker qadcUnpacker_; 00050 hcaltb::HcalTBSourcePositionDataUnpacker spdUnpacker_; 00051 bool doRunData_, doTriggerData_, doEventPosition_, doTiming_, doSourcePos_,doBeamADC_; 00052 00053 vector<vector<string> > calibLines_; 00054 void parseCalib(); 00055 00056 }; 00057 00058 00059 #endif