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 "Particle.hpp"
26 namespace tt = boost::test_tools;
32 double m = 134.9766 * Acts::units::_MeV;
39 Acts::Vector3D momentumCentral(1500. * Acts::units::_MeV, 0., 0.);
40 Particle pionCentral(position, momentumCentral,
m, -1.);
43 Acts::Vector3D positionFwd(0., 0., 100.);
44 Acts::Vector3D momentumFwd(10. * Acts::units::_MeV, 10. * Acts::units::_MeV,
45 1500. * Acts::units::_MeV);
46 Particle pionFwd(positionFwd, momentumFwd,
m, -1.);
60 BOOST_TEST(pT_c(pionCentral), 1500. * Acts::units::_MeV);
61 BOOST_TEST(p_c(pionCentral), 1500. * Acts::units::_MeV);
62 BOOST_CHECK(E_c(pionCentral) > p_c(pionCentral));
64 BOOST_CHECK_CLOSE(vR_c(pionCentral), 0., 10
e-5);
65 BOOST_CHECK_CLOSE(vZ_c(pionCentral), 0., 10
e-5);
68 BOOST_CHECK(eta_c(pionFwd) > eta_c(pionCentral));
69 BOOST_TEST(vZ_c(pionFwd), 100. * Acts::units::_MeV);