9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
27 namespace tt = boost::test_tools;
28 using namespace Acts::UnitLiterals;
53 ctransform.setIdentity();
54 ctransform.pretranslate(nposition);
55 ctransform.prerotate(
AngleAxis3D(angleX, Vector3D::UnitX()));
56 ctransform.prerotate(
AngleAxis3D(angleY, Vector3D::UnitY()));
57 return std::make_shared<Transform3D>(ctransform);
74 ? Vector3D::UnitZ().cross(T).normalized()
75 : Vector3D::UnitX().cross(T).normalized();
79 curvilinearRotation.col(0) = U;
80 curvilinearRotation.col(1) = V;
81 curvilinearRotation.col(2) =
T;
84 ctransform.pretranslate(nposition);
88 return std::make_shared<Transform3D>(ctransform);
113 size_t ijc = eFreeParametersSize + j * eFreeParametersSize + i;
114 jMatrix(i, j) = P[ijc];
125 template <
typename Parameters>
143 cov << 10
_mm, 0, 0, 0, 0, 0, 0, 10
_mm, 0, 0, 0, 0, 0, 0, 0.1, 0, 0, 0, 0, 0,
144 0, 0.1, 0, 0, 0, 0, 0, 0, 1. / (10
_GeV), 0, 0, 0, 0, 0, 0, 0;
162 auto cSurface = Surface::makeShared<CylinderSurface>(cTransform, 200., 1000.);
165 cov << 10
_mm, 0, 0, 0, 0, 0, 0, 10
_mm, 0, 0, 0, 0, 0, 0, 0.1, 0, 0, 0, 0, 0,
166 0, 0.1, 0, 0, 0, 0, 0, 0, 1. / (10
_GeV), 0, 0, 0, 0, 0, 0, 0;
169 pars << 182.34, -82., 0.134, 0.85, 1. / (100
_GeV), 0;
181 {10., -5., 0.},
Vector3D(0.23, 0.07, 1.).normalized(), 0.004, 0.03);
182 auto dSurface = Surface::makeShared<DiscSurface>(dTransform, 200., 1000.);
185 cov << 10
_mm, 0, 0, 0, 0, 0, 0, 10
_mm, 0, 0, 0, 0, 0, 0, 0.1, 0, 0, 0, 0, 0,
186 0, 0.1, 0, 0, 0, 0, 0, 0, 1. / (10
_GeV), 0, 0, 0, 0, 0, 0, 0;
189 pars << 192.34, 1.823, 0.734, 0.235, 1. / (100
_GeV), 0;
200 Vector3D sPosition(3421., 112., 893.);
204 auto pSurface = Surface::makeShared<PlaneSurface>(sPosition, sNormal);
207 cov << 10
_mm, 0, 0, 0, 0, 0, 0, 10
_mm, 0, 0, 0, 0, 0, 0, 0.1, 0, 0, 0, 0, 0,
208 0, 0.1, 0, 0, 0, 0, 0, 0, 1. / (10
_GeV), 0, 0, 0, 0, 0, 0, 0;
211 pars << 12.34, -8722., 2.134, 0.85, 1. / (100
_GeV), 0;
222 auto pSurface = Surface::makeShared<PerigeeSurface>(
Vector3D({0., 0., 0.}));
225 cov << 10
_mm, 0, 0, 0, 0, 0, 0, 10
_mm, 0, 0, 0, 0, 0, 0, 0.1, 0, 0, 0, 0, 0,
226 0, 0.1, 0, 0, 0, 0, 0, 0, 1. / (10
_GeV), 0, 0, 0, 0, 0, 0, 0;
228 pars << -3.34, -822., -0.734, 0.85, 1. / (100
_GeV), 0;
240 auto sSurface = Surface::makeShared<StrawSurface>(sTransform, 10., 1000.);
243 cov << 10
_mm, 0, 0, 0, 0, 0, 0, 10
_mm, 0, 0, 0, 0, 0, 0, 0.1, 0, 0, 0, 0, 0,
244 0, 0.1, 0, 0, 0, 0, 0, 0, 1. / (10
_GeV), 0, 0, 0, 0, 0, 0, 0;
247 pars << -8.34, 812., 0.734, 0.25, 1. / (100
_GeV), 0;