2 #ifndef EUDAQ_INCLUDED_MetaData
3 #define EUDAQ_INCLUDED_MetaData
6 #include "eudaq/Platform.hh"
7 #include "eudaq/Serializable.hh"
8 #include "eudaq/BufferSerializer.hh"
9 #include "eudaq/SmartEnum.hh"
17 DECLARE_ENUM_CLASS(Type, TRIGGER_COUNTER, TRIGGER_TIMESTAMP);
22 static int GetType(uint64_t meta_data);
23 static void SetType(uint64_t &meta_data,
int type);
24 static bool IsTLUBitSet(uint64_t meta_data);
25 static uint64_t GetCounter(uint64_t meta_data);
26 static void SetCounter(uint64_t &meta_data, uint64_t data);
28 void add(
bool tlu,
int type, uint64_t data);
29 std::vector<uint64_t> &getArray() {
return m_metaData; };
34 std::vector<uint64_t> m_metaData;
38 #endif // EUDAQ_INCLUDED_MetaData
Definition: Serializer.hh:156
Definition: Serializable.hh:13
Definition: Serializer.hh:19