From 4a5a8162a84d2ad4ba1d8278446cbeff3e5864ed Mon Sep 17 00:00:00 2001
From: Bastian Schlag <bastian.schlag@cern.ch>
Date: Sat, 29 Feb 2020 01:18:53 +0100
Subject: [PATCH] enable VertexSmootherTests again

---
 Tests/UnitTests/Core/Vertexing/CMakeLists.txt          | 2 +-
 Tests/UnitTests/Core/Vertexing/VertexSmootherTests.cpp | 7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Tests/UnitTests/Core/Vertexing/CMakeLists.txt b/Tests/UnitTests/Core/Vertexing/CMakeLists.txt
index 60512520f..829ef494c 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 fc3e23639..8970a28a1 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;
-- 
GitLab