File indexing completed on 2025-01-18 09:12:35
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include <boost/test/data/test_case.hpp>
0012
0013 #include "Acts/Definitions/Units.hpp"
0014 #include "Acts/Surfaces/CurvilinearSurface.hpp"
0015 #include "Acts/Surfaces/CylinderSurface.hpp"
0016 #include "Acts/Surfaces/DiscSurface.hpp"
0017 #include "Acts/Surfaces/PerigeeSurface.hpp"
0018 #include "Acts/Surfaces/PlaneSurface.hpp"
0019 #include "Acts/Surfaces/RegularSurface.hpp"
0020
0021 #include <cmath>
0022 #include <numbers>
0023 #include <vector>
0024
0025 namespace {
0026
0027 namespace bdata = boost::unit_test::data;
0028 using namespace Acts;
0029
0030
0031
0032
0033 const auto surfaces =
0034 bdata::make(std::vector<std::shared_ptr<const RegularSurface>>{
0035 Surface::makeShared<CylinderSurface>(
0036 Transform3::Identity(), 10 , 100 ),
0037
0038
0039 CurvilinearSurface(Vector3::Zero(), Vector3::UnitX()).planeSurface(),
0040 CurvilinearSurface(Vector3::Zero(), Vector3::UnitY()).planeSurface(),
0041 CurvilinearSurface(Vector3::Zero(), Vector3::UnitZ()).planeSurface(),
0042 });
0043
0044 const auto posAngle = bdata::xrange(-std::numbers::pi, std::numbers::pi, 0.5);
0045 const auto posPositiveNonzero = bdata::xrange(0.25, 1.0, 0.25);
0046 const auto posPositive = bdata::make(0.0) + posPositiveNonzero;
0047 const auto posSymmetric = bdata::xrange(-1.0, 1.0, 0.50);
0048
0049 const auto ts = bdata::make(1.0);
0050
0051 const auto phis = bdata::make({0., std::numbers::pi, -std::numbers::pi,
0052 std::numbers::pi / 2., -std::numbers::pi / 2.});
0053 const auto thetasNoForwardBackward = bdata::xrange(
0054 std::numbers::pi / 4., std::numbers::pi, std::numbers::pi / 4.);
0055 const auto thetas =
0056 bdata::make({0., std::numbers::pi}) + thetasNoForwardBackward;
0057
0058 const auto ps = bdata::make({1.0, 10.0});
0059
0060 const auto qsNonZero = bdata::make({-UnitConstants::e, UnitConstants::e});
0061 const auto qsAny = bdata::make({
0062 -2 * UnitConstants::e,
0063 -1 * UnitConstants::e,
0064 0 * UnitConstants::e,
0065 1 * UnitConstants::e,
0066 2 * UnitConstants::e,
0067 });
0068
0069 }