CMS 3D CMS Logo

Functions
HcalDTCHeader.cc File Reference
#include "EventFilter/HcalRawToDigi/interface/HcalHTRData.h"
#include "EventFilter/HcalRawToDigi/interface/HcalDTCHeader.h"
#include <cstring>
#include <cstdint>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const HcalDTCHeader &head)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const HcalDTCHeader head 
)

Definition at line 76 of file HcalDTCHeader.cc.

References HcalDTCHeader::getSlotCRCError(), HcalDTCHeader::getSlotDataLength(), HcalDTCHeader::getSlotEnabled(), HcalDTCHeader::getSlotPresent(), HcalDTCHeader::getSlotValid(), mps_fire::i, alignCSCRings::s, and HcalDTCHeader::SLOT_COUNT.

76  {
77  for (int i = 0; i < HcalDTCHeader::SLOT_COUNT; i++) {
78  s << "Slot " << i << " : " << head.getSlotDataLength(i) << " bytes, ";
79  if (head.getSlotEnabled(i))
80  s << "E";
81  if (head.getSlotPresent(i))
82  s << "P";
83  if (head.getSlotValid(i))
84  s << "V";
85  if (head.getSlotCRCError(i))
86  s << "C";
87  // s << ". Error codes: " << std::hex << int(head.getSlotErrorBits(i)) << "," << int(head.getLRBErrorBits(i)) << std::dec;
88  s << std::endl;
89  }
90  return s;
91 }
bool getSlotValid(unsigned int nslot) const
Read the "VALID" bit for this slot; TTC EvN matched HTR EvN.
Definition: HcalDTCHeader.h:89
bool getSlotPresent(unsigned int nslot) const
Read the "PRESENT" bit for this slot.
Definition: HcalDTCHeader.h:85
bool getSlotEnabled(unsigned int nslot) const
Read the "ENABLED" bit for this slot.
Definition: HcalDTCHeader.h:81
unsigned int getSlotDataLength(int nslot) const
Definition: HcalDTCHeader.h:76
static const int SLOT_COUNT
Definition: HcalDTCHeader.h:20
bool getSlotCRCError(unsigned int nslot) const
Read the "CRC-Mismatch" bit for this slot.
Definition: HcalDTCHeader.h:93