CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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, 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 getSpigotErrorBits(unsigned int nspigot) const
Access the HTR error bits (decoding tbd)
unsigned int getSpigotDataLength(int nspigot) const
Definition: HcalDCCHeader.h:97
unsigned char getLRBErrorBits(unsigned int nspigot) const
Access the Link Receiver Board error bits (decoding tbd)
bool getSpigotPresent(unsigned int nspigot) const
Read the &quot;PRESENT&quot; bit for this spigot.
bool getSpigotEnabled(unsigned int nspigot) const
Read the &quot;ENABLED&quot; bit for this spigot.
bool getSpigotValid(unsigned int nspigot) const
Read the &quot;VALID&quot; bit for this spigot; TTC EvN matched HTR EvN.
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19