CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/EventFilter/GctRawToDigi/src/GctBlockHeader.cc

Go to the documentation of this file.
00001 #include "EventFilter/GctRawToDigi/src/GctBlockHeader.h"
00002 
00003 GctBlockHeader::GctBlockHeader(uint32_t blockId,
00004                                uint32_t blockLength,
00005                                uint32_t nSamples,
00006                                uint32_t bxId,
00007                                uint32_t eventId,
00008                                bool valid):
00009   m_blockId(blockId),
00010   m_blockLength(blockLength),
00011   m_nSamples(nSamples),
00012   m_bxId(bxId),
00013   m_eventId(eventId),
00014   m_valid(valid)
00015 {
00016 }
00017 
00018 std::ostream& operator<<(std::ostream& os, const GctBlockHeader& h)
00019 {
00020   os << "ID " << std::hex << h.blockId() << " : Length : " << h.blockLength()
00021      << " : Samples " << h.nSamples() << " : BX "
00022      << h.bxId() << " : Event " << h.eventId() << std::dec;
00023   return os;
00024 }