DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
detdataformats
include
detdataformats
DetID.hpp
Go to the documentation of this file.
1
8
9
#ifndef DETDATAFORMATS_INCLUDE_DETDATAFORMATS_DETID_HPP_
10
#define DETDATAFORMATS_INCLUDE_DETDATAFORMATS_DETID_HPP_
11
12
#include <cassert>
13
#include <cstddef>
14
#include <cstdint>
15
#include <iomanip>
16
#include <istream>
17
#include <limits>
18
#include <ostream>
19
#include <sstream>
20
#include <string>
21
#include <tuple>
22
23
namespace
dunedaq::detdataformats
{
24
29
struct
DetID
30
{
34
35
enum class
Subdetector
: uint16_t
// NOLINT(build/unsigned)
36
{
37
kUnknown
= 0,
38
kDAQ
= 1,
39
kHD_PDS
= 2,
40
kHD_TPC
= 3,
41
kHD_CRT
= 4,
42
kVD_CathodePDS
= 8,
43
kVD_MembranePDS
= 9,
44
kVD_BottomTPC
= 10,
45
kVD_TopTPC
= 11,
46
kVD_BernCRT
= 12,
47
kVD_GrenobleCRT
= 13,
48
kNDLAr_TPC
= 32,
49
kNDLAr_PDS
= 33,
50
kND_GAr
= 34
51
};
52
56
Subdetector
subdetector
{
Subdetector::kUnknown
};
57
58
DetID
() =
default
;
59
60
DetID
(
const
Subdetector
& subdetector_arg)
// NOLINT(runtime/explicit) as DetID is just an enhanced enum
61
:
subdetector
(subdetector_arg)
62
{
63
}
64
65
static
std::string
subdetector_to_string
(
const
Subdetector
&
type
);
66
static
Subdetector
string_to_subdetector
(
const
std::string& typestring);
67
};
68
69
std::ostream&
70
operator<<
(std::ostream& o, DetID
const
& det_id);
71
std::istream&
72
operator>>
(std::istream& is, DetID& det_id);
73
74
}
// namespace dunedaq::detdataformats
75
76
#include "
detail/DetID.hxx
"
77
78
#endif
// DETDATAFORMATS_INCLUDE_DETDATAFORMATS_DETID_HPP_
DetID.hxx
type
type
Definition
TriggerActivity_serialization.hpp:48
dunedaq::detdataformats
Definition
DAQEthHeader.hpp:17
dunedaq::detdataformats::operator>>
std::istream & operator>>(std::istream &is, DetID::Subdetector &t)
Read a DetID::Subdetector from a string stream.
Definition
DetID.hxx:35
dunedaq::detdataformats::operator<<
std::ostream & operator<<(std::ostream &o, DAQEthHeader const &h)
Definition
DAQEthHeader.hxx:16
dunedaq::detdataformats::DetID::subdetector_to_string
static std::string subdetector_to_string(const Subdetector &type)
Definition
DetID.hxx:60
dunedaq::detdataformats::DetID::string_to_subdetector
static Subdetector string_to_subdetector(const std::string &typestring)
Definition
DetID.hxx:95
dunedaq::detdataformats::DetID::Subdetector
Subdetector
The Subdetector enum describes the kind of source we're dealing with.
Definition
DetID.hpp:36
dunedaq::detdataformats::DetID::Subdetector::kVD_GrenobleCRT
@ kVD_GrenobleCRT
Definition
DetID.hpp:47
dunedaq::detdataformats::DetID::Subdetector::kVD_MembranePDS
@ kVD_MembranePDS
Definition
DetID.hpp:43
dunedaq::detdataformats::DetID::Subdetector::kVD_TopTPC
@ kVD_TopTPC
Definition
DetID.hpp:45
dunedaq::detdataformats::DetID::Subdetector::kUnknown
@ kUnknown
Definition
DetID.hpp:37
dunedaq::detdataformats::DetID::Subdetector::kHD_TPC
@ kHD_TPC
Definition
DetID.hpp:40
dunedaq::detdataformats::DetID::Subdetector::kND_GAr
@ kND_GAr
Definition
DetID.hpp:50
dunedaq::detdataformats::DetID::Subdetector::kVD_BottomTPC
@ kVD_BottomTPC
Definition
DetID.hpp:44
dunedaq::detdataformats::DetID::Subdetector::kNDLAr_TPC
@ kNDLAr_TPC
Definition
DetID.hpp:48
dunedaq::detdataformats::DetID::Subdetector::kNDLAr_PDS
@ kNDLAr_PDS
Definition
DetID.hpp:49
dunedaq::detdataformats::DetID::Subdetector::kVD_CathodePDS
@ kVD_CathodePDS
Definition
DetID.hpp:42
dunedaq::detdataformats::DetID::Subdetector::kHD_CRT
@ kHD_CRT
Definition
DetID.hpp:41
dunedaq::detdataformats::DetID::Subdetector::kHD_PDS
@ kHD_PDS
Definition
DetID.hpp:39
dunedaq::detdataformats::DetID::Subdetector::kVD_BernCRT
@ kVD_BernCRT
Definition
DetID.hpp:46
dunedaq::detdataformats::DetID::Subdetector::kDAQ
@ kDAQ
Definition
DetID.hpp:38
dunedaq::detdataformats::DetID::subdetector
Subdetector subdetector
The general subdetector of the source of the data.
Definition
DetID.hpp:56
dunedaq::detdataformats::DetID::DetID
DetID()=default
dunedaq::detdataformats::DetID::DetID
DetID(const Subdetector &subdetector_arg)
Definition
DetID.hpp:60
Generated on
for DUNE-DAQ by
1.16.1