9 #include <boost/test/unit_test.hpp>
20 using namespace Acts::UnitLiterals;
26 BOOST_AUTO_TEST_SUITE(FatrasParticle)
35 BOOST_CHECK_EQUAL(
particle.position4(), Particle::Vector4::Zero());
36 BOOST_CHECK_EQUAL(
particle.position(), Particle::Vector3::Zero());
53 .setDirection(Particle::Vector3::UnitX())
54 .setAbsMomentum(2_GeV);
56 BOOST_CHECK_EQUAL(
particle.mass(), 1_GeV);
58 BOOST_CHECK_EQUAL(
particle.momentum4().x(), 2_GeV);
59 BOOST_CHECK_EQUAL(
particle.momentum4().y(), 0_GeV);
60 BOOST_CHECK_EQUAL(
particle.momentum4().z(), 0_GeV);
61 BOOST_CHECK_EQUAL(
particle.momentum4().w(), std::hypot(1_GeV, 2_GeV));
62 BOOST_CHECK_EQUAL(
particle.transverseMomentum(), 2_GeV);
63 BOOST_CHECK_EQUAL(
particle.absMomentum(), 2_GeV);
64 BOOST_CHECK_EQUAL(
particle.energy(), std::hypot(1_GeV, 2_GeV));
69 BOOST_CHECK_LT(
particle.transverseMomentum(), 2_GeV);
70 BOOST_CHECK_LT(
particle.absMomentum(), 2_GeV);
92 BOOST_AUTO_TEST_SUITE_END()