DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
SourceID is a generalized representation of the source of a piece of data in the DAQ. That source could be a physical location in the detector, a running process in the DAQ (e.g. a dataflow app, the source of a data request), etc. More...
#include <SourceID.hpp>
Public Types | |
enum class | Subsystem : Subsystem_t { kUnknown = 0 , kDetectorReadout = 1 , kHwSignalsInterface = 2 , kTrigger = 3 , kTRBuilder = 4 } |
The Subsystem enum describes the kind of source we're dealing with. More... | |
using | Version_t = uint16_t |
using | Subsystem_t = uint16_t |
using | ID_t = uint32_t |
Public Member Functions | |
SourceID ()=default | |
SourceID (const Subsystem &subsystem_arg, const ID_t &id_arg) | |
std::string | to_string () const |
bool | is_in_valid_state () const noexcept |
bool | operator< (const SourceID &other) const noexcept |
Comparison operators to allow SourceID to be used in std::map. | |
bool | operator!= (const SourceID &other) const noexcept |
bool | operator== (const SourceID &other) const noexcept |
Static Public Member Functions | |
static std::string | subsystem_to_string (const Subsystem &type) |
static Subsystem | string_to_subsystem (const std::string &typestring) |
Public Attributes | |
Version_t | version { s_source_id_version } |
Version number of the SourceID. | |
Subsystem | subsystem { Subsystem::kUnknown } |
The general subsystem of the source of the data. | |
ID_t | id { s_invalid_id } |
Unique identifier of the source of the data. | |
Static Public Attributes | |
static constexpr Version_t | s_source_id_version |
The version of this SourceID struct. | |
static constexpr ID_t | s_invalid_id = std::numeric_limits<ID_t>::max() |
A value for the id meant to convey that it doesn't identify a data source and shouldn't be worked with. | |
SourceID is a generalized representation of the source of a piece of data in the DAQ. That source could be a physical location in the detector, a running process in the DAQ (e.g. a dataflow app, the source of a data request), etc.
Definition at line 31 of file SourceID.hpp.
using dunedaq::daqdataformats::SourceID::ID_t = uint32_t |
Definition at line 36 of file SourceID.hpp.
using dunedaq::daqdataformats::SourceID::Subsystem_t = uint16_t |
Definition at line 35 of file SourceID.hpp.
using dunedaq::daqdataformats::SourceID::Version_t = uint16_t |
Definition at line 34 of file SourceID.hpp.
|
strong |
The Subsystem enum describes the kind of source we're dealing with.
Enumerator | |
---|---|
kUnknown | |
kDetectorReadout | |
kHwSignalsInterface | |
kTrigger | |
kTRBuilder |
Definition at line 42 of file SourceID.hpp.
|
default |
|
inline |
Definition at line 78 of file SourceID.hpp.
|
inlinenoexcept |
Definition at line 90 of file SourceID.hpp.
|
inlinenoexcept |
Definition at line 76 of file SourceID.hxx.
|
inlinenoexcept |
Comparison operators to allow SourceID to be used in std::map.
Definition at line 69 of file SourceID.hxx.
|
inlinenoexcept |
Definition at line 82 of file SourceID.hxx.
|
inlinestatic |
Definition at line 106 of file SourceID.hxx.
|
inlinestatic |
Definition at line 88 of file SourceID.hxx.
|
inline |
Definition at line 83 of file SourceID.hpp.
ID_t dunedaq::daqdataformats::SourceID::id { s_invalid_id } |
Unique identifier of the source of the data.
Definition at line 74 of file SourceID.hpp.
|
staticconstexpr |
A value for the id meant to convey that it doesn't identify a data source and shouldn't be worked with.
Definition at line 60 of file SourceID.hpp.
|
staticconstexpr |
Subsystem dunedaq::daqdataformats::SourceID::subsystem { Subsystem::kUnknown } |
The general subsystem of the source of the data.
Definition at line 69 of file SourceID.hpp.
Version_t dunedaq::daqdataformats::SourceID::version { s_source_id_version } |
Version number of the SourceID.
Definition at line 65 of file SourceID.hpp.