CMS 3D CMS Logo

Classes | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/EventFilter/HcalRawToDigi/interface/HcalDTCHeader.h File Reference

#include <iostream>
#include <stdint.h>
#include "DataFormats/HcalDigi/interface/HcalCalibrationEventTypes.h"

Go to the source code of this file.

Classes

class  HcalDTCHeader

Functions

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

Function Documentation

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