9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
26 using namespace Acts::UnitLiterals;
32 using Propagator = Propagator<EigenStepper<ConstantBField>>;
33 using Linearizer = HelicalTrackLinearizer<Propagator>;
44 std::uniform_real_distribution<>
d0Dist(-0.01
_mm, 0.01
_mm);
46 std::uniform_real_distribution<>
z0Dist(-0.2
_mm, 0.2
_mm);
54 std::uniform_real_distribution<>
qDist(-1, 1);
58 std::uniform_real_distribution<>
resAngDist(0., 0.1);
60 std::uniform_real_distribution<>
resQoPDist(-0.01, 0.01);
69 unsigned int nTests = 10;
73 std::mt19937 gen(mySeed);
82 auto propagator = std::make_shared<Propagator>(
stepper);
96 std::shared_ptr<PerigeeSurface> perigeeSurface =
97 Surface::makeShared<PerigeeSurface>(
Vector3D(0., 0., 0.));
103 for (
unsigned int i = 0; i < nTests; ++i) {
105 double q =
qDist(gen) < 0 ? -1. : 1.;
114 std::cout <<
"Creating track parameters: " << paramVec << std::endl;
127 covMat << res_d0 * res_d0, 0., 0., 0., 0., 0., 0., res_z0 * res_z0, 0., 0.,
128 0., 0., 0., 0., res_ph * res_ph, 0., 0., 0., 0., 0., 0.,
129 res_th * res_th, 0., 0., 0., 0., 0., 0., res_qp * res_qp, 0., 0., 0.,
155 KalmanVertexTrackUpdater::update<BoundParameters>(
geoContext, trkAtVtx,
168 std::cout <<
"Old distance: " << oldDistance << std::endl;
169 std::cout <<
"New distance: " << newDistance << std::endl;
173 BOOST_CHECK_NE(fittedParamsCopy, trkAtVtx.fittedParams);
176 BOOST_CHECK(newDistance < oldDistance);