diff --git a/Core/include/Acts/Fitter/GainMatrixSmoother.hpp b/Core/include/Acts/Fitter/GainMatrixSmoother.hpp index b650a3d3ac839314119975c45fdbe8f8f4665978..0ab4479bbc01c6bbe0da972a201e38250cea22b0 100644 --- a/Core/include/Acts/Fitter/GainMatrixSmoother.hpp +++ b/Core/include/Acts/Fitter/GainMatrixSmoother.hpp @@ -87,9 +87,9 @@ class GainMatrixSmoother { }); // construct parameters from last track state - parameters_t lastSmoothed( - gctx, std::make_unique<CovMatrix_t>(prev_ts.smoothedCovariance()), - prev_ts.smoothed(), prev_ts.referenceSurface().getSharedPtr()); + parameters_t lastSmoothed(gctx, prev_ts.smoothedCovariance(), + prev_ts.smoothed(), + prev_ts.referenceSurface().getSharedPtr()); return lastSmoothed; } diff --git a/Core/include/Acts/Fitter/KalmanFitter.hpp b/Core/include/Acts/Fitter/KalmanFitter.hpp index d25faf90288ef3868c2435c90a61e8fe963162e2..c2cbf99df6bafc741507926b268b2a2bce43c2f1 100644 --- a/Core/include/Acts/Fitter/KalmanFitter.hpp +++ b/Core/include/Acts/Fitter/KalmanFitter.hpp @@ -342,8 +342,7 @@ class KalmanFitter { // a bit awkward. // @TODO: Make this unnecessary BoundParameters bPars(state.options.geoContext, - std::make_unique<BoundParameters::CovMatrix_t>( - trackState.filteredCovariance()), + trackState.filteredCovariance(), trackState.filtered(), surface->getSharedPtr()); stepper.update(state.stepping, bPars); } diff --git a/Tests/Core/Fitter/GainMatrixUpdaterTests.cpp b/Tests/Core/Fitter/GainMatrixUpdaterTests.cpp index 396f1c5f030b89f7627e803189ad6835d9a818a8..d7c9aca9b5c73b76bf3ae3fdb7f8cf2b916e7ef9 100644 --- a/Tests/Core/Fitter/GainMatrixUpdaterTests.cpp +++ b/Tests/Core/Fitter/GainMatrixUpdaterTests.cpp @@ -91,9 +91,8 @@ BOOST_AUTO_TEST_CASE(gain_matrix_updater) { Vector3D expMomentum; expMomentum << 0.0000000, 80.9016994, 58.7785252; - BoundParameters filtered( - tgContext, std::make_unique<Covariance>(ts.filteredCovariance()), - ts.filtered(), cylinder); + BoundParameters filtered(tgContext, ts.filteredCovariance(), ts.filtered(), + cylinder); double expChi2 = 1.33958;