CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 <string.h>
#include <stdint.h>

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 79 of file HcalDCCHeader.cc.

References HcalDCCHeader::getLRBErrorBits(), HcalDCCHeader::getSpigotDataLength(), HcalDCCHeader::getSpigotEnabled(), HcalDCCHeader::getSpigotErrorBits(), HcalDCCHeader::getSpigotPresent(), HcalDCCHeader::getSpigotValid(), i, alignCSCRings::s, and HcalDCCHeader::SPIGOT_COUNT.

79  {
80 
81  for (int i=0; i<HcalDCCHeader::SPIGOT_COUNT; i++) {
82  s << "Spigot " << i << " : " << head.getSpigotDataLength(i) << " bytes, ";
83  if (head.getSpigotEnabled(i)) s << "E";
84  if (head.getSpigotPresent(i)) s << "P";
85  if (head.getSpigotValid(i)) s << "V";
86  s << ". Error codes: " << std::hex << int(head.getSpigotErrorBits(i)) << "," << int(head.getLRBErrorBits(i)) << std::dec;
87  s << std::endl;
88  }
89  return s;
90 }
int i
Definition: DBlmapReader.cc:9
unsigned char getSpigotErrorBits(unsigned int nspigot) const
Access the HTR error bits (decoding tbd)
unsigned int getSpigotDataLength(int nspigot) const
Definition: HcalDCCHeader.h:98
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:21