CMS 3D CMS Logo

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

◆ operator<<()

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

Definition at line 108 of file CastorCTDCHeader.cc.

108  {
109  for (int i = 0; i < CastorCTDCHeader::SPIGOT_COUNT + 1; i++) {
110  s << "Spigot " << i << " : " << head.getSpigotDataLength(i) << " bytes, ";
111  if (head.getSpigotEnabled(i))
112  s << "E";
113  if (head.getSpigotPresent(i))
114  s << "P";
115  if (head.getSpigotValid(i))
116  s << "V";
117  s << ". Error codes: " << std::hex << int(head.getSpigotErrorBits(i)) << std::dec;
118  s << std::endl;
119  }
120  return s;
121 }

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

mps_fire.i
i
Definition: mps_fire.py:355
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CastorCTDCHeader::getSpigotEnabled
bool getSpigotEnabled(unsigned int nspigot) const
Read the "ENABLED" bit for this spigot.
Definition: CastorCTDCHeader.h:91
CastorCTDCHeader::getSpigotValid
bool getSpigotValid(unsigned int nspigot) const
Read the "VALID" bit for this spigot; TTC EvN matched HTR EvN.
Definition: CastorCTDCHeader.h:103
CastorCTDCHeader::getSpigotPresent
bool getSpigotPresent(unsigned int nspigot) const
Read the "PRESENT" bit for this spigot.
Definition: CastorCTDCHeader.h:95
createfilelist.int
int
Definition: createfilelist.py:10
CastorCTDCHeader::SPIGOT_COUNT
static const int SPIGOT_COUNT
Definition: CastorCTDCHeader.h:19
CastorCTDCHeader::getSpigotErrorBits
unsigned char getSpigotErrorBits(unsigned int nspigot) const
Access the HTR error bits (decoding tbd)
Definition: CastorCTDCHeader.h:115
CastorCTDCHeader::getSpigotDataLength
unsigned int getSpigotDataLength(int nspigot) const
Definition: CastorCTDCHeader.h:86
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143