9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
27 using namespace Acts::UnitLiterals;
34 template <
typename charge_t>
38 const auto qOverP = (q != 0) ? (q / p) : (1 /
p);
39 const auto pos = pos4.segment<3>(
ePos0);
60 p * unitDir.template head<2>().norm(),
eps,
eps);
62 BOOST_CHECK_EQUAL(params.
charge(), q);
76 NeutralConstructFromAngles,
77 posSymmetric* posSymmetric* posSymmetric* ts* phis* thetas*
ps,
x,
y,
z,
83 checkParameters(params, pos4, dir, p, 0_e);
88 BOOST_CHECK(params.covariance());
89 BOOST_CHECK_EQUAL(params.covariance().value(),
cov);
93 ChargedConstructFromAngles,
94 posSymmetric* posSymmetric* posSymmetric* ts* phis* thetas*
ps* qsNonZero,
100 checkParameters(params, pos4, dir, p, q);
105 BOOST_CHECK(params.covariance());
106 BOOST_CHECK_EQUAL(params.covariance().value(),
cov);
110 AnyConstructFromAngles,
111 posSymmetric* posSymmetric* posSymmetric* ts* phis* thetas*
ps* qsNonZero,
116 AnyFreeTrackParameters params(pos4,
phi,
theta, p, q);
117 checkParameters(params, pos4, dir, p, q);
118 BOOST_CHECK(not params.covariance());
121 params = AnyFreeTrackParameters(pos4,
phi,
theta, p, q,
cov);
122 BOOST_CHECK(params.covariance());
123 BOOST_CHECK_EQUAL(params.covariance().value(),
cov);
126 BOOST_AUTO_TEST_SUITE_END()