From e583b532b8b0c83817f36bf983db1758f48060bb Mon Sep 17 00:00:00 2001
From: ralfulrich <ralf.ulrich@kit.edu>
Date: Mon, 20 Dec 2021 16:19:29 +0100
Subject: [PATCH] default value and docs

---
 corsika/framework/core/ParticleProperties.hpp | 5 +++--
 src/framework/core/code_generator.py          | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/corsika/framework/core/ParticleProperties.hpp b/corsika/framework/core/ParticleProperties.hpp
index 855d261f9..be6772f7a 100644
--- a/corsika/framework/core/ParticleProperties.hpp
+++ b/corsika/framework/core/ParticleProperties.hpp
@@ -62,7 +62,7 @@ namespace corsika {
    * @endcode
    * can be used to tune the transition where explicit production of new particles, e.g.
    * in Bremsstrahlung, is simulated versus a continuous handling of low-energy particles
-   * as generic energy losses.
+   * as generic energy losses. The default value for all particle types is 1 MeV.
    *
    * Furthermore, the functions:
    * @code {.cpp}
@@ -70,7 +70,8 @@ namespace corsika {
    * void constexpr set_kinetic_energy_propagation_threshold(Code const, HEPEnergyType
    *                                                         const);
    * @endcode
-   * are used to discard low energy particle during tracking.
+   * are used to discard low energy particle during tracking. The default value for all
+   * particle types is 1 GeV.
    *
    * @addtogroup Particles
    * @{
diff --git a/src/framework/core/code_generator.py b/src/framework/core/code_generator.py
index 9e8c41a37..7fa749916 100755
--- a/src/framework/core/code_generator.py
+++ b/src/framework/core/code_generator.py
@@ -384,7 +384,7 @@ def gen_properties(particle_db):
     # particle threshold table, initially set to 0
     string += "static std::array<HEPEnergyType, size> propagation_thresholds = {\n"
     for k in particle_db:
-        string += " 0 * electronvolt, // {name:s}\n".format(
+        string += " 1e9 * electronvolt, // {name:s}\n".format(
             name=k)
     string += "};\n\n"
     string += "static HEPEnergyType threshold_nuclei = 0_eV;\n"
-- 
GitLab