9 #include <boost/test/unit_test.hpp>
17 #include <type_traits>
19 using namespace Acts::UnitLiterals;
21 static auto eps = std::numeric_limits<double>::epsilon();
23 BOOST_AUTO_TEST_SUITE(EventDataParticleHypothesis)
26 auto p = Acts::NeutralParticleHypothesis::pion0();
28 BOOST_CHECK_EQUAL(
p.extractCharge(1.23), 0_e);
29 BOOST_CHECK_EQUAL(
p.extractCharge(2.54), 0_e);
30 BOOST_CHECK_EQUAL(
p.extractCharge(-1.98), 0_e);
31 BOOST_CHECK_EQUAL(
p.extractCharge(-2.23), 0_e);
39 BOOST_CHECK_EQUAL(
p.extractCharge(1.23), 1_e);
40 BOOST_CHECK_EQUAL(
p.extractCharge(2.54), 1_e);
41 BOOST_CHECK_EQUAL(
p.extractCharge(-1.98), -1_e);
42 BOOST_CHECK_EQUAL(
p.extractCharge(-2.23), -1_e);
51 BOOST_CHECK_EQUAL(
p.extractCharge(1.23), 1_e);
52 BOOST_CHECK_EQUAL(
p.extractCharge(2.54), 1_e);
53 BOOST_CHECK_EQUAL(
p.extractCharge(-1.98), -1_e);
54 BOOST_CHECK_EQUAL(
p.extractCharge(-2.23), -1_e);
63 BOOST_CHECK_EQUAL(
p.extractCharge(1.23), 3_e);
64 BOOST_CHECK_EQUAL(
p.extractCharge(2.54), 3_e);
65 BOOST_CHECK_EQUAL(
p.extractCharge(-1.98), -3_e);
66 BOOST_CHECK_EQUAL(
p.extractCharge(-2.23), -3_e);
75 BOOST_CHECK_EQUAL(
p.extractCharge(1.23), 0_e);
76 BOOST_CHECK_EQUAL(
p.extractCharge(2.54), 0_e);
77 BOOST_CHECK_EQUAL(
p.extractCharge(-1.98), 0_e);
78 BOOST_CHECK_EQUAL(
p.extractCharge(-2.23), 0_e);
90 BOOST_CHECK_EQUAL(
p.extractCharge(1.23), 1_e);
91 BOOST_CHECK_EQUAL(
p.extractCharge(2.54), 1_e);
92 BOOST_CHECK_EQUAL(
p.extractCharge(-1.98), -1_e);
93 BOOST_CHECK_EQUAL(
p.extractCharge(-2.23), -1_e);
102 BOOST_CHECK_EQUAL(
p.extractCharge(1.23), 3_e);
103 BOOST_CHECK_EQUAL(
p.extractCharge(2.54), 3_e);
104 BOOST_CHECK_EQUAL(
p.extractCharge(-1.98), -3_e);
105 BOOST_CHECK_EQUAL(
p.extractCharge(-2.23), -3_e);
111 BOOST_AUTO_TEST_SUITE_END()