CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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,
ExaminerStatusType
mCSC_ERRORS
 
std::map< CSCIdType,
ExaminerStatusType
mCSC_PAYLOADS
 
std::map< CSCIdType,
ExaminerStatusType
mCSC_STATUS
 
std::map< DDUIdType,
ExaminerStatusType
mDDU_ERRORS
 

Detailed Description

CSC Format Status Object.

Definition at line 164 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 219 of file CSCDCCFormatStatusDigi.h.

References init(), and setDCCExaminerInfo().

226  : DCCId(DCCId_)
227  {
228  init();
229  setDCCExaminerInfo(fDCC_MASK_, fCSC_MASK_, fDDU_SUMMARY_ERRORS_, mDDU_ERRORS_, mCSC_ERRORS_, mCSC_PAYLOADS_, mCSC_STATUS_);
230  }
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 233 of file CSCDCCFormatStatusDigi.h.

References init().

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

Default constructor.

Definition at line 237 of file CSCDCCFormatStatusDigi.h.

References init().

237 : 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 401 of file CSCDCCFormatStatusDigi.h.

References getCSCErrors().

402  { return ( (getCSCErrors(CSCId) & ExaminerStatusType(0x1<<flag) ) != 0); }
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 404 of file CSCDCCFormatStatusDigi.h.

References getCSCErrors().

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

Definition at line 350 of file CSCDCCFormatStatusDigi.h.

References mCSC_ERRORS.

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

350  {
351  std::map<CSCIdType,ExaminerStatusType>::const_iterator item = mCSC_ERRORS.find(CSCId);
352  if( item != mCSC_ERRORS.end() ) return item->second; else return 0;
353  }
std::map< CSCIdType, ExaminerStatusType > mCSC_ERRORS
ExaminerStatusType CSCDCCFormatStatusDigi::getCSCErrors ( const uint16_t  crateId,
const uint16_t  dmbId 
) const
inline

Definition at line 355 of file CSCDCCFormatStatusDigi.h.

References getCSCErrors(), and makeCSCId().

356  { return getCSCErrors( makeCSCId(crateId, dmbId) ); }
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 390 of file CSCDCCFormatStatusDigi.h.

References fCSC_MASK.

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

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

Definition at line 359 of file CSCDCCFormatStatusDigi.h.

References mCSC_PAYLOADS.

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

359  {
360  std::map<CSCIdType,ExaminerStatusType>::const_iterator item = mCSC_PAYLOADS.find(CSCId);
361  if( item != mCSC_PAYLOADS.end() ) return item->second; else return 0;
362  }
std::map< CSCIdType, ExaminerStatusType > mCSC_PAYLOADS
ExaminerStatusType CSCDCCFormatStatusDigi::getCSCPayload ( const uint16_t  crateId,
const uint16_t  dmbId 
) const
inline

Definition at line 364 of file CSCDCCFormatStatusDigi.h.

References getCSCPayload(), and makeCSCId().

365  { return getCSCPayload( makeCSCId(crateId, dmbId) ); }
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 407 of file CSCDCCFormatStatusDigi.h.

References getCSCPayload().

408  { return ( (getCSCPayload(CSCId) & ExaminerStatusType(0x1<<flag) ) != 0); }
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 410 of file CSCDCCFormatStatusDigi.h.

References getCSCPayload().

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

Definition at line 368 of file CSCDCCFormatStatusDigi.h.

References mCSC_STATUS.

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

368  {
369  std::map<CSCIdType,ExaminerStatusType>::const_iterator item = mCSC_STATUS.find(CSCId);
370  if( item != mCSC_STATUS.end() ) return item->second; else return 0;
371  }
std::map< CSCIdType, ExaminerStatusType > mCSC_STATUS
ExaminerStatusType CSCDCCFormatStatusDigi::getCSCStatus ( const uint16_t  crateId,
const uint16_t  dmbId 
) const
inline

Definition at line 373 of file CSCDCCFormatStatusDigi.h.

References getCSCStatus(), and makeCSCId().

374  { return getCSCStatus( makeCSCId(crateId, dmbId) ); }
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 413 of file CSCDCCFormatStatusDigi.h.

References getCSCStatus().

414  { return ( (getCSCStatus(CSCId) & ExaminerStatusType(0x1<<flag) ) != 0); }
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 416 of file CSCDCCFormatStatusDigi.h.

References getCSCStatus().

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

Definition at line 380 of file CSCDCCFormatStatusDigi.h.

References DCCId.

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

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

Return DCC/DDU level Errors Mask

Definition at line 385 of file CSCDCCFormatStatusDigi.h.

References fDCC_MASK.

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

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

Definition at line 398 of file CSCDCCFormatStatusDigi.h.

References getDDUErrors().

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

Definition at line 344 of file CSCDCCFormatStatusDigi.h.

References mDDU_ERRORS.

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

344  {
345  std::map<DDUIdType,ExaminerStatusType>::const_iterator item = mDDU_ERRORS.find(DDUId);
346  if( item != mDDU_ERRORS.end() ) return item->second; else return 0;
347  }
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 342 of file CSCDCCFormatStatusDigi.h.

References fDDU_SUMMARY_ERRORS.

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

342 { 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 396 of file CSCDCCFormatStatusDigi.h.

References fDDU_SUMMARY_ERRORS.

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

Definition at line 285 of file CSCDCCFormatStatusDigi.h.

References getKeysList(), and mCSC_PAYLOADS.

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

285  {
286  return getKeysList(mCSC_PAYLOADS);
287  }
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 289 of file CSCDCCFormatStatusDigi.h.

References getKeysList(), and mCSC_ERRORS.

289  {
290  return getKeysList(mCSC_ERRORS);
291  }
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 281 of file CSCDCCFormatStatusDigi.h.

References getKeysList(), and mDDU_ERRORS.

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

281  {
282  return getKeysList(mDDU_ERRORS);
283  }
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 197 of file CSCDCCFormatStatusDigi.h.

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

Referenced by CSCDCCFormatStatusDigi().

197  {
199  fCSC_MASK = 0;
200  fDCC_MASK = 0;
201  mDDU_ERRORS.clear();
202  mCSC_ERRORS.clear();
203  mCSC_PAYLOADS.clear();
204  mCSC_STATUS.clear();
205  }
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 193 of file CSCDCCFormatStatusDigi.h.

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

194  { return ( (CSCIdType(crateId&0xFF)<<4) | (dmbId&0xF) ); }
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 306 of file CSCDCCFormatStatusDigi.h.

References mCSC_ERRORS, and nextInMap().

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

306  {
307  return nextInMap(iterator, CSCId, mCSC_ERRORS);
308  }
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 328 of file CSCDCCFormatStatusDigi.h.

References mCSC_PAYLOADS, and nextInMap().

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

328  {
329  return nextInMap(iterator, CSCId, mCSC_PAYLOADS);
330  }
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 317 of file CSCDCCFormatStatusDigi.h.

References mCSC_STATUS, and nextInMap().

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

317  {
318  return nextInMap(iterator, CSCId, mCSC_STATUS);
319  }
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 54 of file CSCDCCFormatStatusDigi.cc.

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

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

42 {
43  fDCC_MASK = fDCC_MASK_;
44  fCSC_MASK = fCSC_MASK_;
45  fDDU_SUMMARY_ERRORS = fDDU_SUMMARY_ERRORS_;
46  mDDU_ERRORS = mDDU_ERRORS_;
47  mCSC_ERRORS = mCSC_ERRORS_;
48  mCSC_PAYLOADS = mCSC_PAYLOADS_;
49  mCSC_STATUS = mCSC_STATUS_;
50 }
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 180 of file CSCDCCFormatStatusDigi.h.

Referenced by getDCCId().

ExaminerMaskType CSCDCCFormatStatusDigi::fCSC_MASK
private

CSC Examiner mask used

Definition at line 177 of file CSCDCCFormatStatusDigi.h.

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

ExaminerMaskType CSCDCCFormatStatusDigi::fDCC_MASK
private

Internal mask storage variables and containers.DCC Examiner mask used

Definition at line 174 of file CSCDCCFormatStatusDigi.h.

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

ExaminerStatusType CSCDCCFormatStatusDigi::fDDU_SUMMARY_ERRORS
private

DCC Level summary errors

Definition at line 183 of file CSCDCCFormatStatusDigi.h.

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

std::map<CSCIdType, ExaminerStatusType> CSCDCCFormatStatusDigi::mCSC_ERRORS
private
std::map<CSCIdType, ExaminerStatusType> CSCDCCFormatStatusDigi::mCSC_PAYLOADS
private
std::map<CSCIdType, ExaminerStatusType> CSCDCCFormatStatusDigi::mCSC_STATUS
private
std::map<DDUIdType, ExaminerStatusType> CSCDCCFormatStatusDigi::mDDU_ERRORS
private

Definition at line 185 of file CSCDCCFormatStatusDigi.h.

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