CMS 3D CMS Logo

Classes | Functions
HcalDTCHeader.h File Reference
#include <iostream>
#include <cstdint>
#include "DataFormats/HcalDigi/interface/HcalCalibrationEventTypes.h"

Go to the source code of this file.

Classes

class  HcalDTCHeader
 

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 76 of file HcalDTCHeader.cc.

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 }

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

mps_fire.i
i
Definition: mps_fire.py:355
HcalDTCHeader::getSlotPresent
bool getSlotPresent(unsigned int nslot) const
Read the "PRESENT" bit for this slot.
Definition: HcalDTCHeader.h:85
HcalDTCHeader::getSlotDataLength
unsigned int getSlotDataLength(int nslot) const
Definition: HcalDTCHeader.h:76
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HcalDTCHeader::SLOT_COUNT
static const int SLOT_COUNT
Definition: HcalDTCHeader.h:20
HcalDTCHeader::getSlotCRCError
bool getSlotCRCError(unsigned int nslot) const
Read the "CRC-Mismatch" bit for this slot.
Definition: HcalDTCHeader.h:93
HcalDTCHeader::getSlotEnabled
bool getSlotEnabled(unsigned int nslot) const
Read the "ENABLED" bit for this slot.
Definition: HcalDTCHeader.h:81
HcalDTCHeader::getSlotValid
bool getSlotValid(unsigned int nslot) const
Read the "VALID" bit for this slot; TTC EvN matched HTR EvN.
Definition: HcalDTCHeader.h:89