CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
HcalDCCHeader.h File Reference
#include <iostream>
#include "DataFormats/HcalDigi/interface/HcalCalibrationEventTypes.h"

Go to the source code of this file.

Classes

class  HcalDCCHeader
 

Functions

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

Function Documentation

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

Definition at line 77 of file HcalDCCHeader.cc.

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

77  {
78 
79  for (int i=0; i<HcalDCCHeader::SPIGOT_COUNT; i++) {
80  s << "Spigot " << i << " : " << head.getSpigotDataLength(i) << " bytes, ";
81  if (head.getSpigotEnabled(i)) s << "E";
82  if (head.getSpigotPresent(i)) s << "P";
83  if (head.getSpigotValid(i)) s << "V";
84  s << ". Error codes: " << std::hex << int(head.getSpigotErrorBits(i)) << "," << int(head.getLRBErrorBits(i)) << std::dec;
85  s << std::endl;
86  }
87  return s;
88 }
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:96
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.
Definition: HcalDCCHeader.h:99
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