Skip to content

Commit be06302

Browse files
committed
GPU: Add looperFollowMode option
1 parent 916e900 commit be06302

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

786786
GPUTPCGMLoopData& data = merger.LoopData()[loopIdx];
787787
prop.SetTrack(&data.param, data.alpha);
788-
if (false) {
789-
data.param.AttachClustersLooper(merger, data.sector, data.row, data.track, data.outwards, prop);
790-
} else {
788+
if (merger.Param().rec.tpc.looperFollowMode == 1) {
791789
data.param.AttachClustersLooperFollow(merger, prop, data.sector, data.row, data.track, data.outwards);
790+
} else {
791+
data.param.AttachClustersLooper(merger, data.sector, data.row, data.track, data.outwards, prop);
792792
}
793793
}
794794

0 commit comments

Comments
 (0)