9 #include <boost/test/unit_test.hpp>
19 using namespace Acts::UnitLiterals;
23 struct SterileProcess {
24 int some_parameter = 0;
27 template <
typename generator_t,
typename detector_t,
typename particle_t>
28 bool operator()(generator_t &,
const detector_t &, particle_t &,
29 std::vector<particle_t> &)
const {
37 template <
typename generator_t,
typename detector_t,
typename particle_t>
38 bool operator()(generator_t &,
const detector_t &, particle_t &,
39 std::vector<particle_t> &)
const {
52 BOOST_AUTO_TEST_SUITE(FatrasPhysicsList)
57 std::vector<ActsFatras::Particle> outgoing;
61 not emptyList(fix.generator, fix.slab, fix.inputParticle, outgoing));
67 std::vector<ActsFatras::Particle> outgoing;
70 sterileList.
get<SterileProcess>().some_parameter = 2;
71 BOOST_TEST(sterileList.
get<SterileProcess>().some_parameter == 2);
75 not sterileList(fix.generator, fix.slab, fix.inputParticle, outgoing));
81 std::vector<ActsFatras::Particle> outgoing;
84 BOOST_TEST(fatalList(fix.generator, fix.slab, fix.inputParticle, outgoing));
86 fatalList.
disable<FatalProcess>();
88 not fatalList(fix.generator, fix.slab, fix.inputParticle, outgoing));
94 std::vector<ActsFatras::Particle> outgoing;
97 BOOST_TEST(physicsList(fix.generator, fix.slab, fix.inputParticle, outgoing));
99 physicsList.
disable<FatalProcess>();
101 not physicsList(fix.generator, fix.slab, fix.inputParticle, outgoing));
104 BOOST_AUTO_TEST_SUITE_END()