Skip to content

Commit

Permalink
Update Test
Browse files Browse the repository at this point in the history
  • Loading branch information
beomki-yeo committed Oct 12, 2023
1 parent f5bcede commit 3ebbcf8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Tests/UnitTests/Core/TrackFitting/GainMatrixUpdaterTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "Acts/EventData/TrackStatePropMask.hpp"
#include "Acts/EventData/VectorMultiTrajectory.hpp"
#include "Acts/Geometry/GeometryContext.hpp"
#include "Acts/Surfaces/DiscSurface.hpp"
#include "Acts/Tests/CommonHelpers/FloatComparisons.hpp"
#include "Acts/Tests/CommonHelpers/TestSourceLink.hpp"
#include "Acts/TrackFitting/GainMatrixUpdater.hpp"
Expand Down Expand Up @@ -73,11 +74,13 @@ BOOST_AUTO_TEST_CASE(Update) {
BOOST_CHECK(ts.hasCalibrated());

// Gain matrix update and filtered state
Acts::Surface* surface = nullptr;
BOOST_CHECK(GainMatrixUpdater()
.
operator()<VectorMultiTrajectory>(tgContext, surface, ts)
.ok());
auto surface =
Surface::makeShared<Acts::DiscSurface>(Acts::Transform3::Identity());
BOOST_CHECK(
GainMatrixUpdater()
.
operator()<VectorMultiTrajectory>(tgContext, surface.get(), ts)
.ok());

// Check for regression. This does NOT test if the math is correct, just that
// the result is the same as when the test was written.
Expand Down

0 comments on commit 3ebbcf8

Please sign in to comment.