DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Types.hpp
Go to the documentation of this file.
1
9#ifndef DFMESSAGES_INCLUDE_DFMESSAGES_TYPES_HPP_
10#define DFMESSAGES_INCLUDE_DFMESSAGES_TYPES_HPP_
11
15
17
18#include <cstdint>
19#include <limits>
20#include <map>
21#include <sys/time.h>
22#include <utility>
23
27namespace dunedaq {
31namespace dfmessages {
35using trigger_number_t = daqdataformats::trigger_number_t;
39using request_number_t = uint64_t; // NOLINT(build/unsigned)
41
42using timestamp_t = daqdataformats::timestamp_t;
43using timestamp_diff_t = daqdataformats::timestamp_diff_t;
44
52
56enum class ReadoutType : uint16_t // NOLINT(build/unsigned)
57{
58 kInvalid = 0,
59 kLocalized = 1,
60 kExtended = 2,
61 kMonitoring = 3,
62};
63
68using system_time_t = uint64_t; // NOLINT(build/unsigned)
69
74{
75public:
77 std::numeric_limits<request_number_t>::max();
78 static constexpr system_time_t s_invalid_system_time = 0;
79};
80
81} // namespace dfmessages
82} // namespace dunedaq
83
85
86#endif // DFMESSAGES_INCLUDE_DFMESSAGES_TYPES_HPP_
#define DUNE_DAQ_SERIALIZE_ENUM(Type)
Macro to declare an enum type to the serialization library.
Default values for daqdataformats types.
Definition Types.hpp:58
Default values for dfmessages types.
Definition Types.hpp:74
static constexpr system_time_t s_invalid_system_time
An invalid system time.
Definition Types.hpp:78
static constexpr request_number_t s_invalid_request_number
An invalid request number.
Definition Types.hpp:76
uint32_t run_number_t
Type used to represent run number.
Definition Types.hpp:20
uint16_t sequence_number_t
Type used to represent sequence within a trigger record.
Definition Types.hpp:48
uint64_t trigger_type_t
Type used to represent Trigger Decision trigger types.
Definition Types.hpp:44
uint64_t request_number_t
A request number is represented using a 64-bit unsigned integer.
Definition Types.hpp:39
daqdataformats::timestamp_diff_t timestamp_diff_t
Copy daqdataformats::timestamp_diff_t.
Definition Types.hpp:43
daqdataformats::run_number_t run_number_t
Copy daqdataformats::run_number_t.
Definition Types.hpp:34
ReadoutType
Which type of readout to use for TriggerDecision and DataRequest.
Definition Types.hpp:57
@ kExtended
Extended readout, write data to local storage.
@ kLocalized
Local readout, send Fragments to dataflow.
@ kInvalid
Invalid type, used for initialization.
@ kMonitoring
Monitoring readout.
daqdataformats::sequence_number_t sequence_number_t
Copy daqdataformats::sequence_number_t.
Definition Types.hpp:40
daqdataformats::trigger_type_t trigger_type_t
Copy daqdataforamts::trigger_type_t.
Definition Types.hpp:51
daqdataformats::timestamp_t timestamp_t
Copy daqdataformats::timestamp_t.
Definition Types.hpp:42
uint64_t system_time_t
System times are represented using a 64-bit unsigned integer This number is defined as the number of ...
Definition Types.hpp:68
daqdataformats::trigger_number_t trigger_number_t
Copy daqdataformats::trigger_number_t.
Definition Types.hpp:35
The DUNE-DAQ namespace.
A request sent to a Component, including the SourceID of the component and the window offset and widt...
SourceID is a generalized representation of the source of a piece of data in the DAQ....
Definition SourceID.hpp:32