11 #include <boost/test/data/test_case.hpp>
12 #include <boost/test/unit_test.hpp>
23 namespace tt = boost::test_tools;
24 using namespace Acts::UnitLiterals;
35 cfg.
radius = (2.56 + 2.46) * 0.5 * 0.5_m;
48 double tol_B = 1
e-6
_T;
50 for (
size_t i = 0; i <
steps; i++) {
51 double r = 1.5 * cfg.radius /
steps * i;
52 BOOST_TEST_CONTEXT(
"r=" << r) {
57 BOOST_CHECK_GT(
std::abs(B1.z()), tol_B);
62 for (
size_t j = 0; j <=
steps; j++) {
64 double z = (1.5 * cfg.length / 2.) /
steps * j;
65 BOOST_TEST_CONTEXT(
"z=" << z) {
87 BOOST_CHECK_GT(
std::abs(B_zp_rp.z()), tol_B);
88 BOOST_CHECK_GT(
std::abs(B_zn_rp.z()), tol_B);
89 BOOST_CHECK_GT(
std::abs(B_zn_rn.z()), tol_B);
90 BOOST_CHECK_GT(
std::abs(B_zp_rn.z()), tol_B);