Project
Loading...
Searching...
No Matches
o2::itsmft::IndexTableUtilsCore Class Reference

#include <IndexTableUtils.h>

Public Member Functions

void setIndexTableParams (IndexTableCoordType coordType, int nRowBins, int nColBins, float rowMin, float rowMax, gsl::span< const float > layerColMin, gsl::span< const float > layerColMax)
 
void setIndexTableParams (IndexTableCoordType coordType, int nRowBins, int nColBins, float rowMin, float rowMax, gsl::span< const float > layerColHalfExtent)
 
 GPUhdi () float getInverseColCoordinate(const int layerIndex) const
 
 GPUhdi () int getColBinIndex(const int layerIndex
 
 GPUhdi () int getRowBinIndex(const float rowCoordinate) const
 
 GPUhdi () int getBinIndex(const int colIndex
 
 GPUhdi () int countRowSelectedBins(const int *indexTable
 
void print () const
 
 GPUhdi () int getNcolBins() const
 
 GPUhdi () int getNrowBins() const
 
 GPUhdi () float getLayerColHalfExtent(int i) const
 
 GPUhdi () float getLayerColMin(int i) const
 
 GPUhdi () float getLayerColMax(int i) const
 
 GPUhdi () void setNcolBins(const int colBins)
 
 GPUhdi () void setNrowBins(const int rowBins)
 
 GPUhdi () IndexTableCoordType getCoordType() const
 
 GPUhdi () float getRowOrigin() const
 
 GPUhdi () float getRowCoordinateSpan() const
 

Public Attributes

const float colCoordinate const
 
const int rowIndex const
 
const int rowBinIndex
 
const int const int minColBinIndex
 
const int const int const int maxColBinIndex const
 
const int maxBinIndex {firstBinIndex + maxColBinIndex - minColBinIndex + 1}
 
return indexTable[maxBinIndex] indexTable [firstBinIndex]
 

Static Public Attributes

static constexpr int MaxLayers = static_cast<int>(o2::itsmft::tracking::MaxLayoutSurfaces)
 

Detailed Description

Row/column LUT helper. Charts have periodic phi rows and a descriptor-bounded linear column. MaxLayoutSurfaces storage keeps GPUhdi() access device-portable; callers must not query unpopulated runtime-plan positions.

Definition at line 42 of file IndexTableUtils.h.

Member Function Documentation

◆ GPUhdi() [1/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const
inline

Definition at line 87 of file IndexTableUtils.h.

◆ GPUhdi() [2/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const
inline

Definition at line 120 of file IndexTableUtils.h.

◆ GPUhdi() [3/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const
inline

Definition at line 122 of file IndexTableUtils.h.

◆ GPUhdi() [4/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const
inline

Definition at line 121 of file IndexTableUtils.h.

◆ GPUhdi() [5/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const
inline

Definition at line 130 of file IndexTableUtils.h.

◆ GPUhdi() [6/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const
inline

Row origin/span, needed alongside the other getters to detect a configuration mismatch between a freshly bound IndexTableUtils and one already owned by a TimeFrame (LUT-reuse invariant); not test-only.

Definition at line 129 of file IndexTableUtils.h.

◆ GPUhdi() [7/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const
inline

Definition at line 125 of file IndexTableUtils.h.

◆ GPUhdi() [8/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const

◆ GPUhdi() [9/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const

◆ GPUhdi() [10/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const

◆ GPUhdi() [11/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const
inline

Definition at line 118 of file IndexTableUtils.h.

◆ GPUhdi() [12/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const
inline

Definition at line 119 of file IndexTableUtils.h.

◆ GPUhdi() [13/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const
inline

Definition at line 97 of file IndexTableUtils.h.

◆ GPUhdi() [14/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const
inline

Definition at line 123 of file IndexTableUtils.h.

◆ GPUhdi() [15/15]

o2::itsmft::IndexTableUtilsCore::GPUhdi ( ) const
inline

Definition at line 124 of file IndexTableUtils.h.

◆ print()

void o2::itsmft::IndexTableUtilsCore::print ( ) const
inline

Definition at line 144 of file IndexTableUtils.h.

◆ setIndexTableParams() [1/2]

void o2::itsmft::IndexTableUtilsCore::setIndexTableParams ( IndexTableCoordType  coordType,
int  nRowBins,
int  nColBins,
float  rowMin,
float  rowMax,
gsl::span< const float >  layerColHalfExtent 
)
inline

Definition at line 71 of file IndexTableUtils.h.

◆ setIndexTableParams() [2/2]

void o2::itsmft::IndexTableUtilsCore::setIndexTableParams ( IndexTableCoordType  coordType,
int  nRowBins,
int  nColBins,
float  rowMin,
float  rowMax,
gsl::span< const float >  layerColMin,
gsl::span< const float >  layerColMax 
)
inline

Configure LUT geometry with a row interval and per-surface column intervals. layerColHalfExtent may be shorter than MaxLayers (the common case – real detectors have far fewer than 32 layers); anything beyond its size is left at its previous value, exactly as it would be untouched by a caller that never re-populates it.

Definition at line 52 of file IndexTableUtils.h.

Member Data Documentation

◆ const [1/3]

const float colCoordinate o2::itsmft::IndexTableUtilsCore::const
Initial value:
{
return (colCoordinate - mLayerColMin[layerIndex]) * mInverseColBinSize[layerIndex]
const int layerIndex

Definition at line 92 of file IndexTableUtils.h.

◆ const [2/3]

const int rowIndex o2::itsmft::IndexTableUtilsCore::const
Initial value:
{
return o2::gpu::GPUCommonMath::Min(rowIndex * mNcolBins + colIndex, (mNcolBins * mNrowBins) - 1)

Definition at line 102 of file IndexTableUtils.h.

◆ const [3/3]

const int const int const int maxColBinIndex o2::itsmft::IndexTableUtilsCore::const
Initial value:
{
const int firstBinIndex{getBinIndex(minColBinIndex, rowBinIndex)}

Definition at line 108 of file IndexTableUtils.h.

◆ indexTable

return indexTable [maxBinIndex] o2::itsmft::IndexTableUtilsCore::indexTable[firstBinIndex]

Definition at line 113 of file IndexTableUtils.h.

◆ maxBinIndex

const int o2::itsmft::IndexTableUtilsCore::maxBinIndex {firstBinIndex + maxColBinIndex - minColBinIndex + 1}

Definition at line 111 of file IndexTableUtils.h.

◆ MaxLayers

constexpr int o2::itsmft::IndexTableUtilsCore::MaxLayers = static_cast<int>(o2::itsmft::tracking::MaxLayoutSurfaces)
staticconstexpr

Definition at line 45 of file IndexTableUtils.h.

◆ minColBinIndex

const int const int o2::itsmft::IndexTableUtilsCore::minColBinIndex

Definition at line 108 of file IndexTableUtils.h.

◆ rowBinIndex

const int o2::itsmft::IndexTableUtilsCore::rowBinIndex

Definition at line 107 of file IndexTableUtils.h.


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