File indexing completed on 2025-01-18 09:11:19
0001
0002
0003
0004
0005
0006
0007
0008
0009 #include "Acts/Geometry/BlueprintOptions.hpp"
0010
0011 #include "Acts/Geometry/NavigationPolicyFactory.hpp"
0012 #include "Acts/Navigation/TryAllNavigationPolicy.hpp"
0013
0014 namespace Acts {
0015
0016 void BlueprintOptions::validate() const {
0017 if (!defaultNavigationPolicyFactory) {
0018 throw std::invalid_argument("Navigation policy factory is nullptr");
0019 }
0020 }
0021
0022 std::unique_ptr<NavigationPolicyFactory>
0023 BlueprintOptions::makeDefaultNavigationPolicyFactory() {
0024 return NavigationPolicyFactory::make()
0025 .add<TryAllNavigationPolicy>()
0026 .asUniquePtr();
0027 }
0028
0029 }