Skip to content

Commit 8d47a85

Browse files
committed
GPU: Use average eta estimate for initial ZOffset during track seeding
1 parent a211a32 commit 8d47a85

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ AddOptionRTC(zsThreshold, float, 2.0f, "", 0, "Zero-Suppression threshold")
4848
AddOptionRTC(tubeChi2, float, 5.f * 5.f, "", 0, "Max chi2 to mark cluster adjacent to track")
4949
AddOptionRTC(tubeMaxSize2, float, 2.5f * 2.5f, "", 0, "Square of max tube size (normally derrived from tpcTubeChi2)")
5050
AddOptionRTC(clustersShiftTimebins, float, 0, "", 0, "Shift of TPC clusters (applied during CTF cluster decoding)")
51+
AddOptionRTC(defaultZOffsetOverR, float, 0.5210953f, "", 0, "Shift of TPC clusters (applied during CTF cluster decoding)")
5152
AddOptionRTC(maxTimeBinAboveThresholdIn1000Bin, unsigned short, 500, "", 0, "Except pad from cluster finding if total number of charges in a fragment is above this baseline (disable = 0)")
5253
AddOptionRTC(maxConsecTimeBinAboveThreshold, unsigned short, 200, "", 0, "Except pad from cluster finding if number of consecutive charges in a fragment is above this baseline (disable = 0)")
5354
AddOptionRTC(noisyPadSaturationThreshold, unsigned short, 700, "", 0, "Threshold where a timebin is considered saturated, disabling the noisy pad check for that pad")

GPU/GPUTracking/SliceTracker/GPUTPCTrackletConstructor.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,10 @@ GPUdic(2, 1) void GPUTPCTrackletConstructor::UpdateTracklet(int /*nBlocks*/, int
140140
tParam.SetY(y);
141141
r.mLastY = y;
142142
if (tracker.Param().par.continuousTracking) {
143-
tParam.SetZ(0.f);
144-
r.mLastZ = 0.f;
145-
tParam.SetZOffset(z);
143+
float refZ = ((z > 0) ? tracker.Param().rec.tpc.defaultZOffsetOverR : -tracker.Param().rec.tpc.defaultZOffsetOverR) * x;
144+
tParam.SetZ(refZ);
145+
r.mLastZ = refZ;
146+
tParam.SetZOffset(z - refZ);
146147
} else {
147148
tParam.SetZ(z);
148149
r.mLastZ = z;

0 commit comments

Comments
 (0)