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 class ZdcUnpacker {
17 public:
19  ZdcUnpacker(int sourceIdOffset, int beg, int end);
22  // void unpack(const FEDRawData& raw, const ZdcElectronicsMap& emap, std::vector<HcalHistogramDigi>& histoDigis);
23  void unpack(const FEDRawData& raw,
24  const CastorElectronicsMap& emap,
25  CastorRawCollections& conts,
27  bool silent = false);
28  void unpackOld(const FEDRawData& raw,
29  const HcalElectronicsMap& emap,
30  CastorRawCollections& conts,
32  bool silent = false);
33 
34 private:
37  int endSample_;
39  std::set<HcalElectronicsId> unknownIds_,
41  int mode_;
42 };
43 
44 #endif // ZdcUnpacker_h_included
std::set< HcalElectronicsId > unknownIdsTrig_
Recorded to limit number of times a log message is generated.
Definition: ZdcUnpacker.h:39
int startSample_
first sample from fed raw data to copy
Definition: ZdcUnpacker.h:36
int expectedOrbitMessageTime_
Expected orbit bunch time (needed to evaluate time differences)
Definition: ZdcUnpacker.h:38
std::set< HcalElectronicsId > unknownIds_
Definition: ZdcUnpacker.h:39
int sourceIdOffset_
number to subtract from the source id to get the dcc id
Definition: ZdcUnpacker.h:35
void unpack(const FEDRawData &raw, const CastorElectronicsMap &emap, CastorRawCollections &conts, HcalUnpackerReport &report, bool silent=false)
For histograms, no begin and end.
Definition: ZdcUnpacker.cc:108
int endSample_
last sample from fed raw data to copy (if present)
Definition: ZdcUnpacker.h:37
void setExpectedOrbitMessageTime(int time)
Definition: ZdcUnpacker.h:20
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:94