CMS 3D CMS Logo

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

◆ operator<<()

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

Definition at line 89 of file HcalDCCHeader.cc.

89  {
90  for (int i = 0; i < HcalDCCHeader::SPIGOT_COUNT; i++) {
91  s << "Spigot " << i << " : " << head.getSpigotDataLength(i) << " bytes, ";
92  if (head.getSpigotEnabled(i))
93  s << "E";
94  if (head.getSpigotPresent(i))
95  s << "P";
96  if (head.getSpigotValid(i))
97  s << "V";
98  s << ". Error codes: " << std::hex << int(head.getSpigotErrorBits(i)) << "," << int(head.getLRBErrorBits(i))
99  << std::dec;
100  s << std::endl;
101  }
102  return s;
103 }

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

mps_fire.i
i
Definition: mps_fire.py:428
HcalDCCHeader::getLRBErrorBits
unsigned char getLRBErrorBits(unsigned int nspigot) const
Access the Link Receiver Board error bits (decoding tbd)
Definition: HcalDCCHeader.h:130
HcalDCCHeader::getSpigotErrorBits
unsigned char getSpigotErrorBits(unsigned int nspigot) const
Access the HTR error bits (decoding tbd)
Definition: HcalDCCHeader.h:126
HcalDCCHeader::getSpigotDataLength
unsigned int getSpigotDataLength(int nspigot) const
Definition: HcalDCCHeader.h:97
HcalDCCHeader::getSpigotEnabled
bool getSpigotEnabled(unsigned int nspigot) const
Read the "ENABLED" bit for this spigot.
Definition: HcalDCCHeader.h:102
HcalDCCHeader::SPIGOT_COUNT
static const int SPIGOT_COUNT
Definition: HcalDCCHeader.h:19
alignCSCRings.s
s
Definition: alignCSCRings.py:92
createfilelist.int
int
Definition: createfilelist.py:10
HcalDCCHeader::getSpigotPresent
bool getSpigotPresent(unsigned int nspigot) const
Read the "PRESENT" bit for this spigot.
Definition: HcalDCCHeader.h:106
HcalDCCHeader::getSpigotValid
bool getSpigotValid(unsigned int nspigot) const
Read the "VALID" bit for this spigot; TTC EvN matched HTR EvN.
Definition: HcalDCCHeader.h:114
TauDecayModes.dec
dec
Definition: TauDecayModes.py:142