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 {
39using request_number_t = uint64_t; // NOLINT(build/unsigned)
41
44
46
50enum class ReadoutType : uint16_t // NOLINT(build/unsigned)
51{
52 kInvalid = 0,
53 kLocalized = 1,
54 kExtended = 2,
55 kMonitoring = 3,
56};
57
62using system_time_t = uint64_t; // NOLINT(build/unsigned)
63
68{
69public:
71 std::numeric_limits<request_number_t>::max();
72 static constexpr system_time_t s_invalid_system_time = 0;
73};
74
75} // namespace dfmessages
76} // namespace dunedaq
77
79
80#endif // DFMESSAGES_INCLUDE_DFMESSAGES_TYPES_HPP_
Default values for daqdataformats types.
Definition Types.hpp:55
Default values for dfmessages types.
Definition Types.hpp:68
static constexpr system_time_t s_invalid_system_time
An invalid system time.
Definition Types.hpp:72
static constexpr request_number_t s_invalid_request_number
An invalid request number.
Definition Types.hpp:70
uint32_t run_number_t
Type used to represent run number.
Definition Types.hpp:20
int64_t timestamp_diff_t
Used to represent differences between timestamps.
Definition Types.hpp:37
uint64_t trigger_number_t
Type used to represent trigger number.
Definition Types.hpp:24
uint16_t sequence_number_t
Type used to represent sequence within a trigger record.
Definition Types.hpp:45
uint64_t timestamp_t
Type used to represent DUNE timing system timestamps.
Definition Types.hpp:36
uint64_t trigger_type_t
Type used to represent Trigger Decision trigger types.
Definition Types.hpp:41
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:51
@ 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 daqdataformats::trigger_type_t.
Definition Types.hpp:45
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:62
daqdataformats::trigger_number_t trigger_number_t
Copy daqdataformats::trigger_number_t.
Definition Types.hpp:35
Including Qt Headers.
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