9 #include <boost/test/unit_test.hpp>
20 using namespace Acts::UnitLiterals;
36 auto magField = std::make_shared<MagneticField>(
Acts::Vector3(0.0, 0.0, bz));
50 Acts::Vector4(0.01, 0, 0, 0), dir.normalized(), 1 / 1_GeV, std::nullopt,
54 Acts::AbortList<Acts::EndOfWorldReached>>
59 BOOST_CHECK(res.ok());
63 std::vector<double> xPositions;
64 for (
const auto &
step : stepLog.steps) {
80 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 999.0) == 1);
81 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 1001.0) == 1);
82 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 1999.0) == 0);
83 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 2001.0) == 0);
84 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 3000.0) == 0);
95 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 999.0) == 1);
96 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 1001.0) == 1);
97 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 1999.0) == 0);
98 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 2001.0) == 0);
99 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 3000.0) == 0);
108 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 999.0) == 1);
109 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 1001.0) == 1);
110 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 1999.0) == 0);
111 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 2001.0) == 0);
112 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 3000.0) == 1);
122 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 999.0) == 1);
123 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 1001.0) == 1);
124 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 1999.0) == 1);
125 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 2001.0) == 1);
126 BOOST_CHECK(
std::count(xPositions.begin(), xPositions.end(), 3000.0) == 1);