DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dfmessages
include
dfmessages
Types.hpp
Go to the documentation of this file.
1
8
9
#ifndef DFMESSAGES_INCLUDE_DFMESSAGES_TYPES_HPP_
10
#define DFMESSAGES_INCLUDE_DFMESSAGES_TYPES_HPP_
11
12
#include "
daqdataformats/ComponentRequest.hpp
"
13
#include "
daqdataformats/SourceID.hpp
"
14
#include "
daqdataformats/Types.hpp
"
15
16
#include "
serialization/Serialization.hpp
"
17
18
#include <cstdint>
19
#include <limits>
20
#include <map>
21
#include <sys/time.h>
22
#include <utility>
23
27
namespace
dunedaq
{
31
namespace
dfmessages
{
32
using
SourceID
=
daqdataformats::SourceID
;
33
using
ComponentRequest
=
daqdataformats::ComponentRequest
;
34
using
run_number_t
=
daqdataformats::run_number_t
;
35
using
trigger_number_t
=
daqdataformats::trigger_number_t
;
39
using
request_number_t
= uint64_t;
// NOLINT(build/unsigned)
40
using
sequence_number_t
=
daqdataformats::sequence_number_t
;
41
42
using
timestamp_t
=
daqdataformats::timestamp_t
;
43
using
timestamp_diff_t
=
daqdataformats::timestamp_diff_t
;
44
51
using
trigger_type_t
=
daqdataformats::trigger_type_t
;
52
56
enum class
ReadoutType
: uint16_t
// NOLINT(build/unsigned)
57
{
58
kInvalid
= 0,
59
kLocalized
= 1,
60
kExtended
= 2,
61
kMonitoring
= 3,
62
};
63
68
using
system_time_t
= uint64_t;
// NOLINT(build/unsigned)
69
73
class
TypeDefaults
:
public
daqdataformats::TypeDefaults
74
{
75
public
:
76
static
constexpr
request_number_t
s_invalid_request_number
=
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
84
DUNE_DAQ_SERIALIZE_ENUM
(
dunedaq::dfmessages::ReadoutType
)
85
86
#endif
// DFMESSAGES_INCLUDE_DFMESSAGES_TYPES_HPP_
ComponentRequest.hpp
Serialization.hpp
DUNE_DAQ_SERIALIZE_ENUM
#define DUNE_DAQ_SERIALIZE_ENUM(Type)
Macro to declare an enum type to the serialization library.
Definition
Serialization.hpp:144
SourceID.hpp
dunedaq::dfmessages::TypeDefaults
Default values for dfmessages types.
Definition
Types.hpp:74
dunedaq::dfmessages::TypeDefaults::s_invalid_system_time
static constexpr system_time_t s_invalid_system_time
An invalid system time.
Definition
Types.hpp:78
dunedaq::dfmessages::TypeDefaults::s_invalid_request_number
static constexpr request_number_t s_invalid_request_number
An invalid request number.
Definition
Types.hpp:76
Types.hpp
dunedaq::daqdataformats::run_number_t
uint32_t run_number_t
Definition
Types.hpp:17
dunedaq::daqdataformats::timestamp_diff_t
int64_t timestamp_diff_t
Used to represent differences between timestamps.
Definition
Types.hpp:27
dunedaq::daqdataformats::trigger_number_t
uint64_t trigger_number_t
Definition
Types.hpp:18
dunedaq::daqdataformats::sequence_number_t
uint16_t sequence_number_t
Type used to represent sequence within a trigger record.
Definition
Types.hpp:38
dunedaq::daqdataformats::timestamp_t
uint64_t timestamp_t
Type used to represent DUNE timing system timestamps.
Definition
Types.hpp:26
dunedaq::daqdataformats::trigger_type_t
uint64_t trigger_type_t
Type used to represent Trigger Decision trigger types.
Definition
Types.hpp:35
dunedaq::dfmessages
Dataflow Messages.
Definition
DataRequest.hpp:21
dunedaq::dfmessages::request_number_t
uint64_t request_number_t
A request number is represented using a 64-bit unsigned integer.
Definition
Types.hpp:39
dunedaq::dfmessages::timestamp_diff_t
daqdataformats::timestamp_diff_t timestamp_diff_t
Copy daqdataformats::timestamp_diff_t.
Definition
Types.hpp:43
dunedaq::dfmessages::run_number_t
daqdataformats::run_number_t run_number_t
Copy daqdataformats::run_number_t.
Definition
Types.hpp:34
dunedaq::dfmessages::ReadoutType
ReadoutType
Which type of readout to use for TriggerDecision and DataRequest.
Definition
Types.hpp:57
dunedaq::dfmessages::ReadoutType::kExtended
@ kExtended
Extended readout, write data to local storage.
Definition
Types.hpp:60
dunedaq::dfmessages::ReadoutType::kLocalized
@ kLocalized
Local readout, send Fragments to dataflow.
Definition
Types.hpp:59
dunedaq::dfmessages::ReadoutType::kInvalid
@ kInvalid
Invalid type, used for initialization.
Definition
Types.hpp:58
dunedaq::dfmessages::ReadoutType::kMonitoring
@ kMonitoring
Monitoring readout.
Definition
Types.hpp:61
dunedaq::dfmessages::ComponentRequest
daqdataformats::ComponentRequest ComponentRequest
Copy daqdataformats::ComponentRequest.
Definition
Types.hpp:33
dunedaq::dfmessages::sequence_number_t
daqdataformats::sequence_number_t sequence_number_t
Copy daqdataformats::sequence_number_t.
Definition
Types.hpp:40
dunedaq::dfmessages::trigger_type_t
daqdataformats::trigger_type_t trigger_type_t
Copy daqdataforamts::trigger_type_t.
Definition
Types.hpp:51
dunedaq::dfmessages::timestamp_t
daqdataformats::timestamp_t timestamp_t
Copy daqdataformats::timestamp_t.
Definition
Types.hpp:42
dunedaq::dfmessages::system_time_t
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
dunedaq::dfmessages::SourceID
daqdataformats::SourceID SourceID
Copy daqdataformats::SourceID.
Definition
Types.hpp:32
dunedaq::dfmessages::trigger_number_t
daqdataformats::trigger_number_t trigger_number_t
Copy daqdataformats::trigger_number_t.
Definition
Types.hpp:35
dunedaq
Including Qt Headers.
Definition
module.cpp:16
dunedaq::daqdataformats::ComponentRequest
A request sent to a Component, including the SourceID of the component and the window offset and widt...
Definition
ComponentRequest.hpp:26
dunedaq::daqdataformats::SourceID
SourceID is a generalized representation of the source of a piece of data in the DAQ....
Definition
SourceID.hpp:32
dunedaq::daqdataformats::TypeDefaults
Default values for daqdataformats types.
Definition
Types.hpp:46
Generated on
for DUNE-DAQ by
1.17.0