diff --git a/Tests/UnitTests/Core/Vertexing/CMakeLists.txt b/Tests/UnitTests/Core/Vertexing/CMakeLists.txt index 60512520f0f12f3b055bc4811730fcfaf07dcf89..829ef494cba19b367f321b3d9350fabc10d24d43 100644 --- a/Tests/UnitTests/Core/Vertexing/CMakeLists.txt +++ b/Tests/UnitTests/Core/Vertexing/CMakeLists.txt @@ -7,6 +7,6 @@ add_unittest(LinearizedTrackFactoryTests LinearizedTrackFactoryTests.cpp) add_unittest(AdaptiveMultiVertexFitterTests AdaptiveMultiVertexFitterTests.cpp) add_unittest(AdaptiveMultiVertexFinderTests AdaptiveMultiVertexFinderTests.cpp) add_unittest(TrackToVertexIPEstimatorTests TrackToVertexIPEstimatorTests.cpp) -# add_unittest(VertexSmootherTests VertexSmootherTests.cpp) +add_unittest(VertexSmootherTests VertexSmootherTests.cpp) add_unittest(ZScanVertexFinderTests ZScanVertexFinderTests.cpp) add_unittest(TrackDensityVertexFinderTests TrackDensityVertexFinderTests.cpp) \ No newline at end of file diff --git a/Tests/UnitTests/Core/Vertexing/VertexSmootherTests.cpp b/Tests/UnitTests/Core/Vertexing/VertexSmootherTests.cpp index fc3e23639e8a69974acd8d05a80ff42ef796c3c2..8970a28a1d731535bf235a7b899b799693b6af94 100644 --- a/Tests/UnitTests/Core/Vertexing/VertexSmootherTests.cpp +++ b/Tests/UnitTests/Core/Vertexing/VertexSmootherTests.cpp @@ -139,8 +139,13 @@ BOOST_AUTO_TEST_CASE(sequential_vertex_smoother_test) { perigeeSurface)); } + std::vector<const BoundParameters*> tracksPtr; + for (const auto& trk : tracks) { + tracksPtr.push_back(&trk); + } + Vertex<BoundParameters> fittedVertex = - billoirFitter.fit(tracks, linearizer, vfOptions).value(); + billoirFitter.fit(tracksPtr, linearizer, vfOptions).value(); // copy vertex for later comparison Vertex<BoundParameters> vertexBeforeSmoothing = fittedVertex;