diff --git a/tests/framework/testGeometry.cpp b/tests/framework/testGeometry.cpp index 83abab67d43859b4a3ab3669c7fc053d00687c62..b820d946f6a3131d304fe4ba25076e1e263da8e0 100644 --- a/tests/framework/testGeometry.cpp +++ b/tests/framework/testGeometry.cpp @@ -347,7 +347,9 @@ TEST_CASE("Geometry Trajectories") { // create an arbitrary location of the particle const Point pos(rootCS, 50_m, 10_m, 80_m); // add it finally to the stack - auto const particle1{stack.addParticle(std::make_tuple(particle, plab, pos, 0_ns))}; + auto const particle1{stack.addParticle( + std::make_tuple(particle, calculate_kinetic_energy(plab.getNorm(), pmass), + plab.normalized(), pos, 0_ns))}; SECTION("Line") { SpeedType const V0 = 3_m / second;