9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/tools/output_test_stream.hpp>
11 #include <boost/test/unit_test.hpp>
32 namespace tt = boost::test_tools;
33 using namespace Acts::UnitLiterals;
46 std::vector<std::unique_ptr<const Surface>>
stepState;
81 std::uniform_real_distribution<>(0.4
_GeV, 10
_GeV))) ^
84 std::uniform_real_distribution<>(-
M_PI,
M_PI))) ^
87 std::uniform_real_distribution<>(1.0,
M_PI - 1.0))) ^
90 bdata::distribution = std::uniform_int_distribution<>(0, 1))) ^
93 bdata::distribution = std::uniform_int_distribution<>(0, 100))) ^
96 double dcharge = -1 + 2 *
charge;
103 double px =
pT * cos(
phi);
104 double py =
pT * sin(
phi);
112 cov << 10
_mm, 0, 0.123, 0, 0.5, 0, 0, 10
_mm, 0, 0.162, 0, 0, 0.123, 0, 0.1, 0,
113 0, 0, 0, 0.162, 0, 0.1, 0, 0, 0.5, 0, 0, 0, 1. / (10
_GeV), 0, 0, 0, 0, 0,
128 test_surface_collection_,
130 bdata::distribution =
131 std::uniform_real_distribution<>(0.4
_GeV, 10
_GeV))) ^
133 bdata::distribution =
134 std::uniform_real_distribution<>(-
M_PI,
M_PI))) ^
136 bdata::distribution =
137 std::uniform_real_distribution<>(1.0,
M_PI - 1.0))) ^
140 bdata::distribution = std::uniform_int_distribution<>(0, 1))) ^
143 bdata::distribution = std::uniform_int_distribution<>(0, 100))) ^
146 double dcharge = -1 + 2 *
charge;
153 double px =
pT * cos(
phi);
154 double py =
pT * sin(
phi);
162 cov << 10
_mm, 0, 0.123, 0, 0.5, 0, 0, 10
_mm, 0, 0.162, 0, 0, 0.123, 0, 0.1, 0,
163 0, 0, 0, 0.162, 0, 0.1, 0, 0, 0.5, 0, 0, 0, 1. / (10
_GeV), 0, 0, 0, 0, 0,
177 auto collector_result = result.get<PlaneCollector::result_type>();
182 optionsEmpty.maxStepSize = 25
_cm;
183 optionsEmpty.debug =
true;
185 for (
const auto& colsf : collector_result.collected) {
186 const auto& csurface = colsf.surface;
196 BOOST_CHECK(cresult !=
nullptr);
203 test_material_interactor_,
205 bdata::distribution =
206 std::uniform_real_distribution<>(0.4
_GeV, 10
_GeV))) ^
208 bdata::distribution =
209 std::uniform_real_distribution<>(-
M_PI,
M_PI))) ^
211 bdata::distribution =
212 std::uniform_real_distribution<>(1.0,
M_PI - 1.0))) ^
215 bdata::distribution = std::uniform_int_distribution<>(0, 1))) ^
218 bdata::distribution = std::uniform_int_distribution<>(0, 100))) ^
221 double dcharge = -1 + 2 *
charge;
228 double px =
pT * cos(
phi);
229 double py =
pT * sin(
phi);
237 cov << 10
_mm, 0, 0.123, 0, 0.5, 0, 0, 10
_mm, 0, 0.162, 0, 0, 0.123, 0, 0.1, 0,
238 0, 0, 0, 0.162, 0, 0.1, 0, 0, 0.5, 0, 0, 0, 1. / (10
_GeV), 0, 0, 0, 0, 0,
251 if (result.endParameters) {
253 BOOST_CHECK_LT(result.endParameters->momentum().norm(),
259 std::cout <<
">>> Extrapolation output " << std::endl;
267 loop_protection_test,
269 bdata::distribution =
270 std::uniform_real_distribution<>(0.1
_GeV, 0.5
_GeV))) ^
272 bdata::distribution =
273 std::uniform_real_distribution<>(-
M_PI,
M_PI))) ^
275 bdata::distribution =
276 std::uniform_real_distribution<>(1.0,
M_PI - 1.0))) ^
279 bdata::distribution = std::uniform_int_distribution<>(0, 1))) ^
282 bdata::distribution = std::uniform_int_distribution<>(0, 100))) ^
285 double dcharge = -1 + 2 *
charge;
292 double px =
pT * cos(
phi);
293 double py =
pT * sin(
phi);
301 cov << 10
_mm, 0, 0.123, 0, 0.5, 0, 0, 10
_mm, 0, 0.162, 0, 0, 0.123, 0, 0.1, 0,
302 0, 0, 0, 0.162, 0, 0.1, 0, 0, 0.5, 0, 0, 0, 1. / (10
_GeV), 0, 0, 0, 0, 0,
318 if (mom.norm() < pmax) {
319 BOOST_CHECK_LT(status.pathLength, options.
pathLimit);