DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
DetID is a versioned structure containing the 6 bits field of the unique identifier for a subdetector in the raw data. For convenience this field is expanded to 16 bits. More...
#include <DetID.hpp>
Public Types | |
enum class | Subdetector : Subdetector_t { kUnknown = 0 , kDAQ = 1 , kHD_PDS = 2 , kHD_TPC = 3 , kHD_CRT = 4 , kVD_CathodePDS = 8 , kVD_MembranePDS = 9 , kVD_BottomTPC = 10 , kVD_TopTPC = 11 , kVD_BernCRT = 12 , kVD_GrenobleCRT = 13 , kNDLAr_TPC = 32 , kNDLAr_PDS = 33 , kND_GAr = 34 } |
The Subdetector enum describes the kind of source we're dealing with. More... | |
using | Version_t = uint16_t |
using | Subdetector_t = uint16_t |
Public Member Functions | |
DetID ()=default | |
DetID (const Subdetector &subdetector_arg) | |
std::string | to_string () const |
bool | is_in_valid_state () const noexcept |
Static Public Member Functions | |
static std::string | subdetector_to_string (const Subdetector &type) |
static Subdetector | string_to_subdetector (const std::string &typestring) |
Public Attributes | |
Version_t | version { s_det_id_version } |
Version number of the DetID. | |
Subdetector | subdetector { Subdetector::kUnknown } |
The general subdetector of the source of the data. | |
Static Public Attributes | |
static constexpr Version_t | s_det_id_version = 1 |
The version of this DetID struct. | |
DetID is a versioned structure containing the 6 bits field of the unique identifier for a subdetector in the raw data. For convenience this field is expanded to 16 bits.
using dunedaq::detdataformats::DetID::Subdetector_t = uint16_t |
using dunedaq::detdataformats::DetID::Version_t = uint16_t |
|
strong |
The Subdetector enum describes the kind of source we're dealing with.
Enumerator | |
---|---|
kUnknown | |
kDAQ | |
kHD_PDS | |
kHD_TPC | |
kHD_CRT | |
kVD_CathodePDS | |
kVD_MembranePDS | |
kVD_BottomTPC | |
kVD_TopTPC | |
kVD_BernCRT | |
kVD_GrenobleCRT | |
kNDLAr_TPC | |
kNDLAr_PDS | |
kND_GAr |
Definition at line 39 of file DetID.hpp.
|
default |
|
inline |
Definition at line 73 of file DetID.hpp.
|
inlinenoexcept |
|
inlinestatic |
Definition at line 102 of file DetID.hxx.
|
inlinestatic |
Definition at line 67 of file DetID.hxx.
|
inline |
Definition at line 77 of file DetID.hpp.
|
staticconstexpr |
Subdetector dunedaq::detdataformats::DetID::subdetector { Subdetector::kUnknown } |
The general subdetector of the source of the data.
Definition at line 69 of file DetID.hpp.
Version_t dunedaq::detdataformats::DetID::version { s_det_id_version } |
Version number of the DetID.
Definition at line 65 of file DetID.hpp.