85GPUhdi()
int IndexTableUtils<
nLayers>::getPhiBinIndex(const
float currentPhi)
const
87 return (currentPhi * mInversePhiBinSize);
91GPUhdi()
int IndexTableUtils<
nLayers>::getBinIndex(const
int zIndex, const
int phiIndex)
const
93 return o2::gpu::GPUCommonMath::Min(phiIndex * mNzBins + zIndex, (mNzBins * mNphiBins) - 1);
97GPUhdi()
int IndexTableUtils<
nLayers>::countRowSelectedBins(const
int* indexTable, const
int phiBinIndex,
98 const
int minZBinIndex, const
int maxZBinIndex)
const
100 const int firstBinIndex{getBinIndex(minZBinIndex, phiBinIndex)};
101 const int maxBinIndex{firstBinIndex + maxZBinIndex - minZBinIndex + 1};
103 return indexTable[maxBinIndex] - indexTable[firstBinIndex];
106template <
int nLayers>
109 printf(
"NzBins: %d, NphiBins: %d, InversePhiBinSize: %f\n", mNzBins, mNphiBins, mInversePhiBinSize);
110 for (
int iLayer{0}; iLayer <
nLayers; ++iLayer) {
111 printf(
"Layer %d: Z: %f, InverseZBinSize: %f\n", iLayer, mLayerZ[iLayer], mInverseZBinSize[iLayer]);
115template <
int nLayers>
130 return int4{-1, -1, -1, -1};
134 utils.getPhiBinIndex(math_utils::getNormalizedPhi(phiRangeMin)),
136 utils.getPhiBinIndex(math_utils::getNormalizedPhi(phiRangeMax))};