@@ -265,22 +265,20 @@ GPUdii() int32_t GPUTPCSliceData::InitFromClusterData(int32_t nBlocks, int32_t n
265265 for (uint32_t i = iThread; i < NumberOfClusters; i += nThreads) {
266266 UpdateMinMaxYZ (yMin, yMax, zMin, zMax, YZData[RowOffset + i].x , YZData[RowOffset + i].y );
267267 }
268+ } else if (mem->param .par .earlyTpcTransform ) { // Early transform case with ClusterNative present
269+ for (uint32_t i = iThread; i < NumberOfClusters; i += nThreads) {
270+ float2 tmp;
271+ tmp.x = mClusterData [RowOffset + i].y ;
272+ tmp.y = mClusterData [RowOffset + i].z ;
273+ UpdateMinMaxYZ (yMin, yMax, zMin, zMax, tmp.x , tmp.y );
274+ YZData[RowOffset + i] = tmp;
275+ }
268276 } else {
269- if (mem->param .par .earlyTpcTransform ) { // Early transform case with ClusterNative present
270- for (uint32_t i = iThread; i < NumberOfClusters; i += nThreads) {
271- float2 tmp;
272- tmp.x = mClusterData [RowOffset + i].y ;
273- tmp.y = mClusterData [RowOffset + i].z ;
274- UpdateMinMaxYZ (yMin, yMax, zMin, zMax, tmp.x , tmp.y );
275- YZData[RowOffset + i] = tmp;
276- }
277- } else {
278- for (uint32_t i = iThread; i < NumberOfClusters; i += nThreads) {
279- float x, y, z;
280- GPUTPCConvertImpl::convert (*mem, iSlice, rowIndex, mem->ioPtrs .clustersNative ->clusters [iSlice][rowIndex][i].getPad (), mem->ioPtrs .clustersNative ->clusters [iSlice][rowIndex][i].getTime (), x, y, z);
281- UpdateMinMaxYZ (yMin, yMax, zMin, zMax, y, z);
282- YZData[RowOffset + i] = CAMath::MakeFloat2 (y, z);
283- }
277+ for (uint32_t i = iThread; i < NumberOfClusters; i += nThreads) {
278+ float x, y, z;
279+ GPUTPCConvertImpl::convert (*mem, iSlice, rowIndex, mem->ioPtrs .clustersNative ->clusters [iSlice][rowIndex][i].getPad (), mem->ioPtrs .clustersNative ->clusters [iSlice][rowIndex][i].getTime (), x, y, z);
280+ UpdateMinMaxYZ (yMin, yMax, zMin, zMax, y, z);
281+ YZData[RowOffset + i] = CAMath::MakeFloat2 (y, z);
284282 }
285283 }
286284
0 commit comments