20 #include <type_traits>
23 class InterpolatedMagneticField;
24 class MagneticFieldProvider;
27 namespace ActsExamples {
48 template <CoordinateType Coord,
bool Gr
id>
56 using Functor = std::conditional_t<Grid, std::optional<T>,
T>;
62 static constexpr std::size_t
NDims = Coord == CoordinateType::RZ ? 2 : 3;
72 std::array<std::array<Functor<double>, 2>,
NDims>
range{};
85 std::shared_ptr<std::add_const_t<std::conditional_t<
99 template <CoordinateType Coord,
bool Gr
id>