9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
32 namespace ds = ActsTests::PropagationDatasets;
33 using namespace Acts::UnitLiterals;
42 constexpr
auto epsPos = 10_um;
43 constexpr
auto epsDir = 1_mrad;
44 constexpr
auto epsMom = 5_MeV;
46 constexpr
auto epsCov = 0.07;
51 inline std::shared_ptr<const Acts::TrackingGeometry> makeDetector() {
55 static std::shared_ptr<const Acts::TrackingGeometry>
detector;
59 vConf.
length = {4_m, 4_m, 4_m};
60 vConf.
volumeMaterial = std::make_shared<const HomogeneousVolumeMaterial>(
64 conf.position = {0., 0., 0.};
65 conf.length = {4_m, 4_m, 4_m};
69 [=](
const auto& context,
const auto& inner,
const auto&) {
70 return cvb.trackingVolume(context, inner,
nullptr);
81 auto magField = std::make_shared<MagneticField>(
Acts::Vector3(0.0, 0.0, bz));
90 inline RiddersPropagator makeRiddersPropagator(
double bz) {
93 auto magField = std::make_shared<MagneticField>(
Acts::Vector3(0.0, 0.0, bz));
101 BOOST_AUTO_TEST_SUITE(PropagationDenseConstant)
110 runForwardBackwardTest<Propagator, Acts::DenseStepperPropagatorOptions>(
126 epsPos, epsDir, epsMom);
137 epsPos, epsDir, epsMom);
148 epsPos, epsDir, epsMom);
160 epsPos, epsDir, epsMom);
171 makePropagator(bz), makeRiddersPropagator(bz),
geoCtx,
magCtx,
173 epsDir, epsMom, epsCov);
184 makePropagator(bz), makeRiddersPropagator(bz),
geoCtx,
magCtx,
186 ZCylinderSurfaceBuilder(), epsPos, epsDir, epsMom, epsCov);
195 makePropagator(bz), makeRiddersPropagator(bz),
geoCtx,
magCtx,
197 DiscSurfaceBuilder(), epsPos, epsDir, epsMom, epsCov);
206 makePropagator(bz), makeRiddersPropagator(bz),
geoCtx,
magCtx,
208 PlaneSurfaceBuilder(), epsPos, epsDir, epsMom, epsCov);
219 makePropagator(bz), makeRiddersPropagator(bz),
geoCtx,
magCtx,
221 ZStrawSurfaceBuilder(), epsPos, epsDir, epsMom, epsCov);
224 BOOST_AUTO_TEST_SUITE_END()