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

std::ostream& operator<< ( std::ostream &  ,
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