Skip to content

Commit 9571f84

Browse files
committed
GPU: Add looperFollowMode option
1 parent 806ac16 commit 9571f84

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
@@ -146,6 +146,7 @@ AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fractio
146146
AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128")
147147
AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking (prolong tracks to adjacent sectors to find short segments)")
148148
AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit (1: attachment, 2: propagation, 4: loop following)")
149+
AddOptionRTC(looperFollowMode, uint8_t, 1, "", 0, "0 = simple, 1 = advances, for disabling use disableRefitAttachment = 4")
149150
AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression (0 = no, 1 = strategy A, 2 = strategy B)")
150151
AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging")
151152
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
@@ -794,10 +794,10 @@ GPUdii() void GPUTPCGMTrackParam::PropagateLooper(const GPUTPCGMMerger& GPUrestr
794794

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

0 commit comments

Comments
 (0)