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 (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...
 
 CSCDCCFormatStatusDigi (const DCCIdType DCCId_)
 
 CSCDCCFormatStatusDigi ()
 Default 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::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.

References init(), and setDCCExaminerInfo().

219  : DCCId(DCCId_) {
220  init();
222  fDCC_MASK_, fCSC_MASK_, fDDU_SUMMARY_ERRORS_, mDDU_ERRORS_, mCSC_ERRORS_, mCSC_PAYLOADS_, mCSC_STATUS_);
223  }
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.
void init()
Init internal data stuctures.
CSCDCCFormatStatusDigi::CSCDCCFormatStatusDigi ( const DCCIdType  DCCId_)
inline

Definition at line 225 of file CSCDCCFormatStatusDigi.h.

References init().

225 : DCCId(DCCId_) { init(); }
void init()
Init internal data stuctures.
CSCDCCFormatStatusDigi::CSCDCCFormatStatusDigi ( )
inline

Default constructor.

Definition at line 228 of file CSCDCCFormatStatusDigi.h.

References triggerObjects_cff::id, init(), RecoTauDiscriminantConfiguration::mask, setDCCExaminerInfo(), and mps_update::status.

228 : DCCId(0) { init(); }
void init()
Init internal data stuctures.

Member Function Documentation

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

Definition at line 405 of file CSCDCCFormatStatusDigi.h.

References getCSCErrors(), and globals_cff::x1.

405  {
406  return ((getCSCErrors(CSCId) & ExaminerStatusType(0x1 << flag)) != 0);
407  }
ExaminerStatusType getCSCErrors(const CSCIdType CSCId) const
uint32_t ExaminerStatusType
bool CSCDCCFormatStatusDigi::getCSCErrorFlag ( const uint16_t  crateId,
const uint16_t  dmbId,
const FormatErrorFlag  flag 
) const
inline

Definition at line 409 of file CSCDCCFormatStatusDigi.h.

References getCSCErrors(), and globals_cff::x1.

409  {
410  return ((getCSCErrors(crateId, dmbId) & ExaminerStatusType(0x1 << flag)) != 0);
411  }
ExaminerStatusType getCSCErrors(const CSCIdType CSCId) const
uint32_t ExaminerStatusType
ExaminerStatusType CSCDCCFormatStatusDigi::getCSCErrors ( const CSCIdType  CSCId) const
inline

Definition at line 343 of file CSCDCCFormatStatusDigi.h.

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

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  }
std::map< CSCIdType, ExaminerStatusType > mCSC_ERRORS
ExaminerStatusType CSCDCCFormatStatusDigi::getCSCErrors ( const uint16_t  crateId,
const uint16_t  dmbId 
) const
inline

Definition at line 351 of file CSCDCCFormatStatusDigi.h.

References getCSCErrors(), and makeCSCId().

351  {
352  return getCSCErrors(makeCSCId(crateId, dmbId));
353  }
ExaminerStatusType getCSCErrors(const CSCIdType CSCId) const
CSCIdType makeCSCId(const uint16_t crateId, const uint16_t dmbId) const
Make CSCIdType from Crate and DMB IDs.
ExaminerMaskType CSCDCCFormatStatusDigi::getCSCMask ( ) const
inline

Return CSC level Errors Mask

Definition at line 392 of file CSCDCCFormatStatusDigi.h.

References fCSC_MASK.

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

392 { return fCSC_MASK; }
ExaminerStatusType CSCDCCFormatStatusDigi::getCSCPayload ( const CSCIdType  CSCId) const
inline

Definition at line 355 of file CSCDCCFormatStatusDigi.h.

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

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  }
std::map< CSCIdType, ExaminerStatusType > mCSC_PAYLOADS
ExaminerStatusType CSCDCCFormatStatusDigi::getCSCPayload ( const uint16_t  crateId,
const uint16_t  dmbId 
) const
inline

Definition at line 363 of file CSCDCCFormatStatusDigi.h.

References getCSCPayload(), and makeCSCId().

363  {
364  return getCSCPayload(makeCSCId(crateId, dmbId));
365  }
ExaminerStatusType getCSCPayload(const CSCIdType CSCId) const
CSCIdType makeCSCId(const uint16_t crateId, const uint16_t dmbId) const
Make CSCIdType from Crate and DMB IDs.
bool CSCDCCFormatStatusDigi::getCSCPayloadFlag ( const CSCIdType  CSCId,
const CSCPayloadFlag  flag 
) const
inline

Definition at line 413 of file CSCDCCFormatStatusDigi.h.

References getCSCPayload(), and globals_cff::x1.

413  {
414  return ((getCSCPayload(CSCId) & ExaminerStatusType(0x1 << flag)) != 0);
415  }
ExaminerStatusType getCSCPayload(const CSCIdType CSCId) const
uint32_t ExaminerStatusType
bool CSCDCCFormatStatusDigi::getCSCPayloadFlag ( const uint16_t  crateId,
const uint16_t  dmbId,
const CSCPayloadFlag  flag 
) const
inline

Definition at line 417 of file CSCDCCFormatStatusDigi.h.

References getCSCPayload(), and globals_cff::x1.

417  {
418  return ((getCSCPayload(crateId, dmbId) & ExaminerStatusType(0x1 << flag)) != 0);
419  }
ExaminerStatusType getCSCPayload(const CSCIdType CSCId) const
uint32_t ExaminerStatusType
ExaminerStatusType CSCDCCFormatStatusDigi::getCSCStatus ( const CSCIdType  CSCId) const
inline

Definition at line 367 of file CSCDCCFormatStatusDigi.h.

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

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  }
std::map< CSCIdType, ExaminerStatusType > mCSC_STATUS
ExaminerStatusType CSCDCCFormatStatusDigi::getCSCStatus ( const uint16_t  crateId,
const uint16_t  dmbId 
) const
inline

Definition at line 375 of file CSCDCCFormatStatusDigi.h.

References getCSCStatus(), and makeCSCId().

375  {
376  return getCSCStatus(makeCSCId(crateId, dmbId));
377  }
ExaminerStatusType getCSCStatus(const CSCIdType CSCId) const
CSCIdType makeCSCId(const uint16_t crateId, const uint16_t dmbId) const
Make CSCIdType from Crate and DMB IDs.
bool CSCDCCFormatStatusDigi::getCSCStatusFlag ( const CSCIdType  CSCId,
const CSCStatusFlag  flag 
) const
inline

Definition at line 421 of file CSCDCCFormatStatusDigi.h.

References getCSCStatus(), and globals_cff::x1.

421  {
422  return ((getCSCStatus(CSCId) & ExaminerStatusType(0x1 << flag)) != 0);
423  }
ExaminerStatusType getCSCStatus(const CSCIdType CSCId) const
uint32_t ExaminerStatusType
bool CSCDCCFormatStatusDigi::getCSCStatusFlag ( const uint16_t  crateId,
const uint16_t  dmbId,
const CSCStatusFlag  flag 
) const
inline

Definition at line 425 of file CSCDCCFormatStatusDigi.h.

References getCSCStatus(), connectstrParser::o, operator<<(), print(), and globals_cff::x1.

425  {
426  return ((getCSCStatus(crateId, dmbId) & ExaminerStatusType(0x1 << flag)) != 0);
427  }
ExaminerStatusType getCSCStatus(const CSCIdType CSCId) const
uint32_t ExaminerStatusType
DCCIdType CSCDCCFormatStatusDigi::getDCCId ( ) const
inline

Definition at line 382 of file CSCDCCFormatStatusDigi.h.

References DCCId.

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

382 { return DCCId; }
ExaminerMaskType CSCDCCFormatStatusDigi::getDCCMask ( ) const
inline

Return DCC/DDU level Errors Mask

Definition at line 387 of file CSCDCCFormatStatusDigi.h.

References fDCC_MASK.

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

387 { return fDCC_MASK; }
bool CSCDCCFormatStatusDigi::getDDUErrorFlag ( const DDUIdType  DDUId,
const FormatErrorFlag  flag 
) const
inline

Definition at line 401 of file CSCDCCFormatStatusDigi.h.

References getDDUErrors(), and globals_cff::x1.

401  {
402  return ((getDDUErrors(DDUId) & ExaminerStatusType(0x1 << flag)) != 0);
403  }
ExaminerStatusType getDDUErrors(const DDUIdType DDUId) const
uint32_t ExaminerStatusType
ExaminerStatusType CSCDCCFormatStatusDigi::getDDUErrors ( const DDUIdType  DDUId) const
inline

Definition at line 335 of file CSCDCCFormatStatusDigi.h.

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

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  }
std::map< DDUIdType, ExaminerStatusType > mDDU_ERRORS
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.

References fDDU_SUMMARY_ERRORS.

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

333 { return fDDU_SUMMARY_ERRORS; }
ExaminerStatusType fDDU_SUMMARY_ERRORS
bool CSCDCCFormatStatusDigi::getDDUSummaryFlag ( const FormatErrorFlag  flag) const
inline

Flag Getters for individual named masks.

Definition at line 398 of file CSCDCCFormatStatusDigi.h.

References globals_cff::x1.

398  {
399  return ((fDDU_SUMMARY_ERRORS & ExaminerStatusType(0x1 << flag)) != 0);
400  }
ExaminerStatusType fDDU_SUMMARY_ERRORS
uint32_t ExaminerStatusType
std::set<CSCIdType> CSCDCCFormatStatusDigi::getListOfCSCs ( ) const
inline

Definition at line 285 of file CSCDCCFormatStatusDigi.h.

References getKeysList().

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

285 { return getKeysList(mCSC_PAYLOADS); }
std::map< CSCIdType, ExaminerStatusType > mCSC_PAYLOADS
std::set< TKey > getKeysList(const std::map< TKey, TVal > &m)
List of Map keys template.
std::set<CSCIdType> CSCDCCFormatStatusDigi::getListOfCSCsWithErrors ( ) const
inline

Definition at line 287 of file CSCDCCFormatStatusDigi.h.

References getKeysList().

287 { return getKeysList(mCSC_ERRORS); }
std::map< CSCIdType, ExaminerStatusType > mCSC_ERRORS
std::set< TKey > getKeysList(const std::map< TKey, TVal > &m)
List of Map keys template.
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.

References getKeysList().

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

283 { return getKeysList(mDDU_ERRORS); }
std::map< DDUIdType, ExaminerStatusType > mDDU_ERRORS
std::set< TKey > getKeysList(const std::map< TKey, TVal > &m)
List of Map keys template.
void CSCDCCFormatStatusDigi::init ( void  )
inlineprotected

Init internal data stuctures.

Definition at line 190 of file CSCDCCFormatStatusDigi.h.

Referenced by CSCDCCFormatStatusDigi().

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  }
std::map< CSCIdType, ExaminerStatusType > mCSC_ERRORS
ExaminerStatusType fDDU_SUMMARY_ERRORS
std::map< CSCIdType, ExaminerStatusType > mCSC_STATUS
std::map< DDUIdType, ExaminerStatusType > mDDU_ERRORS
std::map< CSCIdType, ExaminerStatusType > mCSC_PAYLOADS
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.

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

185  {
186  return ((CSCIdType(crateId & 0xFF) << 4) | (dmbId & 0xF));
187  }
int32_t CSCIdType
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.

References nextInMap().

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

302 { return nextInMap(iterator, CSCId, mCSC_ERRORS); }
std::map< CSCIdType, ExaminerStatusType > mCSC_ERRORS
bool nextInMap(uint32_t &it, TKey &key, const std::map< TKey, TVal > &m)
Map iterator template.
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.

References nextInMap().

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

320  {
321  return nextInMap(iterator, CSCId, mCSC_PAYLOADS);
322  }
std::map< CSCIdType, ExaminerStatusType > mCSC_PAYLOADS
bool nextInMap(uint32_t &it, TKey &key, const std::map< TKey, TVal > &m)
Map iterator template.
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.

References nextInMap().

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

311 { return nextInMap(iterator, CSCId, mCSC_STATUS); }
std::map< CSCIdType, ExaminerStatusType > mCSC_STATUS
bool nextInMap(uint32_t &it, TKey &key, const std::map< TKey, TVal > &m)
Map iterator template.
void CSCDCCFormatStatusDigi::print ( void  ) const

Debug.

Definition at line 52 of file CSCDCCFormatStatusDigi.cc.

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

Referenced by getCSCStatusFlag().

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 }
ExaminerMaskType getDCCMask() const
ExaminerStatusType getDDUSummaryErrors() const
std::set< DDUIdType > getListOfDDUs() const
ExaminerStatusType getCSCStatus(const CSCIdType CSCId) const
ExaminerStatusType getCSCErrors(const CSCIdType CSCId) const
ExaminerStatusType getDDUErrors(const DDUIdType DDUId) const
ExaminerStatusType getCSCPayload(const CSCIdType CSCId) const
std::set< CSCIdType > getListOfCSCs() const
ExaminerMaskType getCSCMask() const
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.

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

Referenced by CSCDCCFormatStatusDigi().

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 }
std::map< CSCIdType, ExaminerStatusType > mCSC_ERRORS
ExaminerStatusType fDDU_SUMMARY_ERRORS
std::map< CSCIdType, ExaminerStatusType > mCSC_STATUS
std::map< DDUIdType, ExaminerStatusType > mDDU_ERRORS
std::map< CSCIdType, ExaminerStatusType > mCSC_PAYLOADS

Member Data Documentation

DCCIdType CSCDCCFormatStatusDigi::DCCId
private

FED/DCC Id

Definition at line 173 of file CSCDCCFormatStatusDigi.h.

Referenced by getDCCId().

ExaminerMaskType CSCDCCFormatStatusDigi::fCSC_MASK
private

CSC Examiner mask used

Definition at line 170 of file CSCDCCFormatStatusDigi.h.

Referenced by getCSCMask(), and setDCCExaminerInfo().

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(), and setDCCExaminerInfo().

ExaminerStatusType CSCDCCFormatStatusDigi::fDDU_SUMMARY_ERRORS
private

DCC Level summary errors

Definition at line 176 of file CSCDCCFormatStatusDigi.h.

Referenced by getDDUSummaryErrors(), and setDCCExaminerInfo().

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

Definition at line 179 of file CSCDCCFormatStatusDigi.h.

Referenced by setDCCExaminerInfo().

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

Definition at line 180 of file CSCDCCFormatStatusDigi.h.

Referenced by setDCCExaminerInfo().

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

Definition at line 181 of file CSCDCCFormatStatusDigi.h.

Referenced by setDCCExaminerInfo().

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

Definition at line 178 of file CSCDCCFormatStatusDigi.h.

Referenced by setDCCExaminerInfo().