Project
Loading...
Searching...
No Matches
o2::detectors::DetID Class Referenceabstract

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 GPUglobalconstexpr () ID ITS=0
 
static GPUglobalconstexpr () ID TPC
 
static GPUglobalconstexpr () ID TRD
 
static GPUglobalconstexpr () ID TOF
 
static GPUglobalconstexpr () ID PHS
 
static GPUglobalconstexpr () ID CPV
 
static GPUglobalconstexpr () ID EMC
 
static GPUglobalconstexpr () ID HMP
 
static GPUglobalconstexpr () ID MFT
 
static GPUglobalconstexpr () ID MCH
 
static GPUglobalconstexpr () ID MID
 
static GPUglobalconstexpr () ID ZDC
 
static GPUglobalconstexpr () ID FT0
 
static GPUglobalconstexpr () ID FV0
 
static GPUglobalconstexpr () ID FDD
 
static GPUglobalconstexpr () ID TST
 
static GPUglobalconstexpr () ID CTP
 
static GPUglobalconstexpr () ID FOC
 
static GPUglobalconstexpr () ID First
 
static GPUglobalconstexpr () int nDetectors
 number of defined detectors
 
static GPUglobalconstexpr () mask_t FullMask
 
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 Last = FOC
 if extra detectors added, update this !!!
 
static constexpr std::string_view NONE {"none"}
 keywork for no-detector
 
static constexpr std::string_view ALL {"all"}
 keywork for all detectors
 

Detailed Description

Static class with identifiers, bitmasks and names for ALICE detectors.

Definition at line 59 of file DetID.h.

Member Typedef Documentation

◆ ID

Detector identifiers: continuous, starting from 0.

Definition at line 63 of file DetID.h.

◆ mask_t

Definition at line 100 of file DetID.h.

Constructor & Destructor Documentation

◆ DetID() [1/2]

constexpr o2::detectors::DetID::DetID ( const char *  name)
inlineconstexpr

Definition at line 115 of file DetID.h.

◆ DetID() [2/2]

o2::detectors::DetID::DetID ( )
inline

Definition at line 125 of file DetID.h.

Member Function Documentation

◆ getDataOrigin()

static constexpr o2h::DataOrigin o2::detectors::DetID::getDataOrigin ( ID  id)
inlinestaticconstexpr

Definition at line 150 of file DetID.h.

◆ getMask()

DetID::mask_t DetID::getMask ( const std::string_view  detList)
static

detector masks from any non-alpha-num delimiter-separated list (empty if NONE is supplied)

Definition at line 42 of file DetID.cxx.

◆ getName()

static constexpr const char * o2::detectors::DetID::getName ( ID  id)
inlinestaticconstexpr

names of defined detectors

Definition at line 148 of file DetID.h.

◆ getNames()

std::string DetID::getNames ( DetID::mask_t  mask,
char  delimiter = ',' 
)
static

Definition at line 74 of file DetID.cxx.

◆ GPUd()

o2::detectors::DetID::GPUd ( ) const

◆ GPUdDefault() [1/2]

o2::detectors::DetID::GPUdDefault ( ) &

◆ GPUdDefault() [2/2]

o2::detectors::DetID::GPUdDefault ( ) const &
default

◆ GPUdi() [1/4]

constexpr o2::detectors::DetID::GPUdi ( )
inlineconstexpr

Definition at line 110 of file DetID.h.

◆ GPUdi() [2/4]

o2::detectors::DetID::GPUdi ( ) const
inline

get detector id

Definition at line 128 of file DetID.h.

◆ GPUdi() [3/4]

o2::detectors::DetID::GPUdi ( ) const
inline

get detector mask

Definition at line 130 of file DetID.h.

◆ GPUdi() [4/4]

o2::detectors::DetID::GPUdi ( )
inline

get detector origin

Definition at line 133 of file DetID.h.

◆ GPUglobalconstexpr() [1/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [2/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [3/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [4/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [5/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [6/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [7/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [8/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [9/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [10/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
staticpure virtual

◆ GPUglobalconstexpr() [11/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [12/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [13/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [14/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [15/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [16/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [17/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [18/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [19/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ GPUglobalconstexpr() [20/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

number of defined detectors

◆ GPUglobalconstexpr() [21/21]

static o2::detectors::DetID::GPUglobalconstexpr ( )
static

◆ nameToID()

static constexpr int o2::detectors::DetID::nameToID ( char const *  name,
int  id = First 
)
inlinestaticconstexpr

Definition at line 157 of file DetID.h.

◆ upgradesEnabled()

static bool o2::detectors::DetID::upgradesEnabled ( )
inlinestatic

Definition at line 165 of file DetID.h.

Member Data Documentation

◆ ALL

constexpr std::string_view o2::detectors::DetID::ALL {"all"}
staticconstexpr

keywork for all detectors

Definition at line 107 of file DetID.h.

◆ Last

constexpr DetID::ID DetID::Last = FOC
staticconstexpr

if extra detectors added, update this !!!

Definition at line 95 of file DetID.h.

◆ NONE

constexpr std::string_view o2::detectors::DetID::NONE {"none"}
staticconstexpr

keywork for no-detector

Definition at line 106 of file DetID.h.


The documentation for this class was generated from the following files: