diff --git a/corsika/framework/core/ParticleProperties.hpp b/corsika/framework/core/ParticleProperties.hpp index 855d261f9562705533e479b95942c65b4d9bf8a0..be6772f7ae6eedf99cb3b8b76de21de0f1f3de31 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 9e8c41a37b3a52a70df514d9e68b7f107a7fb134..7fa7499166edec35f4aaf6c1e8f13bb19388e8db 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"