Project
Loading...
Searching...
No Matches
o2::iotof::ClusterInfo Struct Reference

Compact encoding for ALICE3 IOTOF cluster parameters inside a single 64-bit word. More...

#include <Cluster.h>

Public Member Functions

constexpr ClusterInfo ()=default
 
constexpr ClusterInfo (uint64_t d)
 
constexpr uint32_t getRow () const
 
constexpr uint32_t getCol () const
 
constexpr uint8_t getRowSpan () const
 
constexpr uint8_t getColSpan () const
 
constexpr uint32_t getPattern () const
 
constexpr uint32_t getTopology () const
 
constexpr void setRow (uint32_t r)
 
constexpr void setCol (uint32_t c)
 
constexpr void setRowSpan (uint8_t rs)
 
constexpr void setColSpan (uint8_t cs)
 
constexpr void setPattern (uint32_t p)
 
constexpr void setTopology (uint32_t t)
 
 ClassDefNV (ClusterInfo, 1)
 

Static Public Member Functions

static constexpr uint64_t pack (uint32_t row, uint32_t col, uint8_t rowSpan, uint8_t colSpan, uint32_t pattern, uint32_t topology)
 

Public Attributes

uint64_t data {0}
 

Static Public Attributes

static constexpr int NBitsRow = 9
 
static constexpr int NBitsCol = 8
 
static constexpr int NBitsRowSpan = 4
 
static constexpr int NBitsColSpan = 4
 
static constexpr int NBitsPattern = 16
 
static constexpr int NBitsTopology = 11
 
static constexpr int ShiftRow = 0
 
static constexpr int ShiftCol = ShiftRow + NBitsRow
 
static constexpr int ShiftRowSpan = ShiftCol + NBitsCol
 
static constexpr int ShiftColSpan = ShiftRowSpan + NBitsRowSpan
 
static constexpr int ShiftPattern = ShiftColSpan + NBitsColSpan
 
static constexpr int ShiftTopology = ShiftPattern + NBitsPattern
 
static constexpr uint64_t MaskRow = (1ULL << NBitsRow) - 1
 
static constexpr uint64_t MaskCol = (1ULL << NBitsCol) - 1
 
static constexpr uint64_t MaskRowSpan = (1ULL << NBitsRowSpan) - 1
 
static constexpr uint64_t MaskColSpan = (1ULL << NBitsColSpan) - 1
 
static constexpr uint64_t MaskPattern = (1ULL << NBitsPattern) - 1
 
static constexpr uint64_t MaskTopology = (1ULL << NBitsTopology) - 1
 

Detailed Description

Compact encoding for ALICE3 IOTOF cluster parameters inside a single 64-bit word.

Definition at line 30 of file Cluster.h.

Constructor & Destructor Documentation

◆ ClusterInfo() [1/2]

constexpr o2::iotof::ClusterInfo::ClusterInfo ( )
constexprdefault

◆ ClusterInfo() [2/2]

constexpr o2::iotof::ClusterInfo::ClusterInfo ( uint64_t  d)
inlineconstexpr

Definition at line 59 of file Cluster.h.

Member Function Documentation

◆ ClassDefNV()

o2::iotof::ClusterInfo::ClassDefNV ( ClusterInfo  ,
1   
)

◆ getCol()

constexpr uint32_t o2::iotof::ClusterInfo::getCol ( ) const
inlineconstexpr

Definition at line 75 of file Cluster.h.

◆ getColSpan()

constexpr uint8_t o2::iotof::ClusterInfo::getColSpan ( ) const
inlineconstexpr

Definition at line 77 of file Cluster.h.

◆ getPattern()

constexpr uint32_t o2::iotof::ClusterInfo::getPattern ( ) const
inlineconstexpr

Definition at line 78 of file Cluster.h.

◆ getRow()

constexpr uint32_t o2::iotof::ClusterInfo::getRow ( ) const
inlineconstexpr

Definition at line 74 of file Cluster.h.

◆ getRowSpan()

constexpr uint8_t o2::iotof::ClusterInfo::getRowSpan ( ) const
inlineconstexpr

Definition at line 76 of file Cluster.h.

◆ getTopology()

constexpr uint32_t o2::iotof::ClusterInfo::getTopology ( ) const
inlineconstexpr

Definition at line 79 of file Cluster.h.

◆ pack()

static constexpr uint64_t o2::iotof::ClusterInfo::pack ( uint32_t  row,
uint32_t  col,
uint8_t  rowSpan,
uint8_t  colSpan,
uint32_t  pattern,
uint32_t  topology 
)
inlinestaticconstexpr

Definition at line 62 of file Cluster.h.

◆ setCol()

constexpr void o2::iotof::ClusterInfo::setCol ( uint32_t  c)
inlineconstexpr

Definition at line 86 of file Cluster.h.

◆ setColSpan()

constexpr void o2::iotof::ClusterInfo::setColSpan ( uint8_t  cs)
inlineconstexpr

Definition at line 94 of file Cluster.h.

◆ setPattern()

constexpr void o2::iotof::ClusterInfo::setPattern ( uint32_t  p)
inlineconstexpr

Definition at line 98 of file Cluster.h.

◆ setRow()

constexpr void o2::iotof::ClusterInfo::setRow ( uint32_t  r)
inlineconstexpr

Definition at line 82 of file Cluster.h.

◆ setRowSpan()

constexpr void o2::iotof::ClusterInfo::setRowSpan ( uint8_t  rs)
inlineconstexpr

Definition at line 90 of file Cluster.h.

◆ setTopology()

constexpr void o2::iotof::ClusterInfo::setTopology ( uint32_t  t)
inlineconstexpr

Definition at line 102 of file Cluster.h.

Member Data Documentation

◆ data

uint64_t o2::iotof::ClusterInfo::data {0}

Definition at line 55 of file Cluster.h.

◆ MaskCol

constexpr uint64_t o2::iotof::ClusterInfo::MaskCol = (1ULL << NBitsCol) - 1
staticconstexpr

Definition at line 49 of file Cluster.h.

◆ MaskColSpan

constexpr uint64_t o2::iotof::ClusterInfo::MaskColSpan = (1ULL << NBitsColSpan) - 1
staticconstexpr

Definition at line 51 of file Cluster.h.

◆ MaskPattern

constexpr uint64_t o2::iotof::ClusterInfo::MaskPattern = (1ULL << NBitsPattern) - 1
staticconstexpr

Definition at line 52 of file Cluster.h.

◆ MaskRow

constexpr uint64_t o2::iotof::ClusterInfo::MaskRow = (1ULL << NBitsRow) - 1
staticconstexpr

Definition at line 48 of file Cluster.h.

◆ MaskRowSpan

constexpr uint64_t o2::iotof::ClusterInfo::MaskRowSpan = (1ULL << NBitsRowSpan) - 1
staticconstexpr

Definition at line 50 of file Cluster.h.

◆ MaskTopology

constexpr uint64_t o2::iotof::ClusterInfo::MaskTopology = (1ULL << NBitsTopology) - 1
staticconstexpr

Definition at line 53 of file Cluster.h.

◆ NBitsCol

constexpr int o2::iotof::ClusterInfo::NBitsCol = 8
staticconstexpr

Definition at line 33 of file Cluster.h.

◆ NBitsColSpan

constexpr int o2::iotof::ClusterInfo::NBitsColSpan = 4
staticconstexpr

Definition at line 35 of file Cluster.h.

◆ NBitsPattern

constexpr int o2::iotof::ClusterInfo::NBitsPattern = 16
staticconstexpr

Definition at line 36 of file Cluster.h.

◆ NBitsRow

constexpr int o2::iotof::ClusterInfo::NBitsRow = 9
staticconstexpr

Definition at line 32 of file Cluster.h.

◆ NBitsRowSpan

constexpr int o2::iotof::ClusterInfo::NBitsRowSpan = 4
staticconstexpr

Definition at line 34 of file Cluster.h.

◆ NBitsTopology

constexpr int o2::iotof::ClusterInfo::NBitsTopology = 11
staticconstexpr

Definition at line 37 of file Cluster.h.

◆ ShiftCol

constexpr int o2::iotof::ClusterInfo::ShiftCol = ShiftRow + NBitsRow
staticconstexpr

Definition at line 41 of file Cluster.h.

◆ ShiftColSpan

constexpr int o2::iotof::ClusterInfo::ShiftColSpan = ShiftRowSpan + NBitsRowSpan
staticconstexpr

Definition at line 43 of file Cluster.h.

◆ ShiftPattern

constexpr int o2::iotof::ClusterInfo::ShiftPattern = ShiftColSpan + NBitsColSpan
staticconstexpr

Definition at line 44 of file Cluster.h.

◆ ShiftRow

constexpr int o2::iotof::ClusterInfo::ShiftRow = 0
staticconstexpr

Definition at line 40 of file Cluster.h.

◆ ShiftRowSpan

constexpr int o2::iotof::ClusterInfo::ShiftRowSpan = ShiftCol + NBitsCol
staticconstexpr

Definition at line 42 of file Cluster.h.

◆ ShiftTopology

constexpr int o2::iotof::ClusterInfo::ShiftTopology = ShiftPattern + NBitsPattern
staticconstexpr

Definition at line 45 of file Cluster.h.


The documentation for this struct was generated from the following file: