File indexing completed on 2024-09-07 04:36:11
0001 #ifndef GctBlockHeader_h_
0002 #define GctBlockHeader_h_
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include <ostream>
0013 #include <cstdint>
0014
0015 class GctBlockHeader {
0016 public:
0017
0018
0019
0020
0021 GctBlockHeader(uint32_t blockId, uint32_t blockLength, uint32_t nSamples, uint32_t bxId, uint32_t eventId, bool valid);
0022
0023
0024 ~GctBlockHeader() {}
0025
0026
0027 uint32_t blockId() const { return m_blockId; }
0028
0029
0030 uint32_t blockLength() const { return m_blockLength; }
0031
0032
0033 uint32_t nSamples() const { return m_nSamples; }
0034
0035
0036 uint32_t bxId() const { return m_bxId; }
0037
0038
0039 uint32_t eventId() const { return m_eventId; }
0040
0041
0042 bool valid() const { return m_valid; }
0043
0044 private:
0045
0046
0047
0048
0049 uint32_t m_blockId;
0050
0051 uint32_t m_blockLength;
0052
0053 uint32_t m_nSamples;
0054
0055 uint32_t m_bxId;
0056
0057 uint32_t m_eventId;
0058
0059 bool m_valid;
0060 };
0061
0062 #include <vector>
0063 typedef std::vector<GctBlockHeader> GctBlockHeaderCollection;
0064
0065 std::ostream& operator<<(std::ostream& os, const GctBlockHeader& h);
0066
0067 #endif