CMS 3D CMS Logo

Functions
HcalDCCHeader.cc File Reference
#include "EventFilter/HcalRawToDigi/interface/HcalHTRData.h"
#include "EventFilter/HcalRawToDigi/interface/HcalDCCHeader.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <cstring>
#include <cstdint>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const HcalDCCHeader &head)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const HcalDCCHeader head 
)

Definition at line 89 of file HcalDCCHeader.cc.

References TauDecayModes::dec, HcalDCCHeader::getLRBErrorBits(), HcalDCCHeader::getSpigotDataLength(), HcalDCCHeader::getSpigotEnabled(), HcalDCCHeader::getSpigotErrorBits(), HcalDCCHeader::getSpigotPresent(), HcalDCCHeader::getSpigotValid(), mps_fire::i, createfilelist::int, alignCSCRings::s, and HcalDCCHeader::SPIGOT_COUNT.

89  {
90  for (int i = 0; i < HcalDCCHeader::SPIGOT_COUNT; i++) {
91  s << "Spigot " << i << " : " << head.getSpigotDataLength(i) << " bytes, ";
92  if (head.getSpigotEnabled(i))
93  s << "E";
94  if (head.getSpigotPresent(i))
95  s << "P";
96  if (head.getSpigotValid(i))
97  s << "V";
98  s << ". Error codes: " << std::hex << int(head.getSpigotErrorBits(i)) << "," << int(head.getLRBErrorBits(i))
99  << std::dec;
100  s << std::endl;
101  }
102  return s;
103 }
unsigned char getLRBErrorBits(unsigned int nspigot) const
Access the Link Receiver Board error bits (decoding tbd)
unsigned char getSpigotErrorBits(unsigned int nspigot) const
Access the HTR error bits (decoding tbd)
bool getSpigotValid(unsigned int nspigot) const
Read the "VALID" bit for this spigot; TTC EvN matched HTR EvN.
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19
bool getSpigotPresent(unsigned int nspigot) const
Read the "PRESENT" bit for this spigot.
unsigned int getSpigotDataLength(int nspigot) const
Definition: HcalDCCHeader.h:97
bool getSpigotEnabled(unsigned int nspigot) const
Read the "ENABLED" bit for this spigot.