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>
22 #include "Acts/Material/MaterialProperties.hpp"
30 #include "Particle.hpp"
35 namespace tt = boost::test_tools;
51 template <
typename detector_t,
typename particle_t>
52 bool operator()(
const detector_t &,
const particle_t &)
const {
62 std::ofstream
os(
"ScatteringAngles.csv",
67 HighlandScattering_test_,
70 bdata::distribution = std::uniform_real_distribution<>(0., 1.))) ^
73 bdata::distribution = std::uniform_real_distribution<>(0., 1.))) ^
76 bdata::distribution = std::uniform_real_distribution<>(0., 1.))) ^
79 std::uniform_real_distribution<>(0.5, 10.5))) ^
91 p * Acts::units::_GeV * Acts::Vector3D(
x,
y,
z).normalized();
94 double m = 105.658367 * Acts::units::_MeV;
104 double hsr = hscat(
generator, detector, particle);
105 double gamr = gamscat(
generator, detector, particle);
106 double genr = genscat(
generator, detector, particle);
108 BOOST_CHECK(hsr != 0.);
113 BOOST_CHECK(!
out.size());
117 std::vector<Particle> outgoing;
120 hsPhysicsList(
generator, detector, particle, outgoing);
121 BOOST_CHECK(!outgoing.size());
126 os <<
"p,highland,gaussian_mixture,general_mixture" <<
'\n';
127 os << particle.
p() <<
"," << hsr <<
"," << gamr <<
"," << genr <<
'\n';