File indexing completed on 2024-04-06 12:10:40
0001 #include "EventFilter/GctRawToDigi/src/GctBlockHeader.h"
0002
0003 GctBlockHeader::GctBlockHeader(
0004 uint32_t blockId, uint32_t blockLength, uint32_t nSamples, uint32_t bxId, uint32_t eventId, bool valid)
0005 : m_blockId(blockId),
0006 m_blockLength(blockLength),
0007 m_nSamples(nSamples),
0008 m_bxId(bxId),
0009 m_eventId(eventId),
0010 m_valid(valid) {}
0011
0012 std::ostream& operator<<(std::ostream& os, const GctBlockHeader& h) {
0013 os << "ID " << std::hex << h.blockId() << " : Length : " << h.blockLength() << " : Samples " << h.nSamples()
0014 << " : BX " << h.bxId() << " : Event " << h.eventId() << std::dec;
0015 return os;
0016 }