9 #include <boost/test/unit_test.hpp>
57 #include <string_view>
66 using namespace Acts::Test;
67 using namespace Acts::UnitLiterals;
78 .connect<&testSourceLinkCalibrator<VectorMultiTrajectory>>();
83 .connect<&TestSourceLink::SurfaceAccessor::operator()>(
84 &tester.surfaceAccessor);
95 const GSF gsfZero(makeConstantFieldPropagator<Stepper>(tester.geometry, 0_T),
98 std::default_random_engine
rng(42);
100 auto makeDefaultGsfOptions() {
102 tester.calCtx, getExtensions(),
146 std::vector<std::tuple<double, BoundVector, BoundSquareMatrix>> cmps = {
147 {0.2, cp.parameters(), cov},
148 {0.2, cp.parameters() + deltaLOC0 + deltaLOC1 + deltaQOP, cov},
149 {0.2, cp.parameters() + deltaLOC0 - deltaLOC1 - deltaQOP, cov},
150 {0.2, cp.parameters() - deltaLOC0 + deltaLOC1 + deltaQOP, cov},
151 {0.2, cp.parameters() - deltaLOC0 - deltaLOC1 - deltaQOP, cov}};
154 cp.referenceSurface().getSharedPtr(), cmps,
electron));
159 BOOST_AUTO_TEST_SUITE(TrackFittingGsf)
163 auto options = makeDefaultGsfOptions();
165 tester.test_ZeroFieldNoSurfaceForward(gsfZero,
options, multi_pars,
rng,
true,
171 auto options = makeDefaultGsfOptions();
173 tester.test_ZeroFieldWithSurfaceForward(gsfZero,
options, multi_pars,
rng,
179 auto options = makeDefaultGsfOptions();
181 tester.test_ZeroFieldWithSurfaceBackward(gsfZero,
options, multi_pars,
rng,
187 auto options = makeDefaultGsfOptions();
189 tester.test_ZeroFieldWithSurfaceBackward(gsfZero,
options, multi_pars,
rng,
195 auto options = makeDefaultGsfOptions();
197 tester.test_ZeroFieldShuffled(gsfZero,
options, multi_pars,
rng,
true,
false,
202 auto options = makeDefaultGsfOptions();
205 tester.test_ZeroFieldWithHole(gsfZero,
options, multi_pars,
rng,
true,
false,
213 auto options = makeDefaultGsfOptions();
214 options.extensions.outlierFinder
219 tester.test_ZeroFieldWithOutliers(gsfZero,
options, multi_pars,
rng,
true,
226 using namespace Acts::GsfConstants;
228 tracks.template addColumn<FinalMultiComponentState>(key);
233 multi_pars, tester.resolutions,
rng);
234 auto sourceLinks = tester.prepareSourceLinks(measurements.sourceLinks);
235 auto options = makeDefaultGsfOptions();
241 Acts::Surface::makeShared<Acts::PlaneSurface>(center, normal);
243 options.referenceSurface = targetSurface.get();
245 auto res = gsfZero.fit(sourceLinks.begin(), sourceLinks.end(), multi_pars,
248 BOOST_REQUIRE(res.ok());
249 BOOST_CHECK(res->template component<FinalMultiComponentState>(
254 BOOST_AUTO_TEST_SUITE_END()