Skip to content

Commit

Permalink
refactor: Move traj to proto track converter to separate target (#1837)
Browse files Browse the repository at this point in the history
In preparation for adding a central Track to Trajectories converter

Blocked by:
- #1836
  • Loading branch information
paulgessinger committed Feb 10, 2023
1 parent aa3dea8 commit 1de6551
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions Examples/Algorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ add_subdirectory(TrackFittingChi2)
add_subdirectory(TruthTracking)
add_subdirectory(Vertexing)
add_subdirectory_if(Alignment ACTS_BUILD_ALIGNMENT)
add_subdirectory(Utilities)
3 changes: 1 addition & 2 deletions Examples/Algorithms/TrackFinding/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
Expand Down
15 changes: 15 additions & 0 deletions Examples/Algorithms/Utilities/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
add_library(
ActsExamplesUtilities SHARED
src/TrajectoriesToPrototracks.cpp)
target_include_directories(
ActsExamplesUtilities
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
target_link_libraries(
ActsExamplesUtilities
PUBLIC
ActsCore
ActsExamplesFramework)

install(
TARGETS ActsExamplesUtilities
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions Examples/Python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ target_link_libraries(ActsPythonBindings PUBLIC
ActsExamplesFatras
ActsExamplesPrinters
ActsExamplesDetectorTelescope
ActsExamplesUtilities
)

set(py_files
Expand Down
2 changes: 1 addition & 1 deletion Examples/Python/src/TrackFinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <memory>

Expand Down

0 comments on commit 1de6551

Please sign in to comment.