CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/RecoTBCalo/HcalTBObjectUnpacker/interface/HcalTBQADCUnpacker.h

Go to the documentation of this file.
00001 #ifndef HCALTBQADCUNPACKER_H
00002 #define HCALTBQADCUNPACKER_H 1
00003 #include "TBDataFormats/HcalTBObjects/interface/HcalTBBeamCounters.h"
00004 #include "DataFormats/FEDRawData/interface/FEDRawData.h"
00005 
00006 namespace hcaltb {
00007 class HcalTBQADCUnpacker {
00008 public:
00009   HcalTBQADCUnpacker();
00010   void unpack(const FEDRawData& raw,
00011               HcalTBBeamCounters& beamadc, bool is04_=true) const;
00012   void setCalib(const std::vector<std::vector<std::string> >& calibLines_);
00013 private:
00014   bool isTB04_;
00015   double qdc_ped[192];
00016   double qdc_gain[192];
00017 };
00018 
00019 }
00020 
00021 #endif