diff --git a/Examples/Algorithms/CMakeLists.txt b/Examples/Algorithms/CMakeLists.txt index f7285869f90..dd34810060d 100644 --- a/Examples/Algorithms/CMakeLists.txt +++ b/Examples/Algorithms/CMakeLists.txt @@ -15,3 +15,4 @@ add_subdirectory(TrackFittingChi2) add_subdirectory(TruthTracking) add_subdirectory(Vertexing) add_subdirectory_if(Alignment ACTS_BUILD_ALIGNMENT) +add_subdirectory(Utilities) diff --git a/Examples/Algorithms/TrackFinding/CMakeLists.txt b/Examples/Algorithms/TrackFinding/CMakeLists.txt index b823ec06f8d..f18a40c0b4b 100644 --- a/Examples/Algorithms/TrackFinding/CMakeLists.txt +++ b/Examples/Algorithms/TrackFinding/CMakeLists.txt @@ -7,8 +7,7 @@ add_library( src/TrackFindingAlgorithm.cpp src/TrackFindingAlgorithmFunction.cpp src/HoughTransformSeeder.cpp - src/TrackParamsEstimationAlgorithm.cpp - src/TrajectoriesToPrototracks.cpp) + src/TrackParamsEstimationAlgorithm.cpp) target_include_directories( ActsExamplesTrackFinding PUBLIC $) diff --git a/Examples/Algorithms/Utilities/CMakeLists.txt b/Examples/Algorithms/Utilities/CMakeLists.txt new file mode 100644 index 00000000000..27af005e557 --- /dev/null +++ b/Examples/Algorithms/Utilities/CMakeLists.txt @@ -0,0 +1,15 @@ +add_library( + ActsExamplesUtilities SHARED + src/TrajectoriesToPrototracks.cpp) +target_include_directories( + ActsExamplesUtilities + PUBLIC $) +target_link_libraries( + ActsExamplesUtilities + PUBLIC + ActsCore + ActsExamplesFramework) + +install( + TARGETS ActsExamplesUtilities + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) diff --git a/Examples/Algorithms/TrackFinding/include/ActsExamples/TrackFinding/TrajectoriesToPrototracks.hpp b/Examples/Algorithms/Utilities/include/ActsExamples/Utilities/TrajectoriesToPrototracks.hpp similarity index 100% rename from Examples/Algorithms/TrackFinding/include/ActsExamples/TrackFinding/TrajectoriesToPrototracks.hpp rename to Examples/Algorithms/Utilities/include/ActsExamples/Utilities/TrajectoriesToPrototracks.hpp diff --git a/Examples/Algorithms/TrackFinding/src/TrajectoriesToPrototracks.cpp b/Examples/Algorithms/Utilities/src/TrajectoriesToPrototracks.cpp similarity index 95% rename from Examples/Algorithms/TrackFinding/src/TrajectoriesToPrototracks.cpp rename to Examples/Algorithms/Utilities/src/TrajectoriesToPrototracks.cpp index a31833dff37..7faf769100c 100644 --- a/Examples/Algorithms/TrackFinding/src/TrajectoriesToPrototracks.cpp +++ b/Examples/Algorithms/Utilities/src/TrajectoriesToPrototracks.cpp @@ -6,7 +6,7 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. -#include "ActsExamples/TrackFinding/TrajectoriesToPrototracks.hpp" +#include "ActsExamples/Utilities/TrajectoriesToPrototracks.hpp" #include "ActsExamples/EventData/IndexSourceLink.hpp" #include "ActsExamples/EventData/ProtoTrack.hpp" diff --git a/Examples/Python/CMakeLists.txt b/Examples/Python/CMakeLists.txt index 0b9d11c1e34..d84777fce58 100644 --- a/Examples/Python/CMakeLists.txt +++ b/Examples/Python/CMakeLists.txt @@ -51,6 +51,7 @@ target_link_libraries(ActsPythonBindings PUBLIC ActsExamplesFatras ActsExamplesPrinters ActsExamplesDetectorTelescope + ActsExamplesUtilities ) set(py_files diff --git a/Examples/Python/src/TrackFinding.cpp b/Examples/Python/src/TrackFinding.cpp index 57fd3ec219d..595ec6575c9 100644 --- a/Examples/Python/src/TrackFinding.cpp +++ b/Examples/Python/src/TrackFinding.cpp @@ -16,7 +16,7 @@ #include "ActsExamples/TrackFinding/SpacePointMaker.hpp" #include "ActsExamples/TrackFinding/TrackFindingAlgorithm.hpp" #include "ActsExamples/TrackFinding/TrackParamsEstimationAlgorithm.hpp" -#include "ActsExamples/TrackFinding/TrajectoriesToPrototracks.hpp" +#include "ActsExamples/Utilities/TrajectoriesToPrototracks.hpp" #include