9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
28 #include "../PropagationDatasets.hpp"
29 #include "../PropagationTests.hpp"
33 namespace ds = ActsTests::PropagationDatasets;
34 using namespace Acts::UnitLiterals;
44 constexpr
auto epsPos = 10_um;
45 constexpr
auto epsDir = 1_mrad;
46 constexpr
auto epsMom = 5_MeV;
48 constexpr
auto epsCov = 0.07;
53 inline std::shared_ptr<const Acts::TrackingGeometry> makeDetector() {
57 static std::shared_ptr<const Acts::TrackingGeometry>
detector;
61 vConf.
length = {4_m, 4_m, 4_m};
62 vConf.
volumeMaterial = std::make_shared<const HomogeneousVolumeMaterial>(
66 conf.position = {0., 0., 0.};
67 conf.length = {4_m, 4_m, 4_m};
71 [=](
const auto& context,
const auto& inner,
const auto&) {
72 return cvb.trackingVolume(context, inner,
nullptr);
83 auto magField = std::make_shared<MagneticField>(
Acts::Vector3(0.0, 0.0, bz));
88 inline RiddersPropagator makeRiddersPropagator(
double bz) {
91 auto magField = std::make_shared<MagneticField>(
Acts::Vector3(0.0, 0.0, bz));
99 BOOST_AUTO_TEST_SUITE(PropagationAutodiffDenseConstant)
108 runForwardBackwardTest<Propagator, Acts::DenseStepperPropagatorOptions>(
124 epsPos, epsDir, epsMom);
135 epsPos, epsDir, epsMom);
146 epsPos, epsDir, epsMom);
158 epsPos, epsDir, epsMom);
169 makePropagator(bz), makeRiddersPropagator(bz),
geoCtx,
magCtx,
171 epsDir, epsMom, epsCov);
182 makePropagator(bz), makeRiddersPropagator(bz),
geoCtx,
magCtx,
184 ZCylinderSurfaceBuilder(), epsPos, epsDir, epsMom, epsCov);
193 makePropagator(bz), makeRiddersPropagator(bz),
geoCtx,
magCtx,
195 DiscSurfaceBuilder(), epsPos, epsDir, epsMom, epsCov);
204 makePropagator(bz), makeRiddersPropagator(bz),
geoCtx,
magCtx,
206 PlaneSurfaceBuilder(), epsPos, epsDir, epsMom, epsCov);
217 makePropagator(bz), makeRiddersPropagator(bz),
geoCtx,
magCtx,
219 ZStrawSurfaceBuilder(), epsPos, epsDir, epsMom, epsCov);
222 BOOST_AUTO_TEST_SUITE_END()