9 #include <boost/optional/optional_io.hpp>
10 #include <boost/test/unit_test.hpp>
33 using TrackState = TrackState<SourceLink, BoundParameters>;
40 auto cylinder = Surface::makeShared<CylinderSurface>(
nullptr, 3, 10);
43 cov << 0.04, 0, 0, 0.1;
46 cylinder, {}, std::move(cov), -0.1, 0.45));
51 covTrk.diagonal() << 0.08, 0.3, 1, 1, 1, 0;
53 parValues << 0.3, 0.5, 0.5 *
M_PI, 0.3 *
M_PI, 0.01, 0.;
61 std::visit([&](
const auto&
m) { ts.setCalibrated(
m); }, meas);
63 ts.predicted() = parValues;
64 ts.predictedCovariance() = covTrk;
70 BOOST_CHECK(ts.hasFiltered());
71 BOOST_CHECK(ts.hasCalibrated());
74 BOOST_CHECK_EQUAL(&ts.referenceSurface(), cylinder.get());
81 expCov.diagonal() << 0.0266667, 0.0750000, 1.0000000, 1.0000000, 1.0000000,
85 expPar << 0.0333333, 0.4625000, 1.5707963, 0.9424778, 0.0100000, 0.0000000;
88 expPosition << 2.9998148, 0.0333326, 0.4625000;
91 expMomentum << 0.0000000, 80.9016994, 58.7785252;
96 double expChi2 = 1.33958;