Skip to content

Commit

Permalink
update helper
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Oct 9, 2023
1 parent 05fbecf commit 0ffbfca
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Core/include/Acts/TrackFitting/detail/FitterHelpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,19 @@ auto getTrackStateProxy(propagator_state_t &state, const stepper_t &stepper,
auto &[boundParams, jacobian, pathLength] = *res;

// Fill the track state
trackStateProxy.predicted() = std::move(boundParams.parameters());
if ((mask & TrackStatePropMask::Predicted) != TrackStatePropMask::None) {
trackStateProxy.predicted() = std::move(boundParams.parameters());
}

if (boundParams.covariance().has_value()) {
trackStateProxy.predictedCovariance() =
std::move(*boundParams.covariance());
}
trackStateProxy.jacobian() = std::move(jacobian);

if ((mask & TrackStatePropMask::Jacobian) != TrackStatePropMask::None) {
trackStateProxy.jacobian() = std::move(jacobian);
}

trackStateProxy.pathLength() = std::move(pathLength);

return trackStateProxy;
Expand Down

0 comments on commit 0ffbfca

Please sign in to comment.