Skip to content

Commit 9cc0317

Browse files
committed
GPU: Add looperFollowMode option
1 parent d5828f9 commit 9cc0317

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fractio
147147
AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128")
148148
AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking (prolong tracks to adjacent sectors to find short segments)")
149149
AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit (1: attachment, 2: propagation, 4: loop following)")
150+
AddOptionRTC(looperFollowMode, uint8_t, 1, "", 0, "0 = simple, 1 = advances, for disabling use disableRefitAttachment = 4")
150151
AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression (0 = no, 1 = strategy A, 2 = strategy B)")
151152
AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging")
152153
AddOptionRTC(compressionTypeMask, uint8_t, o2::gpu::GPUSettings::CompressionFull, "", 0, "TPC Compression mode bits (1=truncate charge/width LSB, 2=differences, 4=track-model)")

GPU/GPUTracking/Merger/GPUTPCGMTrackParam.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -795,10 +795,10 @@ GPUdii() void GPUTPCGMTrackParam::PropagateLooper(const GPUTPCGMMerger& GPUrestr
795795

796796
GPUTPCGMLoopData& data = merger.LoopData()[loopIdx];
797797
prop.SetTrack(&data.param, data.alpha);
798-
if (false) {
799-
data.param.AttachClustersLooper(merger, data.sector, data.row, data.track, data.outwards, prop);
800-
} else {
798+
if (merger.Param().rec.tpc.looperFollowMode == 1) {
801799
data.param.AttachClustersLooperFollow(merger, prop, data.sector, data.row, data.track, data.outwards);
800+
} else {
801+
data.param.AttachClustersLooper(merger, data.sector, data.row, data.track, data.outwards, prop);
802802
}
803803
}
804804

0 commit comments

Comments
 (0)