9 #include <boost/test/unit_test.hpp>
21 #include <boost/optional/optional_io.hpp>
38 Surface::makeShared<CylinderSurface>(Transform3D::Identity(), 3, 10);
41 cov << 0.04, 0, 0, 0.1;
44 cylinder, {}, std::move(cov), -0.1, 0.45));
49 covTrk.diagonal() << 0.08, 0.3, 1, 1, 1, 0;
51 parValues << 0.3, 0.5, 0.5 *
M_PI, 0.3 *
M_PI, 0.01, 0.;
59 std::visit([&](
const auto&
m) { ts.setCalibrated(
m); }, meas);
61 ts.predicted() = parValues;
62 ts.predictedCovariance() = covTrk;
68 BOOST_CHECK(ts.hasFiltered());
69 BOOST_CHECK(ts.hasCalibrated());
72 BOOST_CHECK_EQUAL(&ts.referenceSurface(), cylinder.get());
79 expCov.diagonal() << 0.0266667, 0.0750000, 1.0000000, 1.0000000, 1.0000000,
83 expPar << 0.0333333, 0.4625000, 1.5707963, 0.9424778, 0.0100000, 0.0000000;
86 expPosition << 2.9998148, 0.0333326, 0.4625000;
89 expMomentum << 0.0000000, 80.9016994, 58.7785252;
92 ts.filteredCovariance());
94 double expChi2 = 1.33958;