Skip to content

Commit

Permalink
fix: backport into v1.9 of Acts v31 support (#1190)
Browse files Browse the repository at this point in the history
### Briefly, what does this PR introduce?
This backports 4023c3f and
03b1049 into v1.9 in prep for a v1.9.1
release. Acts v31 isn't expected to land officially until EICrecon v1.10
and container 24.02, but we need a stable version that compiles with the
newer container for testing of the container builds.

### What kind of change does this PR introduce?
- [x] Bug fix (issue #__)
- [ ] New feature (issue #__)
- [ ] Documentation update
- [ ] Other: __

### Please check if this PR fulfills the following:
- [ ] Tests for the changes have been added
- [ ] Documentation has been added / updated
- [ ] Changes have been communicated to collaborators

### Does this PR introduce breaking changes? What changes might users
need to make to their code?
No.

### Does this PR change default behavior?
No.

---------

Co-authored-by: Dmitry Kalinkin <[email protected]>
  • Loading branch information
wdconinc and veprbl authored Dec 24, 2023
1 parent 3ad7e59 commit fde1872
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/iwyu.imp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# Acts
{ include: ['@<Acts/(.*)\.ipp>', private, '<Acts/$1.hpp>', public] },
{ include: ['@<Acts/(.*)/detail/(.*)\.ipp>', private, '<Acts/$1/$2.hpp>', public] },
{ include: ['<Acts/Geometry/detail/DefaultDetectorElementBase.hpp>', private, '<Acts/Geometry/DetectorElementBase.hpp>', public] },

# Eigen
{ include: ['@<Eigen/(src/)?(.*?)/.*>', private, '<Eigen/$2>', public] },
Expand Down
6 changes: 6 additions & 0 deletions cmake/jana_plugin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ macro(plugin_add_acts _name)
ActsPluginDD4hep
${ActsCore_PATH}/${CMAKE_SHARED_LIBRARY_PREFIX}ActsExamplesFramework${CMAKE_SHARED_LIBRARY_SUFFIX}
)
if(${_name}_WITH_LIBRARY)
target_compile_definitions(${PLUGIN_NAME}_library PRIVATE "Acts_VERSION_MAJOR=${Acts_VERSION_MAJOR}")
endif()
if(${_name}_WITH_PLUGIN)
target_compile_definitions(${PLUGIN_NAME}_plugin PRIVATE "Acts_VERSION_MAJOR=${Acts_VERSION_MAJOR}")
endif()

endmacro()

Expand Down
2 changes: 1 addition & 1 deletion src/algorithms/tracking/ActsGeometryProvider.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Copyright (C) 2022 Whitney Armstrong, Wouter Deconinck, Dmitry Romanov

#include <Acts/Definitions/Algebra.hpp>
#include <Acts/Geometry/DetectorElementBase.hpp>
#include <Acts/Geometry/GeometryIdentifier.hpp>
#include <Acts/Geometry/TrackingGeometry.hpp>
#include <Acts/Geometry/detail/DefaultDetectorElementBase.hpp>
#include <Acts/MagneticField/MagneticFieldContext.hpp>
#include <Acts/Material/IMaterialDecorator.hpp>
#include <Acts/Plugins/DD4hep/ConvertDD4hepDetector.hpp>
Expand Down
8 changes: 6 additions & 2 deletions src/algorithms/tracking/IterativeVertexFinder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,15 @@ std::unique_ptr<edm4eic::VertexCollection> eicrecon::IterativeVertexFinder::prod
VertexSeeder::Config seederCfg(ipEst);
VertexSeeder seeder(seederCfg);
// Set up the actual vertex finder
VertexFinder::Config finderCfg(vertexFitter, std::move(linearizer),
std::move(seeder), ipEst);
VertexFinder::Config finderCfg(std::move(vertexFitter), std::move(linearizer),
std::move(seeder), std::move(ipEst));
finderCfg.maxVertices = m_cfg.m_maxVertices;
finderCfg.reassignTracksAfterFirstFit = m_cfg.m_reassignTracksAfterFirstFit;
#if Acts_VERSION_MAJOR >= 31
VertexFinder finder(std::move(finderCfg));
#else
VertexFinder finder(finderCfg);
#endif
VertexFinder::State state(*m_BField, m_fieldctx);
VertexFinderOptions finderOpts(m_geoctx, m_fieldctx);

Expand Down

0 comments on commit fde1872

Please sign in to comment.