File indexing completed on 2023-10-25 09:38:56
0001 #ifndef DataFormats_FEDRawData_FEDHeader_h
0002 #define DataFormats_FEDRawData_FEDHeader_h
0003
0004
0005
0006
0007
0008
0009
0010 #include <cstdint>
0011
0012 struct fedh_struct;
0013
0014 class FEDHeader {
0015 public:
0016
0017 FEDHeader(const unsigned char* header);
0018
0019
0020 ~FEDHeader();
0021
0022
0023 uint8_t triggerType() const;
0024
0025
0026 uint32_t lvl1ID() const;
0027
0028
0029 uint16_t bxID() const;
0030
0031
0032 uint16_t sourceID() const;
0033
0034
0035 uint8_t version() const;
0036
0037
0038
0039
0040 bool moreHeaders() const;
0041
0042
0043 bool check() const;
0044
0045
0046 static void set(unsigned char* header,
0047 uint8_t triggerType,
0048 uint32_t lvl1ID,
0049 uint16_t bxID,
0050 uint16_t sourceID,
0051 uint8_t version = 0,
0052 bool moreHeaders = false);
0053
0054 static const uint32_t length;
0055
0056 private:
0057 const fedh_struct* theHeader;
0058 };
0059 #endif