Skip to content

Commit

Permalink
fix: Fitting with ouliers (#804)
Browse files Browse the repository at this point in the history
* only concider new Volume

* outlier fit fix
  • Loading branch information
Corentin-Allaire committed May 21, 2021
1 parent 7fc746f commit 8f0f37a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Core/include/Acts/TrackFitting/KalmanFitter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,10 @@ class KalmanFitter {

// Get and set the type flags
auto& typeFlags = trackStateProxy.typeFlags();
typeFlags.set(TrackStateFlag::MaterialFlag);
typeFlags.set(TrackStateFlag::ParameterFlag);
if (surface->surfaceMaterial() != nullptr) {
typeFlags.set(TrackStateFlag::MaterialFlag);
}

// Check if the state is an outlier.
// If not, run Kalman update, tag it as a
Expand Down Expand Up @@ -582,6 +584,7 @@ class KalmanFitter {
"be an outlier. Stepping state is not updated.")
// Set the outlier type flag
typeFlags.set(TrackStateFlag::OutlierFlag);
trackStateProxy.data().ifiltered = trackStateProxy.data().ipredicted;
}

// Update state and stepper with post material effects
Expand Down

0 comments on commit 8f0f37a

Please sign in to comment.