CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 73 of file HcalDTCHeader.cc.

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

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