From ef399c128e1159c4a6d9c6abca3b7b371fad82a8 Mon Sep 17 00:00:00 2001
From: ralfulrich <ralf.ulrich@kit.edu>
Date: Sat, 22 May 2021 12:30:21 +0200
Subject: [PATCH] Fixed missing include

---
 corsika/detail/modules/epos/Interaction.inl | 3 +--
 corsika/modules/Random.hpp                  | 8 ++++++++
 examples/corsika.cpp                        | 4 +---
 3 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/corsika/detail/modules/epos/Interaction.inl b/corsika/detail/modules/epos/Interaction.inl
index fc29c25be..6057cdfe1 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 8882a5ff6..116cba6b8 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 134da28be..fd048470d 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;
-- 
GitLab