CMS 3D CMS Logo

Functions
CastorCTDCHeader.cc File Reference
#include "EventFilter/CastorRawToDigi/interface/CastorCORData.h"
#include "EventFilter/CastorRawToDigi/interface/CastorMergerData.h"
#include "EventFilter/CastorRawToDigi/interface/CastorCTDCHeader.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 CastorCTDCHeader &head)
 

Function Documentation

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

Definition at line 95 of file CastorCTDCHeader.cc.

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

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