LDMX Software
GenericDataBlock.h
1#ifndef GENERICDATABLOCK_H
2#define GENERICDATABLOCK_H
3
4#include <cstddef>
5#include <cstdint>
6#include <vector>
7
8namespace eventbuilder {
9
11 uint64_t subsystem_id_ = 0;
12 uint64_t timestamp_ns_ = 0;
13 std::vector<uint8_t> data_; // raw encoded payload
14 uint32_t checksum_ = 0;
15
16 size_t size() const { return data_.size(); }
17};
18
19} // namespace eventbuilder
20
21#endif // GENERICDATABLOCK_H