CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes
CSCDCCFormatStatusDigi Class Reference

CSC Format Status Object. More...

#include <CSCDCCFormatStatusDigi.h>

Public Member Functions

 CSCDCCFormatStatusDigi ()
 Default constructor. More...
 
 CSCDCCFormatStatusDigi (const DCCIdType DCCId_)
 
 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. More...
 
bool getCSCErrorFlag (const CSCIdType CSCId, const FormatErrorFlag flag) const
 
bool getCSCErrorFlag (const uint16_t crateId, const uint16_t dmbId, const FormatErrorFlag flag) const
 
ExaminerStatusType getCSCErrors (const CSCIdType CSCId) const
 
ExaminerStatusType getCSCErrors (const uint16_t crateId, const uint16_t dmbId) const
 
ExaminerMaskType getCSCMask () const
 
ExaminerStatusType getCSCPayload (const CSCIdType CSCId) const
 
ExaminerStatusType getCSCPayload (const uint16_t crateId, const uint16_t dmbId) const
 
bool getCSCPayloadFlag (const CSCIdType CSCId, const CSCPayloadFlag flag) const
 
bool getCSCPayloadFlag (const uint16_t crateId, const uint16_t dmbId, const CSCPayloadFlag flag) const
 
ExaminerStatusType getCSCStatus (const CSCIdType CSCId) const
 
ExaminerStatusType getCSCStatus (const uint16_t crateId, const uint16_t dmbId) const
 
bool getCSCStatusFlag (const CSCIdType CSCId, const CSCStatusFlag flag) const
 
bool getCSCStatusFlag (const uint16_t crateId, const uint16_t dmbId, const CSCStatusFlag flag) const
 
DCCIdType getDCCId () const
 
ExaminerMaskType getDCCMask () const
 
bool getDDUErrorFlag (const DDUIdType DDUId, const FormatErrorFlag flag) const
 
ExaminerStatusType getDDUErrors (const DDUIdType DDUId) const
 
ExaminerStatusType getDDUSummaryErrors () const
 
bool getDDUSummaryFlag (const FormatErrorFlag flag) const
 
std::set< CSCIdTypegetListOfCSCs () const
 
std::set< CSCIdTypegetListOfCSCsWithErrors () const
 
std::set< DDUIdTypegetListOfDDUs () const
 
bool nextCSCWithError (uint32_t &iterator, CSCIdType &CSCId) const
 CSC with error iteration procedure.
Usage: unsigned int i = 0; CSCIdType cscId; while (c.nextCSCWithError(i, cscId)) { // do stuff }. More...
 
bool nextCSCWithPayload (uint32_t &iterator, CSCIdType &CSCId) const
 CSC with payload iteration procedure.
More...
 
bool nextCSCWithStatus (uint32_t &iterator, CSCIdType &CSCId) const
 CSC with status iteration procedure.
More...
 
void print () const
 Debug. More...
 
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. More...
 

Protected Member Functions

void init ()
 Init internal data stuctures. More...
 
CSCIdType makeCSCId (const uint16_t crateId, const uint16_t dmbId) const
 Make CSCIdType from Crate and DMB IDs. More...
 

Private Attributes

DCCIdType DCCId
 
ExaminerMaskType fCSC_MASK
 
ExaminerMaskType fDCC_MASK
 
ExaminerStatusType fDDU_SUMMARY_ERRORS
 
std::map< CSCIdType, ExaminerStatusTypemCSC_ERRORS
 
std::map< CSCIdType, ExaminerStatusTypemCSC_PAYLOADS
 
std::map< CSCIdType, ExaminerStatusTypemCSC_STATUS
 
std::map< DDUIdType, ExaminerStatusTypemDDU_ERRORS
 

Detailed Description

CSC Format Status Object.

Definition at line 160 of file CSCDCCFormatStatusDigi.h.

Constructor & Destructor Documentation

◆ CSCDCCFormatStatusDigi() [1/3]

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_ 
)
inline

Constructor.

Parameters
fDCC_MASK_DCC Examiner mask used (for information purposes).
fCSC_MASK_Examiner mask per chamber
fDDU_SUMMARY_ERRORS_Cumulative DDUs errors status
mDDU_ERRORS_List of errors per DDU
mCSC_ERRORS_List of errors per CSC
mCSC_PAYLOADS_List of payloads per CSC
mCSC_STATUS_List of statuses per CSC

Definition at line 211 of file CSCDCCFormatStatusDigi.h.

219  : DCCId(DCCId_) {
220  init();
222  fDCC_MASK_, fCSC_MASK_, fDDU_SUMMARY_ERRORS_, mDDU_ERRORS_, mCSC_ERRORS_, mCSC_PAYLOADS_, mCSC_STATUS_);
223  }

References init(), and setDCCExaminerInfo().

◆ CSCDCCFormatStatusDigi() [2/3]

CSCDCCFormatStatusDigi::CSCDCCFormatStatusDigi ( const DCCIdType  DCCId_)
inline

Definition at line 225 of file CSCDCCFormatStatusDigi.h.

225 : DCCId(DCCId_) { init(); }

References init().

◆ CSCDCCFormatStatusDigi() [3/3]

CSCDCCFormatStatusDigi::CSCDCCFormatStatusDigi ( )
inline

Default constructor.

Definition at line 228 of file CSCDCCFormatStatusDigi.h.

228 : DCCId(0) { init(); }

References init().

Member Function Documentation

◆ getCSCErrorFlag() [1/2]

bool CSCDCCFormatStatusDigi::getCSCErrorFlag ( const CSCIdType  CSCId,
const FormatErrorFlag  flag 
) const
inline

Definition at line 405 of file CSCDCCFormatStatusDigi.h.

405  {
406  return ((getCSCErrors(CSCId) & ExaminerStatusType(0x1 << flag)) != 0);
407  }

References RemoveAddSevLevel::flag, getCSCErrors(), and testProducerWithPsetDescEmpty_cfi::x1.

◆ getCSCErrorFlag() [2/2]

bool CSCDCCFormatStatusDigi::getCSCErrorFlag ( const uint16_t  crateId,
const uint16_t  dmbId,
const FormatErrorFlag  flag 
) const
inline

Definition at line 409 of file CSCDCCFormatStatusDigi.h.

409  {
410  return ((getCSCErrors(crateId, dmbId) & ExaminerStatusType(0x1 << flag)) != 0);
411  }

References RemoveAddSevLevel::flag, getCSCErrors(), and testProducerWithPsetDescEmpty_cfi::x1.

◆ getCSCErrors() [1/2]

ExaminerStatusType CSCDCCFormatStatusDigi::getCSCErrors ( const CSCIdType  CSCId) const
inline

Definition at line 343 of file CSCDCCFormatStatusDigi.h.

343  {
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  }

References B2GTnPMonitor_cfi::item, and mCSC_ERRORS.

Referenced by getCSCErrorFlag(), getCSCErrors(), operator<<(), print(), and cscdqm::EventProcessor::processExaminer().

◆ getCSCErrors() [2/2]

ExaminerStatusType CSCDCCFormatStatusDigi::getCSCErrors ( const uint16_t  crateId,
const uint16_t  dmbId 
) const
inline

Definition at line 351 of file CSCDCCFormatStatusDigi.h.

351  {
352  return getCSCErrors(makeCSCId(crateId, dmbId));
353  }

References getCSCErrors(), and makeCSCId().

◆ getCSCMask()

ExaminerMaskType CSCDCCFormatStatusDigi::getCSCMask ( ) const
inline

Return CSC level Errors Mask

Definition at line 392 of file CSCDCCFormatStatusDigi.h.

392 { return fCSC_MASK; }

References fCSC_MASK.

Referenced by operator<<(), and print().

◆ getCSCPayload() [1/2]

ExaminerStatusType CSCDCCFormatStatusDigi::getCSCPayload ( const CSCIdType  CSCId) const
inline

Definition at line 355 of file CSCDCCFormatStatusDigi.h.

355  {
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  }

References B2GTnPMonitor_cfi::item, and mCSC_PAYLOADS.

Referenced by getCSCPayload(), getCSCPayloadFlag(), operator<<(), print(), and cscdqm::EventProcessor::processExaminer().

◆ getCSCPayload() [2/2]

ExaminerStatusType CSCDCCFormatStatusDigi::getCSCPayload ( const uint16_t  crateId,
const uint16_t  dmbId 
) const
inline

Definition at line 363 of file CSCDCCFormatStatusDigi.h.

363  {
364  return getCSCPayload(makeCSCId(crateId, dmbId));
365  }

References getCSCPayload(), and makeCSCId().

◆ getCSCPayloadFlag() [1/2]

bool CSCDCCFormatStatusDigi::getCSCPayloadFlag ( const CSCIdType  CSCId,
const CSCPayloadFlag  flag 
) const
inline

Definition at line 413 of file CSCDCCFormatStatusDigi.h.

413  {
414  return ((getCSCPayload(CSCId) & ExaminerStatusType(0x1 << flag)) != 0);
415  }

References RemoveAddSevLevel::flag, getCSCPayload(), and testProducerWithPsetDescEmpty_cfi::x1.

◆ getCSCPayloadFlag() [2/2]

bool CSCDCCFormatStatusDigi::getCSCPayloadFlag ( const uint16_t  crateId,
const uint16_t  dmbId,
const CSCPayloadFlag  flag 
) const
inline

Definition at line 417 of file CSCDCCFormatStatusDigi.h.

417  {
418  return ((getCSCPayload(crateId, dmbId) & ExaminerStatusType(0x1 << flag)) != 0);
419  }

References RemoveAddSevLevel::flag, getCSCPayload(), and testProducerWithPsetDescEmpty_cfi::x1.

◆ getCSCStatus() [1/2]

ExaminerStatusType CSCDCCFormatStatusDigi::getCSCStatus ( const CSCIdType  CSCId) const
inline

Definition at line 367 of file CSCDCCFormatStatusDigi.h.

367  {
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  }

References B2GTnPMonitor_cfi::item, and mCSC_STATUS.

Referenced by getCSCStatus(), getCSCStatusFlag(), operator<<(), print(), and cscdqm::EventProcessor::processExaminer().

◆ getCSCStatus() [2/2]

ExaminerStatusType CSCDCCFormatStatusDigi::getCSCStatus ( const uint16_t  crateId,
const uint16_t  dmbId 
) const
inline

Definition at line 375 of file CSCDCCFormatStatusDigi.h.

375  {
376  return getCSCStatus(makeCSCId(crateId, dmbId));
377  }

References getCSCStatus(), and makeCSCId().

◆ getCSCStatusFlag() [1/2]

bool CSCDCCFormatStatusDigi::getCSCStatusFlag ( const CSCIdType  CSCId,
const CSCStatusFlag  flag 
) const
inline

Definition at line 421 of file CSCDCCFormatStatusDigi.h.

421  {
422  return ((getCSCStatus(CSCId) & ExaminerStatusType(0x1 << flag)) != 0);
423  }

References RemoveAddSevLevel::flag, getCSCStatus(), and testProducerWithPsetDescEmpty_cfi::x1.

◆ getCSCStatusFlag() [2/2]

bool CSCDCCFormatStatusDigi::getCSCStatusFlag ( const uint16_t  crateId,
const uint16_t  dmbId,
const CSCStatusFlag  flag 
) const
inline

Definition at line 425 of file CSCDCCFormatStatusDigi.h.

425  {
426  return ((getCSCStatus(crateId, dmbId) & ExaminerStatusType(0x1 << flag)) != 0);
427  }

References RemoveAddSevLevel::flag, getCSCStatus(), and testProducerWithPsetDescEmpty_cfi::x1.

◆ getDCCId()

DCCIdType CSCDCCFormatStatusDigi::getDCCId ( ) const
inline

Definition at line 382 of file CSCDCCFormatStatusDigi.h.

382 { return DCCId; }

References DCCId.

Referenced by operator<<(), and print().

◆ getDCCMask()

ExaminerMaskType CSCDCCFormatStatusDigi::getDCCMask ( ) const
inline

Return DCC/DDU level Errors Mask

Definition at line 387 of file CSCDCCFormatStatusDigi.h.

387 { return fDCC_MASK; }

References fDCC_MASK.

Referenced by operator<<(), and print().

◆ getDDUErrorFlag()

bool CSCDCCFormatStatusDigi::getDDUErrorFlag ( const DDUIdType  DDUId,
const FormatErrorFlag  flag 
) const
inline

Definition at line 401 of file CSCDCCFormatStatusDigi.h.

401  {
402  return ((getDDUErrors(DDUId) & ExaminerStatusType(0x1 << flag)) != 0);
403  }

References RemoveAddSevLevel::flag, getDDUErrors(), and testProducerWithPsetDescEmpty_cfi::x1.

◆ getDDUErrors()

ExaminerStatusType CSCDCCFormatStatusDigi::getDDUErrors ( const DDUIdType  DDUId) const
inline

Definition at line 335 of file CSCDCCFormatStatusDigi.h.

335  {
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  }

References B2GTnPMonitor_cfi::item, and mDDU_ERRORS.

Referenced by getDDUErrorFlag(), operator<<(), print(), and cscdqm::EventProcessor::processExaminer().

◆ getDDUSummaryErrors()

ExaminerStatusType CSCDCCFormatStatusDigi::getDDUSummaryErrors ( ) const
inline

Getters for complete mask by using internal identifiers. Mostly to be used by examiner and old/current code. Return DCC/DDU level Error Status

Definition at line 333 of file CSCDCCFormatStatusDigi.h.

333 { return fDDU_SUMMARY_ERRORS; }

References fDDU_SUMMARY_ERRORS.

Referenced by operator<<(), print(), and cscdqm::EventProcessor::processExaminer().

◆ getDDUSummaryFlag()

bool CSCDCCFormatStatusDigi::getDDUSummaryFlag ( const FormatErrorFlag  flag) const
inline

Flag Getters for individual named masks.

Definition at line 398 of file CSCDCCFormatStatusDigi.h.

398  {
399  return ((fDDU_SUMMARY_ERRORS & ExaminerStatusType(0x1 << flag)) != 0);
400  }

References fDDU_SUMMARY_ERRORS, RemoveAddSevLevel::flag, and testProducerWithPsetDescEmpty_cfi::x1.

◆ getListOfCSCs()

std::set<CSCIdType> CSCDCCFormatStatusDigi::getListOfCSCs ( ) const
inline

Definition at line 285 of file CSCDCCFormatStatusDigi.h.

285 { return getKeysList(mCSC_PAYLOADS); }

References getKeysList(), and mCSC_PAYLOADS.

Referenced by operator<<(), and print().

◆ getListOfCSCsWithErrors()

std::set<CSCIdType> CSCDCCFormatStatusDigi::getListOfCSCsWithErrors ( ) const
inline

Definition at line 287 of file CSCDCCFormatStatusDigi.h.

287 { return getKeysList(mCSC_ERRORS); }

References getKeysList(), and mCSC_ERRORS.

◆ getListOfDDUs()

std::set<DDUIdType> CSCDCCFormatStatusDigi::getListOfDDUs ( ) const
inline

Get lists of DDUs and CSCs Loop iterators for CSCs

Definition at line 283 of file CSCDCCFormatStatusDigi.h.

283 { return getKeysList(mDDU_ERRORS); }

References getKeysList(), and mDDU_ERRORS.

Referenced by operator<<(), print(), and cscdqm::EventProcessor::processExaminer().

◆ init()

void CSCDCCFormatStatusDigi::init ( void  )
inlineprotected

Init internal data stuctures.

Definition at line 190 of file CSCDCCFormatStatusDigi.h.

190  {
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  }

References fCSC_MASK, fDCC_MASK, fDDU_SUMMARY_ERRORS, mCSC_ERRORS, mCSC_PAYLOADS, mCSC_STATUS, and mDDU_ERRORS.

Referenced by CSCDCCFormatStatusDigi().

◆ makeCSCId()

CSCIdType CSCDCCFormatStatusDigi::makeCSCId ( const uint16_t  crateId,
const uint16_t  dmbId 
) const
inlineprotected

Make CSCIdType from Crate and DMB IDs.

Definition at line 185 of file CSCDCCFormatStatusDigi.h.

185  {
186  return ((CSCIdType(crateId & 0xFF) << 4) | (dmbId & 0xF));
187  }

Referenced by getCSCErrors(), getCSCPayload(), and getCSCStatus().

◆ nextCSCWithError()

bool CSCDCCFormatStatusDigi::nextCSCWithError ( uint32_t &  iterator,
CSCIdType CSCId 
) const
inline

CSC with error iteration procedure.
Usage: unsigned int i = 0; CSCIdType cscId; while (c.nextCSCWithError(i, cscId)) { // do stuff }.

Parameters
iteratorInteger iterator (incremented automatically)
CSCIdCSC id to return
Returns
true if CSC id found and returned, false - otherwise

Definition at line 302 of file CSCDCCFormatStatusDigi.h.

302 { return nextInMap(iterator, CSCId, mCSC_ERRORS); }

References mCSC_ERRORS, and nextInMap().

Referenced by cscdqm::EventProcessor::processExaminer().

◆ nextCSCWithPayload()

bool CSCDCCFormatStatusDigi::nextCSCWithPayload ( uint32_t &  iterator,
CSCIdType CSCId 
) const
inline

CSC with payload iteration procedure.

See also
bool nextCSCWithError(uint32_t&, CSCIdType&) const
Parameters
iteratorInteger iterator (incremented automatically)
CSCIdCSC id to return
Returns
true if CSC id found and returned, false - otherwise

Definition at line 320 of file CSCDCCFormatStatusDigi.h.

320  {
321  return nextInMap(iterator, CSCId, mCSC_PAYLOADS);
322  }

References mCSC_PAYLOADS, and nextInMap().

Referenced by cscdqm::EventProcessor::processExaminer().

◆ nextCSCWithStatus()

bool CSCDCCFormatStatusDigi::nextCSCWithStatus ( uint32_t &  iterator,
CSCIdType CSCId 
) const
inline

CSC with status iteration procedure.

See also
bool nextCSCWithError(uint32_t&, CSCIdType&) const
Parameters
iteratorInteger iterator (incremented automatically)
CSCIdCSC id to return
Returns
true if CSC id found and returned, false - otherwise

Definition at line 311 of file CSCDCCFormatStatusDigi.h.

311 { return nextInMap(iterator, CSCId, mCSC_STATUS); }

References mCSC_STATUS, and nextInMap().

Referenced by cscdqm::EventProcessor::processExaminer().

◆ print()

void CSCDCCFormatStatusDigi::print ( void  ) const

Debug.

Definition at line 52 of file CSCDCCFormatStatusDigi.cc.

52  {
53  // Keep original code in case I messed up the formatting in some subtle way when switching to MessageLogger
54  //
55  // std::cout << "CSCDCCFormatStatusDigi: DCC=" << std::dec << getDCCId()
56  // << " DCCMask=0x" << std::hex << std::setw(8) << std::setfill('0') << getDCCMask()
57  // << " CSCMask=0x" << std::hex << std::setw(8) << std::setfill('0') << getCSCMask()
58  // << " DCCErrors=0x" << std::hex << std::setw(8) << std::setfill('0') << getDDUSummaryErrors()
59  // << std::dec << "\n";
60  // std::set<DDUIdType> ddu_list = getListOfDDUs();
61  // for (std::set<DDUIdType>::iterator itr=ddu_list.begin(); itr != ddu_list.end(); ++itr) {
62  // std::cout << "DDU_" << std::dec << ((*itr)&0xFF)
63  // << " Errors=0x" << std::hex << std::setw(8) << std::setfill('0') << getDDUErrors(*itr) << "\n";
64  // }
65  // std::set<CSCIdType> csc_list = getListOfCSCs();
66  // for (std::set<CSCIdType>::iterator itr=csc_list.begin(); itr != csc_list.end(); ++itr) {
67  //
68  // std::cout << "CSC_" << std::dec << (((*itr)>>4)&0xFF) << "_" << ((*itr)&0xF)
69  // << " Errors=0x" << std::hex << std::setw(8) << std::setfill('0') << getCSCErrors(*itr)
70  // << " Payload=0x" << std::setw(8) << std::setfill('0') << getCSCPayload(*itr)
71  // << " Status=0x" << std::setw(8) << std::setfill('0') << getCSCStatus(*itr) << "\n";
72  // }
73 
74  edm::LogVerbatim("CSCDigi") << "CSCDCCFormatStatusDigi: DCC=" << std::dec << getDCCId() << " DCCMask=0x" << std::hex
75  << std::setw(8) << std::setfill('0') << getDCCMask() << " CSCMask=0x" << std::hex
76  << std::setw(8) << std::setfill('0') << getCSCMask() << " DCCErrors=0x" << std::hex
77  << std::setw(8) << std::setfill('0') << getDDUSummaryErrors() << std::dec;
78 
79  std::ostringstream ost;
80 
81  std::set<DDUIdType> ddu_list = getListOfDDUs();
82  for (std::set<DDUIdType>::iterator itr = ddu_list.begin(); itr != ddu_list.end(); ++itr) {
83  ost << "DDU_" << std::dec << ((*itr) & 0xFF) << " Errors=0x" << std::hex << std::setw(8) << std::setfill('0')
84  << getDDUErrors(*itr);
85  edm::LogVerbatim("CSCDigi") << ost.str();
86  ost.clear();
87  }
88 
89  std::set<CSCIdType> csc_list = getListOfCSCs();
90  for (std::set<CSCIdType>::iterator itr = csc_list.begin(); itr != csc_list.end(); ++itr) {
91  ost << "CSC_" << std::dec << (((*itr) >> 4) & 0xFF) << "_" << ((*itr) & 0xF) << " Errors=0x" << std::hex
92  << std::setw(8) << std::setfill('0') << getCSCErrors(*itr) << " Payload=0x" << std::setw(8) << std::setfill('0')
93  << getCSCPayload(*itr) << " Status=0x" << std::setw(8) << std::setfill('0') << getCSCStatus(*itr);
94  edm::LogVerbatim("CSCDigi") << ost.str();
95  ost.clear();
96  }
97 }

References TauDecayModes::dec, getCSCErrors(), getCSCMask(), getCSCPayload(), getCSCStatus(), getDCCId(), getDCCMask(), getDDUErrors(), getDDUSummaryErrors(), getListOfCSCs(), and getListOfDDUs().

◆ setDCCExaminerInfo()

void CSCDCCFormatStatusDigi::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.

setExaminerInfo

Parameters
fDCC_MASK_DCC Examiner mask used (for information purposes).
fCSC_MASK_Examiner mask per chamber
fDDU_SUMMARY_ERRORS_Cumulative DDUs errors status
mDDU_ERRORS_List of errors per DDU
mCSC_ERRORS_List of errors per CSC
mCSC_PAYLOADS_List of payloads per CSC
mCSC_STATUS_List of statuses per CSC

Definition at line 35 of file CSCDCCFormatStatusDigi.cc.

41  {
42  fDCC_MASK = fDCC_MASK_;
43  fCSC_MASK = fCSC_MASK_;
44  fDDU_SUMMARY_ERRORS = fDDU_SUMMARY_ERRORS_;
45  mDDU_ERRORS = mDDU_ERRORS_;
46  mCSC_ERRORS = mCSC_ERRORS_;
47  mCSC_PAYLOADS = mCSC_PAYLOADS_;
48  mCSC_STATUS = mCSC_STATUS_;
49 }

References fCSC_MASK, fDCC_MASK, fDDU_SUMMARY_ERRORS, mCSC_ERRORS, mCSC_PAYLOADS, mCSC_STATUS, and mDDU_ERRORS.

Referenced by CSCDCCFormatStatusDigi().

Member Data Documentation

◆ DCCId

DCCIdType CSCDCCFormatStatusDigi::DCCId
private

FED/DCC Id

Definition at line 173 of file CSCDCCFormatStatusDigi.h.

Referenced by getDCCId().

◆ fCSC_MASK

ExaminerMaskType CSCDCCFormatStatusDigi::fCSC_MASK
private

CSC Examiner mask used

Definition at line 170 of file CSCDCCFormatStatusDigi.h.

Referenced by getCSCMask(), init(), and setDCCExaminerInfo().

◆ fDCC_MASK

ExaminerMaskType CSCDCCFormatStatusDigi::fDCC_MASK
private

Internal mask storage variables and containers. DCC Examiner mask used

Definition at line 167 of file CSCDCCFormatStatusDigi.h.

Referenced by getDCCMask(), init(), and setDCCExaminerInfo().

◆ fDDU_SUMMARY_ERRORS

ExaminerStatusType CSCDCCFormatStatusDigi::fDDU_SUMMARY_ERRORS
private

DCC Level summary errors

Definition at line 176 of file CSCDCCFormatStatusDigi.h.

Referenced by getDDUSummaryErrors(), getDDUSummaryFlag(), init(), and setDCCExaminerInfo().

◆ mCSC_ERRORS

std::map<CSCIdType, ExaminerStatusType> CSCDCCFormatStatusDigi::mCSC_ERRORS
private

◆ mCSC_PAYLOADS

std::map<CSCIdType, ExaminerStatusType> CSCDCCFormatStatusDigi::mCSC_PAYLOADS
private

◆ mCSC_STATUS

std::map<CSCIdType, ExaminerStatusType> CSCDCCFormatStatusDigi::mCSC_STATUS
private

◆ mDDU_ERRORS

std::map<DDUIdType, ExaminerStatusType> CSCDCCFormatStatusDigi::mDDU_ERRORS
private

Definition at line 178 of file CSCDCCFormatStatusDigi.h.

Referenced by getDDUErrors(), getListOfDDUs(), init(), and setDCCExaminerInfo().

CSCDCCFormatStatusDigi::getListOfCSCs
std::set< CSCIdType > getListOfCSCs() const
Definition: CSCDCCFormatStatusDigi.h:285
CSCDCCFormatStatusDigi::DCCId
DCCIdType DCCId
Definition: CSCDCCFormatStatusDigi.h:173
CSCDCCFormatStatusDigi::fDDU_SUMMARY_ERRORS
ExaminerStatusType fDDU_SUMMARY_ERRORS
Definition: CSCDCCFormatStatusDigi.h:176
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::mCSC_ERRORS
std::map< CSCIdType, ExaminerStatusType > mCSC_ERRORS
Definition: CSCDCCFormatStatusDigi.h:179
CSCDCCFormatStatusDigi::getDDUSummaryErrors
ExaminerStatusType getDDUSummaryErrors() const
Definition: CSCDCCFormatStatusDigi.h:333
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition: testProducerWithPsetDescEmpty_cfi.py:33
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::getDDUErrors
ExaminerStatusType getDDUErrors(const DDUIdType DDUId) const
Definition: CSCDCCFormatStatusDigi.h:335
CSCDCCFormatStatusDigi::mCSC_STATUS
std::map< CSCIdType, ExaminerStatusType > mCSC_STATUS
Definition: CSCDCCFormatStatusDigi.h:181
CSCIdType
int32_t CSCIdType
Definition: CSCDCCFormatStatusDigi.h:36
CSCDCCFormatStatusDigi::mCSC_PAYLOADS
std::map< CSCIdType, ExaminerStatusType > mCSC_PAYLOADS
Definition: CSCDCCFormatStatusDigi.h:180
edm::LogVerbatim
Definition: MessageLogger.h:297
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
CSCDCCFormatStatusDigi::getDCCMask
ExaminerMaskType getDCCMask() const
Definition: CSCDCCFormatStatusDigi.h:387
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:28
CSCDCCFormatStatusDigi::fCSC_MASK
ExaminerMaskType fCSC_MASK
Definition: CSCDCCFormatStatusDigi.h:170
CSCDCCFormatStatusDigi::getCSCMask
ExaminerMaskType getCSCMask() const
Definition: CSCDCCFormatStatusDigi.h:392
getKeysList
std::set< TKey > getKeysList(const std::map< TKey, TVal > &m)
List of Map keys template.
Definition: CSCDCCFormatStatusDigi.h:147
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
ExaminerStatusType
uint32_t ExaminerStatusType
Definition: CSCDCCFormatStatusDigi.h:40
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
CSCDCCFormatStatusDigi::getListOfDDUs
std::set< DDUIdType > getListOfDDUs() const
Definition: CSCDCCFormatStatusDigi.h:283
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