Skip to content
Snippets Groups Projects
Commit 839988d6 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

chore: update to acts-21.1.0 (part 2)

parent 5e42a5dd
No related branches found
No related tags found
1 merge request!501chore: update to acts-21.1.0 (part 2)
...@@ -13,7 +13,10 @@ ...@@ -13,7 +13,10 @@
#include "Acts/Seeding/SeedFilter.hpp" #include "Acts/Seeding/SeedFilter.hpp"
#include "Acts/Seeding/EstimateTrackParamsFromSeed.hpp" #include "Acts/Seeding/EstimateTrackParamsFromSeed.hpp"
#include "Acts/Surfaces/PerigeeSurface.hpp" #include "Acts/Surfaces/PerigeeSurface.hpp"
#if Acts_VERSION_MAJOR < 21 #if Acts_VERSION_MAJOR >= 21
#include "Acts/Seeding/SeedFinderConfig.hpp"
#include "Acts/Seeding/SeedFinder.hpp"
#else
#include "Acts/Seeding/SeedfinderConfig.hpp" #include "Acts/Seeding/SeedfinderConfig.hpp"
#include "Acts/Seeding/Seedfinder.hpp" #include "Acts/Seeding/Seedfinder.hpp"
namespace Acts { namespace Acts {
...@@ -22,9 +25,6 @@ namespace Acts { ...@@ -22,9 +25,6 @@ namespace Acts {
template<typename T> template<typename T>
using SeedFinderConfig = SeedfinderConfig<T>; using SeedFinderConfig = SeedfinderConfig<T>;
} }
#else
#include "Acts/Seeding/SeedFinderConfig.hpp"
#include "Acts/Seeding/SeedFinder.hpp"
#endif #endif
// Gaudi // Gaudi
...@@ -332,14 +332,20 @@ namespace Jug::Reco { ...@@ -332,14 +332,20 @@ namespace Jug::Reco {
m_outputInitialTrackParameters.createAndPut(); m_outputInitialTrackParameters.createAndPut();
static SeedContainer seeds; static SeedContainer seeds;
#if Acts_VERSION_MAJOR >= 21
static Acts::SeedFinder<SpacePoint>::SeedingState state;
#else
static Acts::SeedFinder<SpacePoint>::State state; static Acts::SeedFinder<SpacePoint>::State state;
#endif
// Sadly, eic::TrackerHit and eic::TrackerHitData are // Sadly, eic::TrackerHit and eic::TrackerHitData are
// non-polymorphic // non-polymorphic
std::vector<SpacePoint> spacePoint; std::vector<SpacePoint> spacePoint;
std::vector<const SpacePoint *> spacePointPtrs; std::vector<const SpacePoint *> spacePointPtrs;
#if Acts_VERSION_MAJOR < 21
// extent used to store r range for middle spacepoint // extent used to store r range for middle spacepoint
Acts::Extent rRangeSPExtent; Acts::Extent rRangeSPExtent;
#endif
std::shared_ptr<const Acts::TrackingGeometry> std::shared_ptr<const Acts::TrackingGeometry>
trackingGeometry = m_geoSvc->trackingGeometry(); trackingGeometry = m_geoSvc->trackingGeometry();
...@@ -411,7 +417,7 @@ namespace Jug::Reco { ...@@ -411,7 +417,7 @@ namespace Jug::Reco {
<< ' ' << spacePointPtrs.back()->measurementIndex() << ' ' << spacePointPtrs.back()->measurementIndex()
<< ' ' << spacePointPtrs.back()->isOnSurface() << ' ' << spacePointPtrs.back()->isOnSurface()
<< endmsg; << endmsg;
#if 1 // ACTS 19.9 #if Acts_VERSION_MAJOR < 21
rRangeSPExtent.extend({ spacePoint.back().x(), rRangeSPExtent.extend({ spacePoint.back().x(),
spacePoint.back().y(), spacePoint.back().y(),
spacePoint.back().z() }); spacePoint.back().z() });
...@@ -435,6 +441,11 @@ namespace Jug::Reco { ...@@ -435,6 +441,11 @@ namespace Jug::Reco {
debug() << __FILE__ << ':' << __LINE__ << ": " << endmsg; debug() << __FILE__ << ':' << __LINE__ << ": " << endmsg;
} }
#if Acts_VERSION_MAJOR >= 21
// extent used to store r range for middle spacepoint
Acts::Extent rRangeSPExtent;
#endif
auto bottomBinFinder = auto bottomBinFinder =
std::make_shared<Acts::BinFinder<SpacePoint>>( std::make_shared<Acts::BinFinder<SpacePoint>>(
Acts::BinFinder<SpacePoint>(m_cfg.zBinNeighborsBottom, Acts::BinFinder<SpacePoint>(m_cfg.zBinNeighborsBottom,
...@@ -482,7 +493,7 @@ namespace Jug::Reco { ...@@ -482,7 +493,7 @@ namespace Jug::Reco {
spacePointPtrs.begin(), spacePointPtrs.end(), spacePointPtrs.begin(), spacePointPtrs.end(),
extractGlobalQuantities, bottomBinFinder, extractGlobalQuantities, bottomBinFinder,
topBinFinder, std::move(grid), topBinFinder, std::move(grid),
#if 0 // ACTS 20.x #if Acts_VERSION_MAJOR >= 21
rRangeSPExtent, rRangeSPExtent,
#endif #endif
m_finderCfg); m_finderCfg);
...@@ -494,7 +505,7 @@ namespace Jug::Reco { ...@@ -494,7 +505,7 @@ namespace Jug::Reco {
<< spacePointsGrouping.size() << endmsg; << spacePointsGrouping.size() << endmsg;
} }
#if 0 // ACTS 20.x #if Acts_VERSION_MAJOR >= 21
const Acts::Range1D<float> rMiddleSPRange( const Acts::Range1D<float> rMiddleSPRange(
std::floor(rRangeSPExtent.min(Acts::binR) / 2) * 2 + std::floor(rRangeSPExtent.min(Acts::binR) / 2) * 2 +
m_cfg.deltaRMiddleMinSPRange, m_cfg.deltaRMiddleMinSPRange,
...@@ -511,7 +522,12 @@ namespace Jug::Reco { ...@@ -511,7 +522,12 @@ namespace Jug::Reco {
finder.createSeedsForGroup( finder.createSeedsForGroup(
state, std::back_inserter(seeds), state, std::back_inserter(seeds),
group.bottom(), group.middle(), group.top(), group.bottom(), group.middle(), group.top(),
rRangeSPExtent); #if Acts_VERSION_MAJOR >= 21
rMiddleSPRange
#else
rRangeSPExtent
#endif
);
} }
if (msgLevel(MSG::DEBUG)) { if (msgLevel(MSG::DEBUG)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment