CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/EventFilter/HcalRawToDigi/src/HcalDCCHeader.cc File Reference

#include "EventFilter/HcalRawToDigi/interface/HcalHTRData.h"
#include "EventFilter/HcalRawToDigi/interface/HcalDCCHeader.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <string.h>
#include <stdint.h>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 79 of file HcalDCCHeader.cc.

References HcalDCCHeader::getLRBErrorBits(), HcalDCCHeader::getSpigotDataLength(), HcalDCCHeader::getSpigotEnabled(), HcalDCCHeader::getSpigotErrorBits(), HcalDCCHeader::getSpigotPresent(), HcalDCCHeader::getSpigotValid(), i, asciidump::s, and HcalDCCHeader::SPIGOT_COUNT.

                                                                 {

  for (int i=0; i<HcalDCCHeader::SPIGOT_COUNT; i++) {
    s << "Spigot " << i << " : " << head.getSpigotDataLength(i) << " bytes, ";
    if (head.getSpigotEnabled(i)) s << "E";
    if (head.getSpigotPresent(i)) s << "P";
    if (head.getSpigotValid(i)) s << "V";
    s << ". Error codes: " << std::hex << int(head.getSpigotErrorBits(i)) << "," << int(head.getLRBErrorBits(i)) << std::dec;
    s << std::endl;
  }
  return s;
}