Skip to content

Commit 44be0ef

Browse files
committed
GPU Display: Don't draw TOF and ITS hits multiple times
1 parent 3795e89 commit 44be0ef

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎GPU/GPUTracking/display/GPUDisplay.cxx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,12 +465,14 @@ void GPUDisplay::DrawGLScene_drawCommands()
465465
if (mCfgL.drawTOF) {
466466
SetColorTOF();
467467
mBackend->pointSizeFactor(2);
468-
LOOP_SECTOR LOOP_COLLISION_COL(drawVertices(mGlDLPoints[0][tTOFCLUSTER][0], GPUDisplayBackend::POINTS));
468+
// LOOP_SECTOR LOOP_COLLISION_COL(drawVertices(mGlDLPoints[iSector][tTOFCLUSTER][iCol], GPUDisplayBackend::POINTS));
469+
drawVertices(mGlDLPoints[0][tTOFCLUSTER][0], GPUDisplayBackend::POINTS);
469470
mBackend->pointSizeFactor(1);
470471
}
471472
if (mCfgL.drawITS) {
472473
SetColorITS();
473-
LOOP_SECTOR LOOP_COLLISION_COL(drawVertices(mGlDLPoints[0][tITSCLUSTER][0], GPUDisplayBackend::POINTS));
474+
// LOOP_SECTOR LOOP_COLLISION_COL(drawVertices(mGlDLPoints[iSector][tITSCLUSTER][iCol], GPUDisplayBackend::POINTS));
475+
drawVertices(mGlDLPoints[0][tITSCLUSTER][0], GPUDisplayBackend::POINTS);
474476
}
475477
if (mCfgL.drawTPC) {
476478
SetColorClusters();

‎GPU/GPUTracking/display/render/GPUDisplayDraw.cxx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,7 @@ size_t GPUDisplay::DrawGLScene_updateVertexList()
973973
for (int32_t i = N_POINTS_TYPE_TPC + N_POINTS_TYPE_TRD + N_POINTS_TYPE_TOF; i < N_POINTS_TYPE_TPC + N_POINTS_TYPE_TRD + N_POINTS_TYPE_TOF + N_POINTS_TYPE_ITS; i++) {
974974
for (int32_t iCol = 0; iCol < mNCollissions; iCol++) {
975975
mGlDLPoints[iSector][i][iCol] = DrawSpacePointsITS(iSector, i, iCol);
976+
break; // TODO: Only collision 0 filled for now
976977
}
977978
}
978979
break; // TODO: Only sector 0 filled for now
@@ -997,6 +998,7 @@ size_t GPUDisplay::DrawGLScene_updateVertexList()
997998
for (int32_t i = N_POINTS_TYPE_TPC + N_POINTS_TYPE_TRD; i < N_POINTS_TYPE_TPC + N_POINTS_TYPE_TRD + N_POINTS_TYPE_TOF; i++) {
998999
for (int32_t iCol = 0; iCol < mNCollissions; iCol++) {
9991000
mGlDLPoints[iSector][i][iCol] = DrawSpacePointsTOF(iSector, i, iCol);
1001+
break; // TODO: Only collision 0 filled for now
10001002
}
10011003
}
10021004
break; // TODO: Only sector 0 filled for now

0 commit comments

Comments
 (0)