CMS 3D CMS Logo

HcalUnpacker.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef HcalUnpacker_h_included
3 #define HcalUnpacker_h_included 1
4 
19 #include <set>
20 
21 class HcalUnpacker {
22 public:
23  struct Collections {
24  Collections();
25  std::vector<HBHEDataFrame>* hbheCont;
26  std::vector<HODataFrame>* hoCont;
27  std::vector<HFDataFrame>* hfCont;
28  std::vector<HcalCalibDataFrame>* calibCont;
29  std::vector<ZDCDataFrame>* zdcCont;
30  std::vector<HcalTriggerPrimitiveDigi>* tpCont;
31  std::vector<HOTriggerPrimitiveDigi>* tphoCont;
32  std::vector<HcalTTPDigi>* ttp;
37  // additional qie10 and qie11 data collections
38  std::unordered_map<int, QIE10DigiCollection*> qie10Addtl;
39  std::unordered_map<int, QIE11DigiCollection*> qie11Addtl;
41  };
42 
44  HcalUnpacker(int sourceIdOffset, int beg, int end)
45  : sourceIdOffset_(sourceIdOffset),
46  startSample_(beg),
47  endSample_(end),
49  mode_(0),
50  nPrinted_(0) {}
52  HcalUnpacker(int sourceIdOffset)
53  : sourceIdOffset_(sourceIdOffset),
54  startSample_(-1),
55  endSample_(-1),
57  mode_(0),
58  nPrinted_(0) {}
60  void unpack(const FEDRawData& raw, const HcalElectronicsMap& emap, std::vector<HcalHistogramDigi>& histoDigis);
61  void unpack(const FEDRawData& raw,
62  const HcalElectronicsMap& emap,
63  Collections& conts,
65  bool silent = false);
66  void setMode(int mode) { mode_ = mode; }
67 
68 private:
69  void unpackVME(const FEDRawData& raw,
70  const HcalElectronicsMap& emap,
71  Collections& conts,
73  bool silent = false);
74  void unpackUTCA(const FEDRawData& raw,
75  const HcalElectronicsMap& emap,
76  Collections& conts,
78  bool silent = false);
79  void unpackUMNio(const FEDRawData& raw, int slot, Collections& colls);
80 
81  void printInvalidDataMessage(const std::string& coll_type, int default_ns, int conflict_ns, bool extended = false);
82 
85  int endSample_;
87  int mode_;
88  std::set<HcalElectronicsId> unknownIds_,
90 
91  int nPrinted_;
92 };
93 
94 #endif // HcalUnpacker_h_included
HcalElectronicsMap.h
HFDataFrame.h
HcalUnpacker::unpackUMNio
void unpackUMNio(const FEDRawData &raw, int slot, Collections &colls)
Definition: HcalUnpacker.cc:1053
HcalUnpackerReport.h
HcalDataFrameContainer
Definition: HcalDigiCollections.h:35
HcalCalibDataFrame.h
HcalUnpacker::HcalUnpacker
HcalUnpacker(int sourceIdOffset)
For histograms, no begin and end.
Definition: HcalUnpacker.h:52
HcalUnpacker::Collections::qie10Lasermon
QIE10DigiCollection * qie10Lasermon
Definition: HcalUnpacker.h:35
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
HcalUnpacker::printInvalidDataMessage
void printInvalidDataMessage(const std::string &coll_type, int default_ns, int conflict_ns, bool extended=false)
Definition: HcalUnpacker.cc:1069
HODataFrame.h
protons_cff.time
time
Definition: protons_cff.py:35
HcalUnpacker::unknownIds_
std::set< HcalElectronicsId > unknownIds_
Definition: HcalUnpacker.h:88
HcalUMNioDigi.h
FEDRawData.h
HcalUnpacker::Collections::hbheCont
std::vector< HBHEDataFrame > * hbheCont
Definition: HcalUnpacker.h:25
HcalUnpacker::Collections::ttp
std::vector< HcalTTPDigi > * ttp
Definition: HcalUnpacker.h:32
HcalUnpacker::Collections::qie10ZDC
QIE10DigiCollection * qie10ZDC
Definition: HcalUnpacker.h:34
HcalUnpacker::startSample_
int startSample_
first sample from fed raw data to copy
Definition: HcalUnpacker.h:84
HcalUnpacker::Collections
Definition: HcalUnpacker.h:23
FEDRawData
Definition: FEDRawData.h:19
HcalTriggerPrimitiveDigi.h
HcalUnpacker::Collections::umnio
HcalUMNioDigi * umnio
Definition: HcalUnpacker.h:40
HcalUnpacker::unpackUTCA
void unpackUTCA(const FEDRawData &raw, const HcalElectronicsMap &emap, Collections &conts, HcalUnpackerReport &report, bool silent=false)
Definition: HcalUnpacker.cc:682
HcalUnpacker::unpackVME
void unpackVME(const FEDRawData &raw, const HcalElectronicsMap &emap, Collections &conts, HcalUnpackerReport &report, bool silent=false)
Definition: HcalUnpacker.cc:231
HcalUnpackerReport
Definition: HcalUnpackerReport.h:14
HcalDigiCollections.h
HcalUnpacker::Collections::qie10Addtl
std::unordered_map< int, QIE10DigiCollection * > qie10Addtl
Definition: HcalUnpacker.h:38
mps_fire.end
end
Definition: mps_fire.py:242
HcalUnpacker::setExpectedOrbitMessageTime
void setExpectedOrbitMessageTime(int time)
Definition: HcalUnpacker.h:59
HcalUnpacker::unpack
void unpack(const FEDRawData &raw, const HcalElectronicsMap &emap, std::vector< HcalHistogramDigi > &histoDigis)
Definition: HcalUnpacker.cc:990
HcalUMNioDigi
Definition: HcalUMNioDigi.h:15
HcalUnpacker::unknownIdsTrig_
std::set< HcalElectronicsId > unknownIdsTrig_
Recorded to limit number of times a log message is generated.
Definition: HcalUnpacker.h:88
HcalUnpacker::HcalUnpacker
HcalUnpacker(int sourceIdOffset, int beg, int end)
for normal data
Definition: HcalUnpacker.h:44
HcalUnpacker::Collections::tpCont
std::vector< HcalTriggerPrimitiveDigi > * tpCont
Definition: HcalUnpacker.h:30
HcalUnpacker::mode_
int mode_
Definition: HcalUnpacker.h:87
HcalUnpacker::Collections::tphoCont
std::vector< HOTriggerPrimitiveDigi > * tphoCont
Definition: HcalUnpacker.h:31
HcalUnpacker::nPrinted_
int nPrinted_
Definition: HcalUnpacker.h:91
HcalTTPDigi.h
HcalUnpacker::Collections::qie11Addtl
std::unordered_map< int, QIE11DigiCollection * > qie11Addtl
Definition: HcalUnpacker.h:39
HcalUnpacker::Collections::zdcCont
std::vector< ZDCDataFrame > * zdcCont
Definition: HcalUnpacker.h:29
ZDCDataFrame.h
ecaldqm::Collections
Collections
Definition: Collections.h:8
HcalUnpacker::expectedOrbitMessageTime_
int expectedOrbitMessageTime_
Expected orbit bunch time (needed to evaluate time differences)
Definition: HcalUnpacker.h:86
HcalUnpacker::Collections::qie11
QIE11DigiCollection * qie11
Definition: HcalUnpacker.h:36
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CastorRawToDigi_cfi.silent
silent
Definition: CastorRawToDigi_cfi.py:27
HcalUnpacker
Definition: HcalUnpacker.h:21
edmIntegrityCheck.report
report
Definition: edmIntegrityCheck.py:348
HcalUnpacker::Collections::hoCont
std::vector< HODataFrame > * hoCont
Definition: HcalUnpacker.h:26
HcalElectronicsMap
Definition: HcalElectronicsMap.h:31
HOTriggerPrimitiveDigi.h
HcalHistogramDigi.h
HcalUnpacker::Collections::Collections
Collections()
Definition: HcalUnpacker.cc:975
HcalUnpacker::setMode
void setMode(int mode)
Definition: HcalUnpacker.h:66
HcalUnpacker::Collections::qie10
QIE10DigiCollection * qie10
Definition: HcalUnpacker.h:33
HcalUnpacker::sourceIdOffset_
int sourceIdOffset_
number to subtract from the source id to get the dcc id
Definition: HcalUnpacker.h:83
HcalUnpacker::Collections::hfCont
std::vector< HFDataFrame > * hfCont
Definition: HcalUnpacker.h:27
HcalUnpacker::endSample_
int endSample_
last sample from fed raw data to copy (if present)
Definition: HcalUnpacker.h:85
HcalUnpacker::Collections::calibCont
std::vector< HcalCalibDataFrame > * calibCont
Definition: HcalUnpacker.h:28
HBHEDataFrame.h