19#if !defined(assert) && !defined(GPUCA_GPUCODE)
56 mYMax = mYMin + mNy * sy;
57 mZMax = mZMin + mNz * sz;
63 const int32_t yBin =
static_cast<int32_t
>((Y - mYMin) * mStepYInv);
64 const int32_t zBin =
static_cast<int32_t
>((Z - mZMin) * mStepZInv);
65 const int32_t bin = zBin * mNy + yBin;
68 assert(bin <
static_cast<int32_t
>(mN));
76 const int32_t yBin =
static_cast<int32_t
>((Y - mYMin) * mStepYInv);
77 const int32_t zBin =
static_cast<int32_t
>((Z - mZMin) * mStepZInv);
78 int32_t bin = zBin * mNy + yBin;
79 if (bin >=
static_cast<int32_t
>(mN)) {
88GPUd()
void GPUTPCGrid::GetBin(
float Y,
float Z, int32_t* const bY, int32_t* const bZ)
const
92 int32_t bbY = (int32_t)((Y - mYMin) * mStepYInv);
93 int32_t bbZ = (int32_t)((Z - mZMin) * mStepZInv);
95 if (bbY >= (int32_t)mNy) {
101 if (bbZ >= (int32_t)mNz) {
112GPUd()
void GPUTPCGrid::GetBinArea(
float Y,
float Z,
float dy,
float dz, int32_t& bin, int32_t& ny, int32_t& nz)
const
115 int32_t by = (int32_t)((Y - dy) * mStepYInv);
116 ny = (int32_t)((Y + dy) * mStepYInv) - by;
118 int32_t bz = (int32_t)((Z - dz) * mStepZInv);
119 nz = (int32_t)((Z + dz) * mStepZInv) - bz;
120 if (by >= (int32_t)mNy) {
126 if (bz >= (int32_t)mNz) {
132 if (by + ny >= (int32_t)mNy) {
135 if (bz + nz >= (int32_t)mNz) {
#define GPUCA_MIN_BIN_SIZE
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)