Skip to content

Commit 1a56ade

Browse files
committed
loss2
1 parent 460bdb3 commit 1a56ade

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

GPU/GPUTracking/Merger/GPUTPCGMTrackParam.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ GPUd() bool GPUTPCGMTrackParam::Fit(GPUTPCGMMerger& GPUrestrict() merger, int32_
180180
break;
181181
}
182182
auto& inter = interpolation.hit[interpolationIndex];
183+
if (param.rec.tpc.mergerInterpolateErrors && iWay == nWays - 3) {
184+
prop.InterpolateFill(&inter);
185+
}
183186

184187
float uncorrectedY = -1e6f;
185188
if (param.rec.tpc.rebuildTrackInFit) {
@@ -325,9 +328,7 @@ GPUdii() int32_t GPUTPCGMTrackParam::FitHit(GPUTPCGMMerger& GPUrestrict() merger
325328

326329
bool rejectChi2 = false;
327330
if (param.rec.tpc.mergerInterpolateErrors) {
328-
if (iWay == nWays - 3) {
329-
prop.InterpolateFill(&inter);
330-
} else if (iWay == nWays - 2) {
331+
if (iWay == nWays - 2) {
331332
{
332333
if (inter.errorY < (GPUCA_PAR_MERGER_INTERPOLATION_ERROR_TYPE_A)0) {
333334
rejectChi2 = true;

0 commit comments

Comments
 (0)