DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TimeSliceHeader.hpp
Go to the documentation of this file.
1
10
11#ifndef DAQDATAFORMATS_INCLUDE_DAQDATAFORMATS_TIMESLICEHEADER_HPP_
12#define DAQDATAFORMATS_INCLUDE_DAQDATAFORMATS_TIMESLICEHEADER_HPP_
13
17
18#include <cstddef>
19#include <limits>
20#include <ostream>
21#include <string>
22#include <vector>
23
25
30{
32 static constexpr uint32_t s_timeslice_header_marker = 0x55556666; // NOLINT(build/unsigned)
33
34 static constexpr uint32_t s_timeslice_header_version = 2; // NOLINT(build/unsigned)
35
36 uint32_t timeslice_header_marker = s_timeslice_header_marker; // NOLINT(build/unsigned)
37 uint32_t version = s_timeslice_header_version; // NOLINT(build/unsigned)
38
41
43
44 uint32_t unused{ 0xFFFFFFFF }; // NOLINT(build/unsigned) Padding to ensure 64-bit alignment
45
47};
48
49std::ostream&
50operator<<(std::ostream& o, TimeSliceHeader const& hdr);
51
52} // namespace dunedaq::daqdataformats
53
55
56#endif // DAQDATAFORMATS_INCLUDE_DAQDATAFORMATS_TIMESLICEHEADER_HPP_
std::ostream & operator<<(std::ostream &o, ComponentRequest const &cr)
uint64_t timeslice_number_t
Definition Types.hpp:40
SourceID is a generalized representation of the source of a piece of data in the DAQ....
Definition SourceID.hpp:32
Data fields associated with a TimeSliceHeader.
static constexpr uint32_t s_timeslice_header_marker
Marker bytes to identify a TimeSliceHeader entry in a raw data stream.
static constexpr uint32_t s_timeslice_header_version
timeslice_number_t timeslice_number
Slice number of this TimeSlice within the stream.
static constexpr timeslice_number_t s_invalid_timeslice_number
Definition Types.hpp:57
static constexpr run_number_t s_invalid_run_number
Definition Types.hpp:47