9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
25 using namespace Acts::UnitLiterals;
32 HelicalTrackLinearizer<Propagator<EigenStepper<ConstantBField>>>;
39 std::uniform_real_distribution<>
vXYDist(-0.1_mm, 0.1_mm);
41 std::uniform_real_distribution<>
vZDist(-20_mm, 20_mm);
43 std::uniform_real_distribution<>
d0Dist(-0.01_mm, 0.01_mm);
45 std::uniform_real_distribution<>
z0Dist(-0.2_mm, 0.2_mm);
47 std::uniform_real_distribution<>
pTDist(0.4_GeV, 10_GeV);
53 std::uniform_real_distribution<>
qDist(-1, 1);
55 std::uniform_real_distribution<>
resIPDist(0., 100_um);
57 std::uniform_real_distribution<>
resAngDist(0., 0.1);
59 std::uniform_real_distribution<>
resQoPDist(-0.1, 0.1);
66 unsigned int nTracks = 100;
70 std::mt19937 gen(mySeed);
80 std::make_shared<Propagator<EigenStepper<ConstantBField>>>(
stepper);
83 std::shared_ptr<PerigeeSurface> perigeeSurface =
84 Surface::makeShared<PerigeeSurface>(
Vector3D(0., 0., 0.));
92 double d0v = sqrt(x * x + y * y);
96 std::vector<BoundTrackParameters> tracks;
100 for (
unsigned int iTrack = 0; iTrack < nTracks; iTrack++) {
102 double q =
qDist(gen) < 0 ? -1. : 1.;
119 covMat << resD0 * resD0, 0., 0., 0., 0., 0., 0., resZ0 * resZ0, 0., 0., 0.,
120 0., 0., 0., resPh * resPh, 0., 0., 0., 0., 0., 0., resTh * resTh, 0.,
121 0., 0., 0., 0., 0., resQp * resQp, 0., 0., 0., 0., 0., 0., 1.;
122 tracks.emplace_back(perigeeSurface, paramVec, std::move(covMat));
131 Vector4D vecSPZero = Vector4D::Zero();
157 using LinearizerStraightLine =
160 unsigned int nTracks = 100;
164 std::mt19937 gen(mySeed);
170 auto propagator = std::make_shared<Propagator<StraightLineStepper>>(
stepper);
173 std::shared_ptr<PerigeeSurface> perigeeSurface =
174 Surface::makeShared<PerigeeSurface>(
Vector3D(0., 0., 0.));
182 double d0v = sqrt(x * x + y * y);
186 std::vector<BoundTrackParameters> tracks;
190 for (
unsigned int iTrack = 0; iTrack < nTracks; iTrack++) {
192 double q =
qDist(gen) < 0 ? -1. : 1.;
209 covMat << resD0 * resD0, 0., 0., 0., 0., 0., 0., resZ0 * resZ0, 0., 0., 0.,
210 0., 0., 0., resPh * resPh, 0., 0., 0., 0., 0., 0., resTh * resTh, 0.,
211 0., 0., 0., 0., 0., resQp * resQp, 0., 0., 0., 0., 0., 0., 1.;
212 tracks.emplace_back(perigeeSurface, paramVec, std::move(covMat));
218 LinearizerStraightLine linFactory(ltConfig);
223 Vector4D vecSPZero = Vector4D::Zero();