9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
33 using namespace Acts::UnitLiterals;
35 constexpr
auto eps = 8 * std::numeric_limits<ActsScalar>::epsilon();
41 const auto qOverP = (q != 0) ? (q / p) : (1 /
p);
42 const auto pos = pos4.segment<3>(
ePos0);
63 p * unitDir.template head<2>().
norm(),
eps,
eps);
65 BOOST_CHECK_EQUAL(params.
charge(), q);
79 NeutralConstructFromAngles,
80 posSymmetric* posSymmetric* posSymmetric* ts* phis*
thetas*
ps,
x,
y,
z,
87 checkParameters(params, pos4, dir, p, 0_e);
93 BOOST_CHECK(params.covariance());
94 BOOST_CHECK_EQUAL(params.covariance().value(),
cov);
98 ChargedConstructFromAngles,
99 posSymmetric* posSymmetric* posSymmetric* ts* phis*
thetas*
ps* qsNonZero,
106 checkParameters(params, pos4, dir, p, q);
112 BOOST_CHECK(params.covariance());
113 BOOST_CHECK_EQUAL(params.covariance().value(),
cov);
117 AnyConstructFromAngles,
118 posSymmetric* posSymmetric* posSymmetric* ts* phis*
thetas*
ps* qsNonZero,
125 checkParameters(params, pos4, dir, p, q);
131 BOOST_CHECK(params.covariance());
132 BOOST_CHECK_EQUAL(params.covariance().value(),
cov);
135 BOOST_AUTO_TEST_SUITE_END()