CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
CastorCTDCHeader.h File Reference
#include <iostream>

Go to the source code of this file.

Classes

class  CastorCTDCHeader
 

Functions

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

Function Documentation

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

Definition at line 97 of file CastorCTDCHeader.cc.

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

97  {
98 
99  for (int i=0; i<CastorCTDCHeader::SPIGOT_COUNT+1; i++) {
100  s << "Spigot " << i << " : " << head.getSpigotDataLength(i) << " bytes, ";
101  if (head.getSpigotEnabled(i)) s << "E";
102  if (head.getSpigotPresent(i)) s << "P";
103  if (head.getSpigotValid(i)) s << "V";
104  s << ". Error codes: " << std::hex << int(head.getSpigotErrorBits(i)) << std::dec;
105  s << std::endl;
106  }
107  return s;
108 }
int i
Definition: DBlmapReader.cc:9
bool getSpigotValid(unsigned int nspigot) const
Read the &quot;VALID&quot; bit for this spigot; TTC EvN matched HTR EvN.
bool getSpigotEnabled(unsigned int nspigot) const
Read the &quot;ENABLED&quot; bit for this spigot.
static const int SPIGOT_COUNT
unsigned int getSpigotDataLength(int nspigot) const
bool getSpigotPresent(unsigned int nspigot) const
Read the &quot;PRESENT&quot; bit for this spigot.
unsigned char getSpigotErrorBits(unsigned int nspigot) const
Access the HTR error bits (decoding tbd)