DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ComponentRequest.hpp
Go to the documentation of this file.
1
8
9#ifndef DAQDATAFORMATS_INCLUDE_DAQDATAFORMATS_COMPONENTREQUEST_HPP_
10#define DAQDATAFORMATS_INCLUDE_DAQDATAFORMATS_COMPONENTREQUEST_HPP_
11
14
15#include <cstddef>
16#include <iostream>
17#include <ostream>
18#include <string>
19
21
26{
27 static constexpr uint32_t s_component_request_version = 2; // NOLINT(build/unsigned)
28
29 uint32_t version{ s_component_request_version }; // NOLINT(build/unsigned)
30 uint32_t unused{ 0xFFFFFFFF };
31
33
36
39
40 ComponentRequest() = default;
41 ComponentRequest(SourceID const& comp, timestamp_t const& wbegin, timestamp_t const& wend);
42};
43
44std::ostream&
45operator<<(std::ostream& o, ComponentRequest const& cr);
46
47inline ComponentRequest::ComponentRequest(SourceID const& comp, timestamp_t const& wbegin, timestamp_t const& wend)
48 : component(comp)
49 , window_begin(wbegin)
50 , window_end(wend)
51{
52}
53
54} // namespace dunedaq::daqdataformats
55
57
58#endif // DAQDATAFORMATS_INCLUDE_DAQDATAFORMATS_COMPONENTREQUEST_HPP_
uint64_t timestamp_t
Type used to represent DUNE timing system timestamps.
Definition Types.hpp:26
std::ostream & operator<<(std::ostream &o, ComponentRequest const &cr)
A request sent to a Component, including the SourceID of the component and the window offset and widt...
uint32_t unused
Padding to ensure 64b alignment // NOLINT(build/unsigned).
timestamp_t window_end
End of the data collection window.
static constexpr uint32_t s_component_request_version
SourceID component
The ID of the Requested Component.
timestamp_t window_begin
Start of the data collection window.
SourceID is a generalized representation of the source of a piece of data in the DAQ....
Definition SourceID.hpp:32
static constexpr timestamp_t s_invalid_timestamp
Definition Types.hpp:52