Skip to content

Commit

Permalink
restore first track
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Apr 6, 2024
1 parent 6940f34 commit 3d3c37f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/include/Acts/TrackFinding/CombinatorialKalmanFilter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,8 @@ class CombinatorialKalmanFilter {
// TrackState. No storage allocation for uncalibrated/calibrated
// measurement and filtered parameter
auto stateMask =
~(TrackStatePropMask::Calibrated | TrackStatePropMask::Filtered);
~(TrackStatePropMask::Calibrated | TrackStatePropMask::Filtered |
TrackStatePropMask::Smoothed);

// Increment of number of processed states
tipState.nStates++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ ActsExamples::ProcessCode ActsExamples::TrackFindingAlgorithm::execute(
extrapolationOptions, m_cfg.extrapolationStrategy,
logger());
if (!secondExtrapolationResult.ok()) {
// restore first track
(*firstFirstState).previous() = Acts::kTrackIndexInvalid;

m_nFailedExtrapolation++;
ACTS_ERROR("Second extrapolation for seed "
<< iSeed << " and track " << secondTrack.index()
Expand All @@ -271,6 +274,9 @@ ActsExamples::ProcessCode ActsExamples::TrackFindingAlgorithm::execute(
destProxy.copyFrom(secondTrack, true);
}

// restore first track
(*firstFirstState).previous() = Acts::kTrackIndexInvalid;

++nSecond;
}
}
Expand Down

0 comments on commit 3d3c37f

Please sign in to comment.