Skip to content

Commit

Permalink
blueprint: Update after nav API change
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Nov 18, 2024
1 parent d57f13f commit 9f3ba06
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
5 changes: 2 additions & 3 deletions Core/src/Geometry/BlueprintNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "Acts/Geometry/MaterialDesignatorBlueprintNode.hpp"
#include "Acts/Geometry/StaticBlueprintNode.hpp"
#include "Acts/Navigation/INavigationPolicy.hpp"
#include "Acts/Navigation/TryAllNavigationPolicies.hpp"
#include "Acts/Navigation/TryAllNavigationPolicy.hpp"

#include <ostream>

Expand Down Expand Up @@ -58,8 +58,7 @@ void BlueprintNode::Options::validate() const {
std::unique_ptr<NavigationPolicyFactory>
BlueprintNode::Options::makeDefaultNavigationPolicyFactory() {
return NavigationPolicyFactory::make()
.add<TryAllPortalNavigationPolicy>()
.add<TryAllSurfaceNavigationPolicy>()
.add<TryAllNavigationPolicy>()
.asUniquePtr();
}

Expand Down
8 changes: 3 additions & 5 deletions Examples/Python/src/Blueprint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,9 @@ void pseudoNavigation(const TrackingGeometry& trackingGeometry,
for (std::size_t i = 0; i < 100; i++) {
assert(currentVolume != nullptr);
main = NavigationStream{};

currentVolume->updateNavigationState({.main = main,
.position = position,
.direction = direction,
.logger = logger()});
AppendOnlyNavigationStream stream{main};
currentVolume->initializeNavigationCandidates(
{.position = position, .direction = direction}, stream, logger());

ACTS_VERBOSE(main.candidates().size() << " candidates");

Expand Down
7 changes: 3 additions & 4 deletions Tests/UnitTests/Core/Geometry/BlueprintNodeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,10 @@ void pseudoNavigation(const TrackingGeometry& trackingGeometry,

for (std::size_t i = 0; i < 100; i++) {
main = NavigationStream{};
AppendOnlyNavigationStream stream{main};

currentVolume->updateNavigationState({.main = main,
.position = position,
.direction = direction,
.logger = logger});
currentVolume->initializeNavigationCandidates(
{.position = position, .direction = direction}, stream, logger);

ACTS_VERBOSE(main.candidates().size() << " candidates");

Expand Down

0 comments on commit 9f3ba06

Please sign in to comment.