CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/EventFilter/CastorRawToDigi/interface/CastorCTDCHeader.h File Reference

#include <iostream>

Go to the source code of this file.

Classes

class  CastorCTDCHeader

Functions

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

Function Documentation

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

Definition at line 97 of file CastorCTDCHeader.cc.

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

                                                                    {

  for (int i=0; i<CastorCTDCHeader::SPIGOT_COUNT+1; 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)) << std::dec;
    s << std::endl;
  }
  return s;
}