10 #define BOOST_TEST_MODULE KinemtaicCast 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/Units.hpp"
22 #include "Fatras/Selectors/KinematicCasts.hpp"
23 #include "Fatras/Selectors/SelectorHelpers.hpp"
24 #include "Particle.hpp"
27 namespace tt = boost::test_tools;
35 double m_pion = 134.9766 * Acts::units::_MeV;
43 Acts::Vector3D momentumCast(1500. * Acts::units::_MeV, 0., 0.);
47 Acts::Vector3D positionForward(0., 0., 100. * Acts::units::_mm);
48 Acts::Vector3D momentumForward(10. * Acts::units::_MeV,
49 10. * Acts::units::_MeV,
50 1500. * Acts::units::_MeV);
52 Particle pionForward(positionForward, momentumForward,
m_pion, -1.);
54 Acts::Vector3D positionBackward(0., 0., 0.);
55 Acts::Vector3D momentumBackward(10. * Acts::units::_MeV,
56 10. * Acts::units::_MeV,
57 -1500. * Acts::units::_MeV);
59 Particle pionBackward(positionBackward, momentumBackward,
m_pion, -1.);
73 BOOST_CHECK(!minEta05(detector, pionCast));
74 BOOST_CHECK(!minEtaAbs05(detector, pionCast));
77 BOOST_CHECK(minEta05(detector, pionForward));
78 BOOST_CHECK(minEtaAbs05(detector, pionForward));
85 BOOST_CHECK(maxEta05(detector, pionCast));
86 BOOST_CHECK(maxEta05(detector, pionCast));
89 BOOST_CHECK(!maxEta05(detector, pionForward));
90 BOOST_CHECK(!maxEta05(detector, pionForward));
102 BOOST_CHECK(!rangeEtaM0(detector, pionCast));
103 BOOST_CHECK(!rangeEtaM1(detector, pionCast));
106 BOOST_CHECK(!rangeEtaM0(detector, pionForward));
107 BOOST_CHECK(!rangeEtaM1(detector, pionForward));
110 BOOST_CHECK(rangeEtaM0(detector, pionBackward));
111 BOOST_CHECK(!rangeEtaM1(detector, pionBackward));