9 #include <boost/test/unit_test.hpp>
29 auto cylinder = Surface::makeShared<CylinderSurface>(
nullptr, 3, 10);
32 cov << 0.04, 0, 0, 0.1;
34 std::move(cov), -0.1, 0.45);
40 covc << 0.04, 0, 0, 0.1;
42 cylinder, {}, std::move(covc), -0.1, 0.45);
48 const Surface* sfCopy = &mcCopy.referenceSurface();
49 BOOST_CHECK_NE(sfCopy,
nullptr);
50 BOOST_CHECK_EQUAL(sfCopy, cylinder.get());
52 BOOST_CHECK_EQUAL(mc.
parameters(), mcCopy.parameters());
58 const Surface* sfAssigned = &mcAssigned.referenceSurface();
59 BOOST_CHECK_NE(sfAssigned,
nullptr);
60 BOOST_CHECK_EQUAL(sfAssigned, cylinder.get());
62 BOOST_CHECK_EQUAL(mc.
parameters(), mcAssigned.parameters());
64 std::vector<MeasurementType<ParDef::eLOC_0, ParDef::eLOC_1>> caMeasurements{
65 std::move(mcCopy), std::move(mcAssigned)};
67 auto plane = Surface::makeShared<PlaneSurface>(
Vector3D(0., 0., 0.),
74 covpp << 0.01, 0., 0., 0.02;
76 plane, {}, std::move(covpp), 0.1, 0.2);
78 std::vector<FittableMeasurement<SourceLink>> measurements{
79 std::move(mc), std::move(mp), std::move(mpp)};