10 #define BOOST_TEST_MODULE AbortList Tests
12 #include <boost/test/included/unit_test.hpp>
15 #include <boost/test/data/test_case.hpp>
18 #include <boost/test/output_test_stream.hpp>
21 #include "Acts/Utilities/Definitions.hpp"
25 #include "Particle.hpp"
30 namespace tt = boost::test_tools;
46 template <
typename detector_t,
typename particle_t>
47 bool operator()(
const detector_t &,
const particle_t &)
const {
58 template <
typename generator_t,
typename detector_t,
typename particle_t>
59 std::vector<particle_t>
operator()(generator_t &,
const detector_t &,
60 particle_t &
in)
const {
62 in.energyLoss((1. -
cvalue) * in.E());
72 bdata::distribution = std::uniform_real_distribution<>(0., 1.))) ^
75 bdata::distribution = std::uniform_real_distribution<>(0., 1.))) ^
78 bdata::distribution = std::uniform_real_distribution<>(0., 1.))) ^
81 bdata::distribution = std::uniform_real_distribution<>(1., 100.))) ^
95 p * Acts::units::_GeV * Acts::Vector3D(
x,
y,
z).normalized();
98 double m = 105.658367 * Acts::units::_MeV;
104 std::vector<Particle> outgoing;
109 EnergyLoss cEnergyLoss;
112 BOOST_CHECK(!cEnergyLoss(generator, detector, particle, outgoing));
115 BOOST_CHECK(momentum.norm() != particle.
momentum().norm());
121 BOOST_CHECK(!energyLossPhysics(generator, detector, particle, outgoing));