24 throw std::invalid_argument(
"Missing detector object");
27 throw std::invalid_argument(
"Missing random numbers tool");
30 throw std::invalid_argument(
31 "Random range needs to be at least 2-dimensional");
37 auto rng =
m_cfg.randomNumbers->spawnGenerator(ctx);
40 std::uniform_real_distribution<Acts::ActsScalar>
phiDist(-M_PI, M_PI);
41 std::uniform_real_distribution<Acts::ActsScalar> rDist(0.,
43 std::uniform_real_distribution<Acts::ActsScalar> zDist(-
m_cfg.randomRange[1
u],
54 std::size_t failedSearch = 0;
55 std::size_t failedAssignment = 0;
57 auto pos = testPosition();
66 if (failedSearch > 0) {
67 ACTS_ERROR(
"Failed to find detector volume " << failedSearch <<
" times");
69 if (failedAssignment > 0) {
70 ACTS_ERROR(
"Failed to assign detector volume " << failedAssignment