diff --git a/corsika/detail/modules/epos/Interaction.inl b/corsika/detail/modules/epos/Interaction.inl index fc29c25be9c7359a7bb206b4c04e6e0a4fd8aa53..6057cdfe1dde88df41b280718bc14a252ad16eb3 100644 --- a/corsika/detail/modules/epos/Interaction.inl +++ b/corsika/detail/modules/epos/Interaction.inl @@ -564,8 +564,7 @@ namespace corsika::epos { " id= {}" " p= {}", pid, momentum.getComponents() / 1_GeV); - auto pnew = - view.addSecondary(std::make_tuple(pid, energy, momentum, pOrig, tOrig)); + auto pnew = view.addSecondary(std::make_tuple(pid, momentum, pOrig, tOrig)); Plab_final += pnew.getMomentum(); Elab_final += pnew.getEnergy(); } diff --git a/corsika/modules/Random.hpp b/corsika/modules/Random.hpp index 8882a5ff6494ff7cad00884e70939acecd1b14a8..116cba6b8ca86d0a5437f0226ae9ffcc00cea850 100644 --- a/corsika/modules/Random.hpp +++ b/corsika/modules/Random.hpp @@ -1,3 +1,11 @@ +/* + * (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu + * + * This software is distributed under the terms of the GNU General Public + * Licence version 3 (GPL Version 3). See file LICENSE for a full version of + * the license. + */ + #pragma once /* diff --git a/examples/corsika.cpp b/examples/corsika.cpp index 134da28be6fc96f0f6c8cffed01b227f63fbfc20..fd048470df3c3d4c598ab35c0be67b3db0ebf0e1 100644 --- a/examples/corsika.cpp +++ b/examples/corsika.cpp @@ -72,9 +72,7 @@ executable. If you include the header below multiple times and link this togehter, it will fail. */ -#include <corsika/modules/sibyll/Random.hpp> -#include <corsika/modules/urqmd/Random.hpp> -#include <corsika/modules/qgsjetII/Random.hpp> +#include <corsika/modules/Random.hpp> using namespace corsika; using namespace std;