CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
HcalDTCHeader.cc File Reference
#include "EventFilter/HcalRawToDigi/interface/HcalHTRData.h"
#include "EventFilter/HcalRawToDigi/interface/HcalDTCHeader.h"
#include <string.h>
#include <stdint.h>

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 71 of file HcalDTCHeader.cc.

References HcalDTCHeader::getSlotCRCError(), HcalDTCHeader::getSlotDataLength(), HcalDTCHeader::getSlotEnabled(), HcalDTCHeader::getSlotPresent(), HcalDTCHeader::getSlotValid(), 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 }
int i
Definition: DBlmapReader.cc:9
bool getSlotValid(unsigned int nslot) const
Read the &quot;VALID&quot; bit for this slot; TTC EvN matched HTR EvN.
Definition: HcalDTCHeader.h:82
bool getSlotPresent(unsigned int nslot) const
Read the &quot;PRESENT&quot; bit for this slot.
Definition: HcalDTCHeader.h:80
bool getSlotEnabled(unsigned int nslot) const
Read the &quot;ENABLED&quot; 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 &quot;CRC-Mismatch&quot; bit for this slot.
Definition: HcalDTCHeader.h:84