CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/EventFilter/HcalRawToDigi/interface/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

std::ostream& operator<< ( std::ostream &  ,
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, alignCSCRings::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;
}