9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
19 using namespace Acts::UnitLiterals;
27 auto phi = bdata::xrange(-180_degree, 180_degree, 30_degree);
28 auto theta = bdata::xrange(15_degree, 90_degree, 15_degree);
37 bdata::distribution = std::uniform_real_distribution<>(-1., 1.)));
40 bdata::distribution = std::uniform_real_distribution<>(-1., 1.)));
43 bdata::distribution = std::uniform_real_distribution<>(-1., 1.)));
71 r = (r > 2.5_m) ? 2.5
_m : r;
98 auto a_at_plane = to_surface<AtlasPropagatorType, PlaneSurface>(
99 apropagator,
pT,
phi,
theta,
charge, plimit,
rand1,
rand2,
rand3,
true,
102 auto e_at_plane = to_surface<EigenPropagatorType, PlaneSurface>(
103 epropagator,
pT,
phi,
theta,
charge, plimit,
rand1,
rand2,
rand3,
true,
108 auto s_at_plane = to_surface<StraightPropagatorType, PlaneSurface>(
109 spropagator,
pT,
phi,
theta, 0., plimit,
rand1,
rand2,
rand3,
true,
112 e_at_plane = to_surface<EigenPropagatorType, PlaneSurface>(
113 epropagator,
pT,
phi,
theta, 0., plimit,
rand1,
rand2,
rand3,
true,
124 auto a_at_disc = to_surface<AtlasPropagatorType, DiscSurface>(
125 apropagator,
pT,
phi,
theta,
charge, plimit,
rand1,
rand2,
rand3,
true,
128 auto e_at_disc = to_surface<EigenPropagatorType, DiscSurface>(
129 epropagator,
pT,
phi,
theta,
charge, plimit,
rand1,
rand2,
rand3,
true,
134 auto s_at_disc = to_surface<StraightPropagatorType, DiscSurface>(
135 spropagator,
pT,
phi,
theta, 0., plimit,
rand1,
rand2,
rand3,
true,
138 e_at_disc = to_surface<EigenPropagatorType, DiscSurface>(
139 epropagator,
pT,
phi,
theta, 0., plimit,
rand1,
rand2,
rand3,
true,
152 std::cout <<
"[ >>>> Testing Atlas Propagator <<<< ]" << std::endl;
154 auto a_at_line = to_surface<AtlasPropagatorType, StrawSurface>(
155 apropagator,
pT,
phi,
theta,
charge, plimit,
rand1,
rand2,
rand3,
false,
159 std::cout <<
"[ >>>> Testing Eigen Propagator <<<< ]" << std::endl;
161 auto e_at_line = to_surface<EigenPropagatorType, StrawSurface>(
162 epropagator,
pT,
phi,
theta,
charge, plimit,
rand1,
rand2,
rand3,
false,
167 std::cout <<
"[ >>>> Testing Neutral Propagators <<<< ]" << std::endl;
170 auto s_at_line = to_surface<StraightPropagatorType, StrawSurface>(
171 spropagator,
pT,
phi,
theta, 0., plimit,
rand1,
rand2,
rand3,
false,
174 e_at_line = to_surface<EigenPropagatorType, StrawSurface>(
175 epropagator,
pT,
phi,
theta, 0., plimit,
rand1,
rand2,
rand3,
false,
211 covariance_bound<RiddersStraightPropagatorType, DiscSurface, DiscSurface>(
215 covariance_bound<StraightPropagatorType, DiscSurface, DiscSurface>(
218 if (covCalculated != Covariance::Zero()) {
224 covariance_bound<RiddersEigenPropagatorType, DiscSurface, DiscSurface>(
227 covObtained = covariance_bound<EigenPropagatorType, DiscSurface, DiscSurface>(
228 epropagator,
pT,
phi,
theta,
charge, plimit,
rand1,
rand2,
rand3,
true,
230 if (covCalculated != Covariance::Zero()) {
236 covariance_bound<RiddersAtlasPropagatorType, DiscSurface, DiscSurface>(
239 covObtained = covariance_bound<AtlasPropagatorType, DiscSurface, DiscSurface>(
240 apropagator,
pT,
phi,
theta,
charge, plimit,
rand1,
rand2,
rand3,
true,
242 if (covCalculated != Covariance::Zero()) {
254 PlaneSurface, PlaneSurface>(
257 covariance_bound<StraightPropagatorType, PlaneSurface, PlaneSurface>(
263 covariance_bound<RiddersEigenPropagatorType, PlaneSurface, PlaneSurface>(
266 covariance_bound<EigenPropagatorType, PlaneSurface, PlaneSurface>(
272 covariance_bound<RiddersAtlasPropagatorType, PlaneSurface, PlaneSurface>(
275 covariance_bound<AtlasPropagatorType, PlaneSurface, PlaneSurface>(
293 covariance_bound<StraightPropagatorType, StrawSurface, StrawSurface>(
300 covariance_bound<RiddersEigenPropagatorType, StrawSurface, StrawSurface>(
304 covariance_bound<EigenPropagatorType, StrawSurface, StrawSurface>(
311 covariance_bound<RiddersAtlasPropagatorType, StrawSurface, StrawSurface>(
315 covariance_bound<AtlasPropagatorType, StrawSurface, StrawSurface>(
330 RiddersPropagator rdpropagator(dpropagator);
339 covariance_bound<RiddersPropagator<DensePropagatorType>, DiscSurface,
340 DiscSurface>(rdpropagator,
pT, 0_degree, 45_degree, 1
_e,
343 covariance_bound<DensePropagatorType, DiscSurface, DiscSurface>(
346 if (covCalculated != Covariance::Zero()) {
350 covCalculated = covariance_bound<RiddersPropagator<DensePropagatorType>,
351 PlaneSurface, PlaneSurface>(
354 covariance_bound<DensePropagatorType, PlaneSurface, PlaneSurface>(