Skip to content

Commit 499c633

Browse files
committed
GPU TPC: Fix storing OuterParam after implementing track rebuild
1 parent fcdecb0 commit 499c633

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎GPU/GPUTracking/Merger/GPUTPCGMTrackParam.cxx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ GPUd() bool GPUTPCGMTrackParam::Fit(GPUTPCGMMerger& GPUrestrict() merger, int32_
9696
float sumInvSqrtCharge = 0.f; // TODO: Compute in first iteration and store!
9797
int32_t nAvgCharge = 0;
9898

99-
if (iWay && (iWay & 1) == 0) {
100-
StoreOuter(&track.OuterParam(), prop.GetAlpha()); // TODO: Fix outer param!
101-
}
102-
10399
int32_t resetT0 = CAMath::Max(10, CAMath::Min<int32_t>(40, 150.f / CAMath::Abs(mP[4])));
104100
const bool refit = (nWays == 1 || iWay >= 1);
105101
const bool finalOutInFit = iWay + 2 >= nWays;
106102
const bool finalFit = iWay == nWays - 1;
107103

104+
if (iWay && finalFit) {
105+
StoreOuter(&track.OuterParam(), rebuilt ? Alpha : prop.GetAlpha());
106+
}
107+
108108
ResetCovariance();
109109
prop.SetSeedingErrors(!(refit && !retryAttempt));
110110
prop.SetFitInProjections(true); // param.rec.fitInProjections == -1 ? (iWay == 0) : param.rec.fitInProjections); // TODO: Reenable once fixed

0 commit comments

Comments
 (0)