![]() |
Project
|
Static class with identifiers, bitmasks and names for ALICE detectors. More...
#include <DetID.h>
Public Types | |
typedef int | ID |
Detector identifiers: continuous, starting from 0. | |
typedef o2::gpu::gpustd::bitset< 32 > | mask_t |
Public Member Functions | |
constexpr | GPUdi () DetID(ID id) |
constexpr | DetID (const char *name) |
GPUdDefault () DetID(const DetID &src)=default | |
GPUdDefault () DetID &operator | |
DetID () | |
GPUdi () ID getID() const | |
get detector id | |
GPUdi () mask_t getMask() const | |
get detector mask | |
GPUdi () o2h | |
get detector origin | |
GPUd () static const expr mask_t getMask(ID id) | |
Static Public Member Functions | |
static constexpr const char * | getName (ID id) |
names of defined detectors | |
static constexpr o2h::DataOrigin | getDataOrigin (ID id) |
static mask_t | getMask (const std::string_view detList) |
detector masks from any non-alpha-num delimiter-separated list (empty if NONE is supplied) | |
static std::string | getNames (mask_t mask, char delimiter=',') |
static constexpr int | nameToID (char const *name, int id=First) |
static bool | upgradesEnabled () |
Static Public Attributes | |
static constexpr ID | ITS = 0 |
static constexpr ID | TPC = 1 |
static constexpr ID | TRD = 2 |
static constexpr ID | TOF = 3 |
static constexpr ID | PHS = 4 |
static constexpr ID | CPV = 5 |
static constexpr ID | EMC = 6 |
static constexpr ID | HMP = 7 |
static constexpr ID | MFT = 8 |
static constexpr ID | MCH = 9 |
static constexpr ID | MID = 10 |
static constexpr ID | ZDC = 11 |
static constexpr ID | FT0 = 12 |
static constexpr ID | FV0 = 13 |
static constexpr ID | FDD = 14 |
static constexpr ID | TST = 15 |
static constexpr ID | CTP = 16 |
static constexpr ID | FOC = 17 |
static constexpr ID | Last = FOC |
if extra detectors added, update this !!! | |
static constexpr ID | First = ITS |
static constexpr int | nDetectors = Last + 1 |
number of defined detectors | |
static constexpr mask_t | FullMask = (0x1u << nDetectors) - 1 |
static constexpr std::string_view | NONE {"none"} |
keywork for no-detector | |
static constexpr std::string_view | ALL {"all"} |
keywork for all detectors | |
Static class with identifiers, bitmasks and names for ALICE detectors.
typedef int o2::detectors::DetID::ID |
typedef o2::gpu::gpustd::bitset<32> o2::detectors::DetID::mask_t |
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
static |
|
static |
o2::detectors::DetID::GPUd | ( | ) | const |
o2::detectors::DetID::GPUdDefault | ( | ) | & |
|
default |
|
inline |
|
inline |
|
inlinestatic |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |