CMS 3D CMS Logo

CSCDCCFormatStatusDigi.h
Go to the documentation of this file.
1 #ifndef CSCDCCFormatStatusDigi_CSCDCCFormatStatusDigi_h
2 #define CSCDCCFormatStatusDigi_CSCDCCFormatStatusDigi_h
3 
4 /*
5  * =====================================================================================
6  *
7  * Filename: CSCDCCFormatStatusDigi.h
8  *
9  * Description: CSC DCC Format error, status and payload flags for a single DCC
10  *
11  * Version: 1.0
12  * Created: 02/12/2009 03:22:34 PM
13  * Revision: none
14  * Compiler: gcc
15  *
16  * Author: Valdas Rapsevicius (VR), valdas.rapsevicius@cern.ch,
17  * Victor Barashko (VB), victor.barashko@cern.ch
18  * Company: CERN, CH
19  *
20  * =====================================================================================
21  */
22 
24 #include <set>
25 #include <map>
26 #include <algorithm>
27 #include <iosfwd>
28 
30 typedef int32_t DCCIdType;
31 
33 typedef int16_t DDUIdType;
34 
36 typedef int32_t CSCIdType;
37 
39 typedef uint32_t ExaminerMaskType;
40 typedef uint32_t ExaminerStatusType;
41 
64  C_WORDS = 20,
73 };
74 
82  ALCT_DAV = 5,
83  TMB_DAV = 6,
84  CFEB1_DAV = 7,
85  CFEB2_DAV = 8,
86  CFEB3_DAV = 9,
87  CFEB4_DAV = 10,
88  CFEB5_DAV = 11
89 };
90 
116 };
117 
125 template <class TKey, class TVal>
126 bool nextInMap(uint32_t& it, TKey& key, const std::map<TKey, TVal>& m) {
127  uint32_t c = 0;
128  typename std::map<TKey, TVal>::const_iterator itr = m.begin();
129  while (itr != m.end()) {
130  if (c == it) {
131  it++;
132  key = itr->first;
133  return true;
134  }
135  itr++;
136  c++;
137  }
138  return false;
139 }
140 
146 template <class TKey, class TVal>
147 std::set<TKey> getKeysList(const std::map<TKey, TVal>& m) {
148  std::set<TKey> keys;
149  typename std::map<TKey, TVal>::const_iterator itr;
150  for (itr = m.begin(); itr != m.end(); ++itr) {
151  keys.insert(itr->first);
152  }
153  return keys;
154 }
155 
161 private:
168 
171 
174 
177 
178  std::map<DDUIdType, ExaminerStatusType> mDDU_ERRORS;
179  std::map<CSCIdType, ExaminerStatusType> mCSC_ERRORS;
180  std::map<CSCIdType, ExaminerStatusType> mCSC_PAYLOADS;
181  std::map<CSCIdType, ExaminerStatusType> mCSC_STATUS;
182 
183 protected:
185  CSCIdType makeCSCId(const uint16_t crateId, const uint16_t dmbId) const {
186  return ((CSCIdType(crateId & 0xFF) << 4) | (dmbId & 0xF));
187  }
188 
190  void init() {
192  fCSC_MASK = 0;
193  fDCC_MASK = 0;
194  mDDU_ERRORS.clear();
195  mCSC_ERRORS.clear();
196  mCSC_PAYLOADS.clear();
197  mCSC_STATUS.clear();
198  }
199 
200 public:
212  const ExaminerMaskType fDCC_MASK_,
213  const ExaminerMaskType fCSC_MASK_,
214  const ExaminerStatusType fDDU_SUMMARY_ERRORS_,
215  const std::map<DDUIdType, ExaminerStatusType>& mDDU_ERRORS_,
216  const std::map<CSCIdType, ExaminerStatusType>& mCSC_ERRORS_,
217  const std::map<CSCIdType, ExaminerStatusType>& mCSC_PAYLOADS_,
218  const std::map<CSCIdType, ExaminerStatusType>& mCSC_STATUS_)
219  : DCCId(DCCId_) {
220  init();
222  fDCC_MASK_, fCSC_MASK_, fDDU_SUMMARY_ERRORS_, mDDU_ERRORS_, mCSC_ERRORS_, mCSC_PAYLOADS_, mCSC_STATUS_);
223  }
224 
225  CSCDCCFormatStatusDigi(const DCCIdType DCCId_) : DCCId(DCCId_) { init(); }
226 
229 
231  void setDCCExaminerInfo(const ExaminerMaskType fDCC_MASK_,
232  const ExaminerMaskType fCSC_MASK_,
233  const ExaminerStatusType fDDU_SUMMARY_ERRORS_,
234  const std::map<DDUIdType, ExaminerStatusType>& mDDU_ERRORS_,
235  const std::map<CSCIdType, ExaminerStatusType>& mCSC_ERRORS_,
236  const std::map<CSCIdType, ExaminerStatusType>& mCSC_PAYLOADS_,
237  const std::map<CSCIdType, ExaminerStatusType>& mCSC_STATUS_);
238 
239 #ifdef DEBUG
240 
243  void setDCCId(DCCIdType id) { DCCId = id; }
244  void setDCCMask(ExaminerMaskType mask) { fDCC_MASK = mask; }
245  void setCSCMask(ExaminerMaskType mask) { fCSC_MASK = mask; }
246  void setDDUSummaryErrors(ExaminerStatusType status) { fDDU_SUMMARY_ERRORS = status; }
247  void setDDUErrors(DDUIdType DDUId, ExaminerStatusType status) {
248  std::map<DDUIdType, ExaminerStatusType>::const_iterator item = mDDU_ERRORS.find(DDUId);
249  if (item != mDDU_ERRORS.end())
250  mDDU_ERRORS[DDUId] = status;
251  else
252  mDDU_ERRORS.insert(std::make_pair(DDUId, status));
253  }
254  void setCSCErrors(CSCIdType CSCId, ExaminerStatusType status) {
255  std::map<CSCIdType, ExaminerStatusType>::const_iterator item = mCSC_ERRORS.find(CSCId);
256  if (item != mCSC_ERRORS.end())
257  mCSC_ERRORS[CSCId] = status;
258  else
259  mCSC_ERRORS.insert(std::make_pair(CSCId, status));
260  }
261  void setCSCPayload(CSCIdType CSCId, ExaminerStatusType status) {
262  std::map<CSCIdType, ExaminerStatusType>::const_iterator item = mCSC_PAYLOADS.find(CSCId);
263  if (item != mCSC_PAYLOADS.end())
264  mCSC_PAYLOADS[CSCId] = status;
265  else
266  mCSC_PAYLOADS.insert(std::make_pair(CSCId, status));
267  }
268  void setCSCStatus(CSCIdType CSCId, ExaminerStatusType status) {
269  std::map<CSCIdType, ExaminerStatusType>::const_iterator item = mCSC_STATUS.find(CSCId);
270  if (item != mCSC_STATUS.end())
271  mCSC_STATUS[CSCId] = status;
272  else
273  mCSC_STATUS.insert(std::make_pair(CSCId, status));
274  }
275 
276 #endif
277 
283  std::set<DDUIdType> getListOfDDUs() const { return getKeysList(mDDU_ERRORS); }
284 
285  std::set<CSCIdType> getListOfCSCs() const { return getKeysList(mCSC_PAYLOADS); }
286 
287  std::set<CSCIdType> getListOfCSCsWithErrors() const { return getKeysList(mCSC_ERRORS); }
288 
302  bool nextCSCWithError(uint32_t& iterator, CSCIdType& CSCId) const { return nextInMap(iterator, CSCId, mCSC_ERRORS); }
303 
311  bool nextCSCWithStatus(uint32_t& iterator, CSCIdType& CSCId) const { return nextInMap(iterator, CSCId, mCSC_STATUS); }
312 
320  bool nextCSCWithPayload(uint32_t& iterator, CSCIdType& CSCId) const {
321  return nextInMap(iterator, CSCId, mCSC_PAYLOADS);
322  }
323 
334 
336  std::map<DDUIdType, ExaminerStatusType>::const_iterator item = mDDU_ERRORS.find(DDUId);
337  if (item != mDDU_ERRORS.end())
338  return item->second;
339  else
340  return 0;
341  }
342 
344  std::map<CSCIdType, ExaminerStatusType>::const_iterator item = mCSC_ERRORS.find(CSCId);
345  if (item != mCSC_ERRORS.end())
346  return item->second;
347  else
348  return 0;
349  }
350 
351  ExaminerStatusType getCSCErrors(const uint16_t crateId, const uint16_t dmbId) const {
352  return getCSCErrors(makeCSCId(crateId, dmbId));
353  }
354 
356  std::map<CSCIdType, ExaminerStatusType>::const_iterator item = mCSC_PAYLOADS.find(CSCId);
357  if (item != mCSC_PAYLOADS.end())
358  return item->second;
359  else
360  return 0;
361  }
362 
363  ExaminerStatusType getCSCPayload(const uint16_t crateId, const uint16_t dmbId) const {
364  return getCSCPayload(makeCSCId(crateId, dmbId));
365  }
366 
368  std::map<CSCIdType, ExaminerStatusType>::const_iterator item = mCSC_STATUS.find(CSCId);
369  if (item != mCSC_STATUS.end())
370  return item->second;
371  else
372  return 0;
373  }
374 
375  ExaminerStatusType getCSCStatus(const uint16_t crateId, const uint16_t dmbId) const {
376  return getCSCStatus(makeCSCId(crateId, dmbId));
377  }
378 
379  /*
380  * Return FED/DCC Id
381  */
382  DCCIdType getDCCId() const { return DCCId; }
383 
388 
393 
399  return ((fDDU_SUMMARY_ERRORS & ExaminerStatusType(0x1 << flag)) != 0);
400  }
401  bool getDDUErrorFlag(const DDUIdType DDUId, const FormatErrorFlag flag) const {
402  return ((getDDUErrors(DDUId) & ExaminerStatusType(0x1 << flag)) != 0);
403  }
404 
405  bool getCSCErrorFlag(const CSCIdType CSCId, const FormatErrorFlag flag) const {
406  return ((getCSCErrors(CSCId) & ExaminerStatusType(0x1 << flag)) != 0);
407  }
408 
409  bool getCSCErrorFlag(const uint16_t crateId, const uint16_t dmbId, const FormatErrorFlag flag) const {
410  return ((getCSCErrors(crateId, dmbId) & ExaminerStatusType(0x1 << flag)) != 0);
411  }
412 
413  bool getCSCPayloadFlag(const CSCIdType CSCId, const CSCPayloadFlag flag) const {
414  return ((getCSCPayload(CSCId) & ExaminerStatusType(0x1 << flag)) != 0);
415  }
416 
417  bool getCSCPayloadFlag(const uint16_t crateId, const uint16_t dmbId, const CSCPayloadFlag flag) const {
418  return ((getCSCPayload(crateId, dmbId) & ExaminerStatusType(0x1 << flag)) != 0);
419  }
420 
421  bool getCSCStatusFlag(const CSCIdType CSCId, const CSCStatusFlag flag) const {
422  return ((getCSCStatus(CSCId) & ExaminerStatusType(0x1 << flag)) != 0);
423  }
424 
425  bool getCSCStatusFlag(const uint16_t crateId, const uint16_t dmbId, const CSCStatusFlag flag) const {
426  return ((getCSCStatus(crateId, dmbId) & ExaminerStatusType(0x1 << flag)) != 0);
427  }
428 
429  void print() const;
430 };
431 
432 std::ostream& operator<<(std::ostream& o, const CSCDCCFormatStatusDigi& digi);
433 
434 #endif
DCC_HEADER_MISSING
Definition: CSCDCCFormatStatusDigi.h:70
CSCDCCFormatStatusDigi::getListOfCSCs
std::set< CSCIdType > getListOfCSCs() const
Definition: CSCDCCFormatStatusDigi.h:285
CSCDCCFormatStatusDigi::getDDUSummaryFlag
bool getDDUSummaryFlag(const FormatErrorFlag flag) const
Definition: CSCDCCFormatStatusDigi.h:398
CSCDCCFormatStatusDigi::DCCId
DCCIdType DCCId
Definition: CSCDCCFormatStatusDigi.h:173
ALCT_TRAILER_MISSING
Definition: CSCDCCFormatStatusDigi.h:51
EXTRA_WORDS_BETWEEN_DDU_HEADER_AND_FIRST_DMB_HEADER
Definition: CSCDCCFormatStatusDigi.h:72
CFEB3_START_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:104
DCC_TRAILER_MISSING
Definition: CSCDCCFormatStatusDigi.h:69
DDU_WORD_COUNT_ERROR
Definition: CSCDCCFormatStatusDigi.h:48
CSCDCCFormatStatusDigi::fDDU_SUMMARY_ERRORS
ExaminerStatusType fDDU_SUMMARY_ERRORS
Definition: CSCDCCFormatStatusDigi.h:176
TMB_START_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:101
CFEB4_FIFO_FULL
Definition: CSCDCCFormatStatusDigi.h:98
mps_update.status
status
Definition: mps_update.py:69
ALCT_HEADER_MISSING
Definition: CSCDCCFormatStatusDigi.h:52
CSCDCCFormatStatusDigi::setDCCExaminerInfo
void setDCCExaminerInfo(const ExaminerMaskType fDCC_MASK_, const ExaminerMaskType fCSC_MASK_, const ExaminerStatusType fDDU_SUMMARY_ERRORS_, const std::map< DDUIdType, ExaminerStatusType > &mDDU_ERRORS_, const std::map< CSCIdType, ExaminerStatusType > &mCSC_ERRORS_, const std::map< CSCIdType, ExaminerStatusType > &mCSC_PAYLOADS_, const std::map< CSCIdType, ExaminerStatusType > &mCSC_STATUS_)
Fill internal data structures using Examiner object.
Definition: CSCDCCFormatStatusDigi.cc:35
CSCDCCFormatStatusDigi::getCSCErrors
ExaminerStatusType getCSCErrors(const CSCIdType CSCId) const
Definition: CSCDCCFormatStatusDigi.h:343
CSCDCCFormatStatusDigi::mDDU_ERRORS
std::map< DDUIdType, ExaminerStatusType > mDDU_ERRORS
Definition: CSCDCCFormatStatusDigi.h:178
CSCDCCFormatStatusDigi::nextCSCWithStatus
bool nextCSCWithStatus(uint32_t &iterator, CSCIdType &CSCId) const
CSC with status iteration procedure.
Definition: CSCDCCFormatStatusDigi.h:311
CFEB3_FIFO_FULL
Definition: CSCDCCFormatStatusDigi.h:97
DDU_EVENT_SIZE_LIMIT_ERROR
Definition: CSCDCCFormatStatusDigi.h:63
CFEB1_START_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:102
CSCDCCFormatStatusDigi::getCSCPayloadFlag
bool getCSCPayloadFlag(const uint16_t crateId, const uint16_t dmbId, const CSCPayloadFlag flag) const
Definition: CSCDCCFormatStatusDigi.h:417
TMB_CRC_ERROR
Definition: CSCDCCFormatStatusDigi.h:59
CSCDCCFormatStatusDigi::mCSC_ERRORS
std::map< CSCIdType, ExaminerStatusType > mCSC_ERRORS
Definition: CSCDCCFormatStatusDigi.h:179
CFEB_DAV_ERROR
Definition: CSCDCCFormatStatusDigi.h:67
ALCT_END_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:107
CSCDCCFormatStatusDigi::getCSCErrorFlag
bool getCSCErrorFlag(const CSCIdType CSCId, const FormatErrorFlag flag) const
Definition: CSCDCCFormatStatusDigi.h:405
CSCDCCFormatStatusDigi::getCSCPayloadFlag
bool getCSCPayloadFlag(const CSCIdType CSCId, const CSCPayloadFlag flag) const
Definition: CSCDCCFormatStatusDigi.h:413
relativeConstraints.keys
keys
Definition: relativeConstraints.py:89
CSCDCCFormatStatusDigi::getDDUSummaryErrors
ExaminerStatusType getDDUSummaryErrors() const
Definition: CSCDCCFormatStatusDigi.h:333
CFEB1_ACTIVE
Definition: CSCDCCFormatStatusDigi.h:77
ExaminerMaskType
uint32_t ExaminerMaskType
Definition: CSCDCCFormatStatusDigi.h:39
CSCDCCFormatStatusDigi::getListOfCSCsWithErrors
std::set< CSCIdType > getListOfCSCsWithErrors() const
Definition: CSCDCCFormatStatusDigi.h:287
CSCDetId.h
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
CFEB5_FIFO_FULL
Definition: CSCDCCFormatStatusDigi.h:99
CFEB1_FIFO_FULL
Definition: CSCDCCFormatStatusDigi.h:95
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
ALCT_DAV_ERROR
Definition: CSCDCCFormatStatusDigi.h:65
TMB_END_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:108
CSCDCCFormatStatusDigi::makeCSCId
CSCIdType makeCSCId(const uint16_t crateId, const uint16_t dmbId) const
Make CSCIdType from Crate and DMB IDs.
Definition: CSCDCCFormatStatusDigi.h:185
CSCDCCFormatStatusDigi::getCSCStatus
ExaminerStatusType getCSCStatus(const uint16_t crateId, const uint16_t dmbId) const
Definition: CSCDCCFormatStatusDigi.h:375
operator<<
std::ostream & operator<<(std::ostream &o, const CSCDCCFormatStatusDigi &digi)
Definition: CSCDCCFormatStatusDigi.cc:99
CFEB_ACTIVE_DAV_MISMATCH
Definition: CSCDCCFormatStatusDigi.h:114
CSCDCCFormatStatusDigi
CSC Format Status Object.
Definition: CSCDCCFormatStatusDigi.h:160
CFEB4_START_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:105
FormatErrorFlag
FormatErrorFlag
Definition: CSCDCCFormatStatusDigi.h:43
CSCDCCFormatStatusDigi::getDDUErrors
ExaminerStatusType getDDUErrors(const DDUIdType DDUId) const
Definition: CSCDCCFormatStatusDigi.h:335
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
ALCT_DAV
Definition: CSCDCCFormatStatusDigi.h:82
CFEB2_DAV
Definition: CSCDCCFormatStatusDigi.h:85
CFEB5_DAV
Definition: CSCDCCFormatStatusDigi.h:88
CFEB2_START_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:103
CSCDCCFormatStatusDigi::getCSCStatusFlag
bool getCSCStatusFlag(const uint16_t crateId, const uint16_t dmbId, const CSCStatusFlag flag) const
Definition: CSCDCCFormatStatusDigi.h:425
CSCDCCFormatStatusDigi::mCSC_STATUS
std::map< CSCIdType, ExaminerStatusType > mCSC_STATUS
Definition: CSCDCCFormatStatusDigi.h:181
CFEB4_END_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:112
CSCIdType
int32_t CSCIdType
Definition: CSCDCCFormatStatusDigi.h:36
CFEB3_DAV
Definition: CSCDCCFormatStatusDigi.h:86
DDUIdType
int16_t DDUIdType
Definition: CSCDCCFormatStatusDigi.h:33
DDU_TRAILER_MISSING
Definition: CSCDCCFormatStatusDigi.h:45
CFEB3_ACTIVE
Definition: CSCDCCFormatStatusDigi.h:79
TMB_DAV
Definition: CSCDCCFormatStatusDigi.h:83
DMB_TRAILER_MISSING
Definition: CSCDCCFormatStatusDigi.h:49
CSCDCCFormatStatusDigi::mCSC_PAYLOADS
std::map< CSCIdType, ExaminerStatusType > mCSC_PAYLOADS
Definition: CSCDCCFormatStatusDigi.h:180
DCCIdType
int32_t DCCIdType
Definition: CSCDCCFormatStatusDigi.h:30
CFEB5_ACTIVE
Definition: CSCDCCFormatStatusDigi.h:81
CFEB1_DAV
Definition: CSCDCCFormatStatusDigi.h:84
TMB_WORD_COUNT_ERROR
Definition: CSCDCCFormatStatusDigi.h:58
CFEB4_DAV
Definition: CSCDCCFormatStatusDigi.h:87
CFEB2_FIFO_FULL
Definition: CSCDCCFormatStatusDigi.h:96
CFEB_WORD_COUNT_PER_SAMPLE_ERROR
Definition: CSCDCCFormatStatusDigi.h:60
CSCDCCFormatStatusDigi::CSCDCCFormatStatusDigi
CSCDCCFormatStatusDigi(const DCCIdType DCCId_, const ExaminerMaskType fDCC_MASK_, const ExaminerMaskType fCSC_MASK_, const ExaminerStatusType fDDU_SUMMARY_ERRORS_, const std::map< DDUIdType, ExaminerStatusType > &mDDU_ERRORS_, const std::map< CSCIdType, ExaminerStatusType > &mCSC_ERRORS_, const std::map< CSCIdType, ExaminerStatusType > &mCSC_PAYLOADS_, const std::map< CSCIdType, ExaminerStatusType > &mCSC_STATUS_)
Constructor.
Definition: CSCDCCFormatStatusDigi.h:211
CSCStatusFlag
CSCStatusFlag
Definition: CSCDCCFormatStatusDigi.h:92
ALCT_CRC_ERROR
Definition: CSCDCCFormatStatusDigi.h:54
CSCDCCFormatStatusDigi::init
void init()
Init internal data stuctures.
Definition: CSCDCCFormatStatusDigi.h:190
CSCDCCFormatStatusDigi::getCSCPayload
ExaminerStatusType getCSCPayload(const CSCIdType CSCId) const
Definition: CSCDCCFormatStatusDigi.h:355
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
DMB_HEADER_MISSING
Definition: CSCDCCFormatStatusDigi.h:50
CSCDCCFormatStatusDigi::getDCCMask
ExaminerMaskType getDCCMask() const
Definition: CSCDCCFormatStatusDigi.h:387
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:28
DMB_ACTIVE_ERROR
Definition: CSCDCCFormatStatusDigi.h:68
CFEB5_END_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:113
CSCDCCFormatStatusDigi::fCSC_MASK
ExaminerMaskType fCSC_MASK
Definition: CSCDCCFormatStatusDigi.h:170
CSCDCCFormatStatusDigi::getCSCMask
ExaminerMaskType getCSCMask() const
Definition: CSCDCCFormatStatusDigi.h:392
TMB_TRAILER_MISSING
Definition: CSCDCCFormatStatusDigi.h:56
CSCDCCFormatStatusDigi::getCSCStatusFlag
bool getCSCStatusFlag(const CSCIdType CSCId, const CSCStatusFlag flag) const
Definition: CSCDCCFormatStatusDigi.h:421
CSCDCCFormatStatusDigi::getCSCPayload
ExaminerStatusType getCSCPayload(const uint16_t crateId, const uint16_t dmbId) const
Definition: CSCDCCFormatStatusDigi.h:363
DDU_HEADER_MISSING
Definition: CSCDCCFormatStatusDigi.h:46
CFEB4_ACTIVE
Definition: CSCDCCFormatStatusDigi.h:80
CSCPayloadFlag
CSCPayloadFlag
Definition: CSCDCCFormatStatusDigi.h:76
CSCDCCFormatStatusDigi::getCSCErrorFlag
bool getCSCErrorFlag(const uint16_t crateId, const uint16_t dmbId, const FormatErrorFlag flag) const
Definition: CSCDCCFormatStatusDigi.h:409
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
ALCT_TRAILER_BIT_ERROR
Definition: CSCDCCFormatStatusDigi.h:55
ALCT_FIFO_FULL
Definition: CSCDCCFormatStatusDigi.h:93
TMB_HEADER_MISSING
Definition: CSCDCCFormatStatusDigi.h:57
getKeysList
std::set< TKey > getKeysList(const std::map< TKey, TVal > &m)
List of Map keys template.
Definition: CSCDCCFormatStatusDigi.h:147
ANY_ERRORS
Definition: CSCDCCFormatStatusDigi.h:44
DMB_DAV_VS_DMB_ACTIVE_MISMATCH_ERROR
Definition: CSCDCCFormatStatusDigi.h:71
CSCDCCFormatStatusDigi::CSCDCCFormatStatusDigi
CSCDCCFormatStatusDigi()
Default constructor.
Definition: CSCDCCFormatStatusDigi.h:228
CSCDCCFormatStatusDigi::getDDUErrorFlag
bool getDDUErrorFlag(const DDUIdType DDUId, const FormatErrorFlag flag) const
Definition: CSCDCCFormatStatusDigi.h:401
B_WORDS_FOUND
Definition: CSCDCCFormatStatusDigi.h:115
CFEB3_END_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:111
nextInMap
bool nextInMap(uint32_t &it, TKey &key, const std::map< TKey, TVal > &m)
Map iterator template.
Definition: CSCDCCFormatStatusDigi.h:126
CSCDCCFormatStatusDigi::fDCC_MASK
ExaminerMaskType fDCC_MASK
Definition: CSCDCCFormatStatusDigi.h:167
CFEB1_END_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:109
CSCDCCFormatStatusDigi::CSCDCCFormatStatusDigi
CSCDCCFormatStatusDigi(const DCCIdType DCCId_)
Definition: CSCDCCFormatStatusDigi.h:225
C_WORDS
Definition: CSCDCCFormatStatusDigi.h:64
CSCDCCFormatStatusDigi::print
void print() const
Debug.
Definition: CSCDCCFormatStatusDigi.cc:52
CFEB2_ACTIVE
Definition: CSCDCCFormatStatusDigi.h:78
CFEB_CRC_ERROR
Definition: CSCDCCFormatStatusDigi.h:62
CFEB_SAMPLE_COUNT_ERROR
Definition: CSCDCCFormatStatusDigi.h:61
ExaminerStatusType
uint32_t ExaminerStatusType
Definition: CSCDCCFormatStatusDigi.h:40
ALCT_START_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:100
CSCDCCFormatStatusDigi::nextCSCWithError
bool nextCSCWithError(uint32_t &iterator, CSCIdType &CSCId) const
CSC with error iteration procedure. Usage: unsigned int i = 0; CSCIdType cscId; while (c....
Definition: CSCDCCFormatStatusDigi.h:302
crabWrapper.key
key
Definition: crabWrapper.py:19
DDU_CRC_ERROR
Definition: CSCDCCFormatStatusDigi.h:47
CSCDCCFormatStatusDigi::getCSCErrors
ExaminerStatusType getCSCErrors(const uint16_t crateId, const uint16_t dmbId) const
Definition: CSCDCCFormatStatusDigi.h:351
CSCDCCFormatStatusDigi::nextCSCWithPayload
bool nextCSCWithPayload(uint32_t &iterator, CSCIdType &CSCId) const
CSC with payload iteration procedure.
Definition: CSCDCCFormatStatusDigi.h:320
CFEB5_START_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:106
CSCDCCFormatStatusDigi::getListOfDDUs
std::set< DDUIdType > getListOfDDUs() const
Definition: CSCDCCFormatStatusDigi.h:283
ALCT_WORD_COUNT_ERROR
Definition: CSCDCCFormatStatusDigi.h:53
TMB_DAV_ERROR
Definition: CSCDCCFormatStatusDigi.h:66
CFEB2_END_TIMEOUT
Definition: CSCDCCFormatStatusDigi.h:110
CSCDCCFormatStatusDigi::getCSCStatus
ExaminerStatusType getCSCStatus(const CSCIdType CSCId) const
Definition: CSCDCCFormatStatusDigi.h:367
CSCDCCFormatStatusDigi::getDCCId
DCCIdType getDCCId() const
Definition: CSCDCCFormatStatusDigi.h:382
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:116
TMB_FIFO_FULL
Definition: CSCDCCFormatStatusDigi.h:94