CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/EventFilter/HcalRawToDigi/src/HcalDTCHeader.cc File Reference

#include "EventFilter/HcalRawToDigi/interface/HcalHTRData.h"
#include "EventFilter/HcalRawToDigi/interface/HcalDTCHeader.h"
#include <string.h>
#include <stdint.h>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 73 of file HcalDTCHeader.cc.

References HcalDTCHeader::getSlotCRCError(), HcalDTCHeader::getSlotDataLength(), HcalDTCHeader::getSlotEnabled(), HcalDTCHeader::getSlotPresent(), HcalDTCHeader::getSlotValid(), i, alignCSCRings::s, and HcalDTCHeader::SLOT_COUNT.

                                                                 {

  for (int i=0; i<HcalDTCHeader::SLOT_COUNT; i++) {
    s << "Slot " << i << " : " << head.getSlotDataLength(i) << " bytes, ";
    if (head.getSlotEnabled(i)) s << "E";
    if (head.getSlotPresent(i)) s << "P";
    if (head.getSlotValid(i)) s << "V";
    if (head.getSlotCRCError(i)) s << "C";
    //    s << ". Error codes: " << std::hex << int(head.getSlotErrorBits(i)) << "," << int(head.getLRBErrorBits(i)) << std::dec;
    s << std::endl;
  }
  return s;
}