9 #include <boost/test/unit_test.hpp>
26 namespace tt = boost::test_tools;
27 using namespace Acts::UnitLiterals;
36 double t = 0,
p = 0, q = 0;
37 bool covTransport =
false;
87 auto bound = std::make_shared<const CuboidVolumeBounds>(1_m, 1_m, 1_m);
89 auto volMat = std::make_shared<const HomogeneousVolumeMaterial>(mat);
111 BOOST_CHECK_EQUAL(volMatInt.volume.trackingVolume, volume.get());
113 BOOST_CHECK_EQUAL(volMatInt.time, stepper.
time(state.
stepping));
115 BOOST_CHECK_EQUAL(volMatInt.momentum,
117 BOOST_CHECK_EQUAL(volMatInt.absQ, std::abs(stepper.
charge(state.
stepping)));
120 BOOST_CHECK_EQUAL(volMatInt.absPdg,
122 BOOST_CHECK_EQUAL(volMatInt.performCovarianceTransport,
127 bool result = volMatInt.evaluateMaterialSlab(state, navigator);
129 BOOST_CHECK_EQUAL(volMatInt.slab.material(), mat);
130 BOOST_CHECK_EQUAL(volMatInt.slab.thickness(), 1.);
131 BOOST_CHECK_EQUAL(volMatInt.pathCorrection, 0.);
135 result = volMatInt.evaluateMaterialSlab(state, navigator);
136 BOOST_CHECK(!result);
137 BOOST_CHECK_EQUAL(volMatInt.pathCorrection, 0.);