From a2b0f36883945dbaf40d50d4f0d8fcf077bbd7f7 Mon Sep 17 00:00:00 2001 From: Felix Riehn <friehn@lip.pt> Date: Fri, 13 Sep 2024 22:41:10 +0200 Subject: [PATCH] use arbitrary system boost in pythia interface --- corsika/detail/modules/pythia8/Interaction.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/corsika/detail/modules/pythia8/Interaction.inl b/corsika/detail/modules/pythia8/Interaction.inl index 0f09b8a0d..2b218e11e 100644 --- a/corsika/detail/modules/pythia8/Interaction.inl +++ b/corsika/detail/modules/pythia8/Interaction.inl @@ -250,7 +250,7 @@ namespace corsika::pythia8 { throw std::runtime_error("invalid target,projectile,energy combination."); } - COMBoost const boost{projectileP4NN, constants::nucleonMass}; + COMBoost const boost{projectileP4NN, targetP4NN}; // auto const proj4MomLab = labFrameBoost.toCoM(projectileP4); auto const& rotCS = boost.getRotatedCS(); // auto const pProjLab = proj4MomLab.getSpaceLikeComponents().getComponents(rotCS); -- GitLab