CMS 3D CMS Logo

Classes | Functions
HcalDTCHeader.h File Reference
#include <iostream>
#include <stdint.h>
#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 71 of file HcalDTCHeader.cc.

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

71  {
72 
73  for (int i=0; i<HcalDTCHeader::SLOT_COUNT; i++) {
74  s << "Slot " << i << " : " << head.getSlotDataLength(i) << " bytes, ";
75  if (head.getSlotEnabled(i)) s << "E";
76  if (head.getSlotPresent(i)) s << "P";
77  if (head.getSlotValid(i)) s << "V";
78  if (head.getSlotCRCError(i)) s << "C";
79  // s << ". Error codes: " << std::hex << int(head.getSlotErrorBits(i)) << "," << int(head.getLRBErrorBits(i)) << std::dec;
80  s << std::endl;
81  }
82  return s;
83 }
bool getSlotValid(unsigned int nslot) const
Read the "VALID" bit for this slot; TTC EvN matched HTR EvN.
Definition: HcalDTCHeader.h:82
bool getSlotPresent(unsigned int nslot) const
Read the "PRESENT" bit for this slot.
Definition: HcalDTCHeader.h:80
bool getSlotEnabled(unsigned int nslot) const
Read the "ENABLED" bit for this slot.
Definition: HcalDTCHeader.h:78
unsigned int getSlotDataLength(int nslot) const
Definition: HcalDTCHeader.h:75
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:84