9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
46 namespace tt = boost::test_tools;
47 using namespace Acts::UnitLiterals;
60 std::vector<std::unique_ptr<const Surface>>
stepState;
73 auto bField = std::make_shared<BFieldType>(
Vector3{0, 0, 2_T});
94 std::uniform_real_distribution<>(0.4_GeV, 10_GeV))) ^
97 std::uniform_real_distribution<>(-M_PI, M_PI))) ^
100 std::uniform_real_distribution<>(1.0, M_PI - 1.0))) ^
103 bdata::distribution = std::uniform_int_distribution<>(0, 1))) ^
106 bdata::distribution = std::uniform_int_distribution<>(0, 100))) ^
110 double q = -1 + 2 *
charge;
117 cov << 10_mm, 0, 0.123, 0, 0.5, 0, 0, 10_mm, 0, 0.162, 0, 0, 0.123, 0, 0.1, 0,
118 0, 0, 0, 0.162, 0, 0.1, 0, 0, 0.5, 0, 0, 0, 1. / (10_GeV), 0, 0, 0, 0, 0,
134 test_surface_collection_,
136 bdata::distribution =
137 std::uniform_real_distribution<>(0.4_GeV, 10_GeV))) ^
139 bdata::distribution =
140 std::uniform_real_distribution<>(-M_PI, M_PI))) ^
142 bdata::distribution =
143 std::uniform_real_distribution<>(1.0, M_PI - 1.0))) ^
146 bdata::distribution = std::uniform_int_distribution<>(0, 1))) ^
149 bdata::distribution = std::uniform_int_distribution<>(0, 100))) ^
153 double q = -1 + 2 *
charge;
160 cov << 10_mm, 0, 0.123, 0, 0.5, 0, 0, 10_mm, 0, 0.162, 0, 0, 0.123, 0, 0.1, 0,
161 0, 0, 0, 0.162, 0, 0.1, 0, 0, 0.5, 0, 0, 0, 1. / (10_GeV), 0, 0, 0, 0, 0,
175 auto collector_result = result.get<PlaneCollector::result_type>();
180 optionsEmpty.maxStepSize = 25_cm;
182 for (
const auto& colsf : collector_result.collected) {
183 const auto& csurface = colsf.surface;
193 BOOST_CHECK(cresult.has_value());
200 test_material_interactor_,
202 bdata::distribution =
203 std::uniform_real_distribution<>(0.4_GeV, 10_GeV))) ^
205 bdata::distribution =
206 std::uniform_real_distribution<>(-M_PI, M_PI))) ^
208 bdata::distribution =
209 std::uniform_real_distribution<>(1.0, M_PI - 1.0))) ^
212 bdata::distribution = std::uniform_int_distribution<>(0, 1))) ^
215 bdata::distribution = std::uniform_int_distribution<>(0, 100))) ^
219 double q = -1 + 2 *
charge;
226 cov << 10_mm, 0, 0.123, 0, 0.5, 0, 0, 10_mm, 0, 0.162, 0, 0, 0.123, 0, 0.1, 0,
227 0, 0, 0, 0.162, 0, 0.1, 0, 0, 0.5, 0, 0, 0, 1. / (10_GeV), 0, 0, 0, 0, 0,
238 if (result.endParameters) {
240 BOOST_CHECK_LT(result.endParameters->absoluteMomentum(),
248 loop_protection_test,
250 bdata::distribution =
251 std::uniform_real_distribution<>(0.1_GeV, 0.5_GeV))) ^
253 bdata::distribution =
254 std::uniform_real_distribution<>(-M_PI, M_PI))) ^
256 bdata::distribution =
257 std::uniform_real_distribution<>(1.0, M_PI - 1.0))) ^
260 bdata::distribution = std::uniform_int_distribution<>(0, 1))) ^
263 bdata::distribution = std::uniform_int_distribution<>(0, 100))) ^
267 double q = -1 + 2 *
charge;
274 cov << 10_mm, 0, 0.123, 0, 0.5, 0, 0, 10_mm, 0, 0.162, 0, 0, 0.123, 0, 0.1, 0,
275 0, 0, 0, 0.162, 0, 0.1, 0, 0, 0.5, 0, 0, 0, 1. / (10_GeV), 0, 0, 0, 0, 0,