Project
Loading...
Searching...
No Matches
o2::dataformats::GlobalTrackID Class Reference

#include <GlobalTrackID.h>

Inherits o2::dataformats::AbstractRef< 25, 5, 2 >.

Inherited by o2::dataformats::VtxTrackIndex.

Public Types

enum  Source : uint8_t {
  ITS , TPC , TRD , TOF ,
  PHS , CPV , EMC , HMP ,
  MFT , MCH , MID , ZDC ,
  FT0 , FV0 , FDD , ITSTPC ,
  TPCTOF , TPCTRD , MFTMCH , ITSTPCTRD ,
  ITSTPCTOF , TPCTRDTOF , MFTMCHMID , ITSTPCTRDTOF ,
  ITSAB , CTP , MCHMID , NSources
}
 
using DetID = o2::detectors::DetID
 
typedef o2::gpu::gpustd::bitset< 32 > mask_t
 
- Public Types inherited from o2::dataformats::AbstractRef< 25, 5, 2 >
using Base_t = decltype(AbstractRef::MVAR< NBIdx+NBSrc+NBFlg >())
 
using Idx_t = decltype(AbstractRef::MVAR< NBIdx >())
 
using Src_t = decltype(AbstractRef::MVAR< NBSrc >())
 
using Flg_t = decltype(AbstractRef::MVAR< NBFlg >())
 

Public Member Functions

GPUdi() static const expr DetID GPUdi() static const expr DetID GPUdi () static bool includesDet(DetID id
 
 GPUdi () static bool isTrackSource(int s)
 
 GPUdi () auto getSourceDetectorsMask() const
 
 GPUdi () bool includesDet(DetID id) const
 
auto getSourceName () const
 
 GPUd () static const expr mask_t getSourceMask(int s)
 
 GPUdi () mask_t getSourceMask() const
 
 GPUdi () static bool includesSource(int s
 
 GPUdi () operator int() const
 
std::string asString () const
 
void print () const
 
 ClassDefNV (GlobalTrackID, 3)
 
- Public Member Functions inherited from o2::dataformats::AbstractRef< 25, 5, 2 >
 GPUdDefault () AbstractRef()=default
 
 GPUdi () AbstractRef(Idx_t idx
 
 GPUdi () AbstractRef(Base_t raw)
 
 GPUdi () Idx_t getIndex() const
 
 GPUdi () void setIndex(Idx_t idx)
 
 GPUdi () Src_t getSource() const
 
 GPUdi () void setSource(Src_t src)
 
 GPUdi () Flg_t getFlags() const
 
 GPUdi () void setFlags(Flg_t f)
 
 GPUdi () bool testBit(int i) const
 
 GPUdi () void setBit(int i)
 
 GPUdi () void resetBit(int i)
 
 GPUdi () void set(Idx_t idx
 
 GPUdi () Base_t getRaw() const
 
 GPUdi () void setRaw(Base_t v)
 
 GPUdi () Base_t getRawWOFlags() const
 
 GPUdi () bool isIndexSet() const
 
 GPUdi () bool isSourceSet() const
 
 GPUdi () bool operator
 
 ClassDefNV (AbstractRef, 1)
 

Static Public Member Functions

static auto getSourceName (int s)
 
static mask_t getSourcesMask (const std::string_view srcList)
 
static std::string getSourcesNames (mask_t srcm)
 
- Static Public Member Functions inherited from o2::dataformats::AbstractRef< 25, 5, 2 >
static constexpr int NBitsIndex ()
 
static constexpr int NBitsSource ()
 
static constexpr int NBitsFlags ()
 

Public Attributes

GPUdi() static const expr DetID GPUdi() static const expr DetID GlobalTrackID::mask_t srcm
 
mask_t srcm { return srcm[s]
 
- Public Attributes inherited from o2::dataformats::AbstractRef< 25, 5, 2 >
Src_t src
 

Static Public Attributes

static constexpr std::string_view NONE {"none"}
 keywork for no sources
 
static constexpr std::string_view ALL {"all"}
 keywork for all sources
 
static constexpr mask_t MASK_ALL = (1u << NSources) - 1
 
static constexpr mask_t MASK_NONE = 0
 
- Static Public Attributes inherited from o2::dataformats::AbstractRef< 25, 5, 2 >
static constexpr Base_t BaseMask
 
static constexpr Idx_t IdxMask
 
static constexpr Src_t SrcMask
 
static constexpr Flg_t FlgMask
 

Detailed Description

Definition at line 35 of file GlobalTrackID.h.

Member Typedef Documentation

◆ DetID

◆ mask_t

Member Enumeration Documentation

◆ Source

Enumerator
ITS 
TPC 
TRD 
TOF 
PHS 
CPV 
EMC 
HMP 
MFT 
MCH 
MID 
ZDC 
FT0 
FV0 
FDD 
ITSTPC 
TPCTOF 
TPCTRD 
MFTMCH 
ITSTPCTRD 
ITSTPCTOF 
TPCTRDTOF 
MFTMCHMID 
ITSTPCTRDTOF 
ITSAB 
CTP 
MCHMID 
NSources 

Definition at line 40 of file GlobalTrackID.h.

Member Function Documentation

◆ asString()

std::string GlobalTrackID::asString ( ) const

Definition at line 25 of file GlobalTrackID.cxx.

◆ ClassDefNV()

o2::dataformats::GlobalTrackID::ClassDefNV ( GlobalTrackID  ,
 
)

◆ getSourceName() [1/2]

auto o2::dataformats::GlobalTrackID::getSourceName ( ) const
inline

Definition at line 100 of file GlobalTrackID.h.

◆ getSourceName() [2/2]

static auto o2::dataformats::GlobalTrackID::getSourceName ( int  s)
inlinestatic

Definition at line 94 of file GlobalTrackID.h.

◆ getSourcesMask()

GlobalTrackID::mask_t GlobalTrackID::getSourcesMask ( const std::string_view  srcList)
static

Definition at line 31 of file GlobalTrackID.cxx.

◆ getSourcesNames()

std::string GlobalTrackID::getSourcesNames ( GlobalTrackID::mask_t  srcm)
static

Definition at line 71 of file GlobalTrackID.cxx.

◆ GPUd()

o2::dataformats::GlobalTrackID::GPUd ( ) const

◆ GPUdi() [1/7]

o2::dataformats::GlobalTrackID::GPUdi ( ) const
inline

Definition at line 89 of file GlobalTrackID.h.

◆ GPUdi() [2/7]

o2::dataformats::GlobalTrackID::GPUdi ( ) const
inline

Definition at line 90 of file GlobalTrackID.h.

◆ GPUdi() [3/7]

o2::dataformats::GlobalTrackID::GPUdi ( ) const
inline

Definition at line 103 of file GlobalTrackID.h.

◆ GPUdi() [4/7]

o2::dataformats::GlobalTrackID::GPUdi ( ) const
inline

Definition at line 105 of file GlobalTrackID.h.

◆ GPUdi() [5/7]

GPUdi() static const expr DetID GPUdi() static const expr DetID o2::dataformats::GlobalTrackID::GPUdi ( )

◆ GPUdi() [6/7]

o2::dataformats::GlobalTrackID::GPUdi ( )

◆ GPUdi() [7/7]

o2::dataformats::GlobalTrackID::GPUdi ( )

◆ print()

void GlobalTrackID::print ( ) const

Definition at line 66 of file GlobalTrackID.cxx.

Member Data Documentation

◆ ALL

constexpr std::string_view o2::dataformats::GlobalTrackID::ALL {"all"}
staticconstexpr

keywork for all sources

Definition at line 79 of file GlobalTrackID.h.

◆ MASK_ALL

constexpr mask_t o2::dataformats::GlobalTrackID::MASK_ALL = (1u << NSources) - 1
staticconstexpr

Definition at line 81 of file GlobalTrackID.h.

◆ MASK_NONE

constexpr mask_t o2::dataformats::GlobalTrackID::MASK_NONE = 0
staticconstexpr

Definition at line 82 of file GlobalTrackID.h.

◆ NONE

constexpr std::string_view o2::dataformats::GlobalTrackID::NONE {"none"}
staticconstexpr

keywork for no sources

Definition at line 78 of file GlobalTrackID.h.

◆ srcm [1/2]

GPUdi() static const expr DetID GPUdi() static const expr DetID GlobalTrackID::mask_t o2::dataformats::GlobalTrackID::srcm

Definition at line 87 of file GlobalTrackID.h.

◆ srcm [2/2]

mask_t o2::dataformats::GlobalTrackID::srcm { return srcm[s]

Definition at line 104 of file GlobalTrackID.h.


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