CMS 3D CMS Logo

HcalDCCHeader.h File Reference

#include <iostream>

Go to the source code of this file.

Classes

class  HcalDCCHeader
 Interpretive class for an HcalDCCHeader. More...

Functions

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


Function Documentation

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

Definition at line 79 of file HcalDCCHeader.cc.

References lat::endl(), HcalDCCHeader::getLRBErrorBits(), HcalDCCHeader::getSpigotDataLength(), HcalDCCHeader::getSpigotEnabled(), HcalDCCHeader::getSpigotErrorBits(), HcalDCCHeader::getSpigotPresent(), HcalDCCHeader::getSpigotValid(), i, int, and HcalDCCHeader::SPIGOT_COUNT.

00079                                                                  {
00080 
00081   for (int i=0; i<HcalDCCHeader::SPIGOT_COUNT; i++) {
00082     s << "Spigot " << i << " : " << head.getSpigotDataLength(i) << " bytes, ";
00083     if (head.getSpigotEnabled(i)) s << "E";
00084     if (head.getSpigotPresent(i)) s << "P";
00085     if (head.getSpigotValid(i)) s << "V";
00086     s << ". Error codes: " << std::hex << int(head.getSpigotErrorBits(i)) << "," << int(head.getLRBErrorBits(i)) << std::dec;
00087     s << std::endl;
00088   }
00089   return s;
00090 }


Generated on Tue Jun 9 17:52:51 2009 for CMSSW by  doxygen 1.5.4