CMS 3D CMS Logo

ZdcUnpacker.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef EventFilter_CastorRawToDigi_ZdcUnpacker_h
3 #define EventFilter_CastorRawToDigi_ZdcUnpacker_h 1
4 
12 #include <set>
15 
16 
17 class ZdcUnpacker {
18 public:
19 
21  ZdcUnpacker(int sourceIdOffset, int beg, int end) ;
24  // void unpack(const FEDRawData& raw, const ZdcElectronicsMap& emap, std::vector<HcalHistogramDigi>& histoDigis);
25  void unpack(const FEDRawData& raw, const CastorElectronicsMap& emap, CastorRawCollections& conts, HcalUnpackerReport& report, bool silent=false);
26  void unpackOld(const FEDRawData& raw, const HcalElectronicsMap& emap, CastorRawCollections& conts, HcalUnpackerReport& report, bool silent=false);
27 private:
30  int endSample_;
32  std::set<HcalElectronicsId> unknownIds_,unknownIdsTrig_;
33  int mode_;
34 };
35 
36 #endif // ZdcUnpacker_h_included
std::set< HcalElectronicsId > unknownIdsTrig_
Recorded to limit number of times a log message is generated.
Definition: ZdcUnpacker.h:32
int startSample_
first sample from fed raw data to copy
Definition: ZdcUnpacker.h:29
int expectedOrbitMessageTime_
Expected orbit bunch time (needed to evaluate time differences)
Definition: ZdcUnpacker.h:31
std::set< HcalElectronicsId > unknownIds_
Definition: ZdcUnpacker.h:32
#define end
Definition: vmac.h:39
int sourceIdOffset_
number to subtract from the source id to get the dcc id
Definition: ZdcUnpacker.h:28
void unpack(const FEDRawData &raw, const CastorElectronicsMap &emap, CastorRawCollections &conts, HcalUnpackerReport &report, bool silent=false)
For histograms, no begin and end.
Definition: ZdcUnpacker.cc:98
int endSample_
last sample from fed raw data to copy (if present)
Definition: ZdcUnpacker.h:30
void setExpectedOrbitMessageTime(int time)
Definition: ZdcUnpacker.h:22
void unpackOld(const FEDRawData &raw, const HcalElectronicsMap &emap, CastorRawCollections &conts, HcalUnpackerReport &report, bool silent=false)
ZdcUnpacker(int sourceIdOffset, int beg, int end)
for normal data
Definition: ZdcUnpacker.cc:84