IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 01e73513 authored by Felix Riehn's avatar Felix Riehn Committed by Maximilian Reininghaus
Browse files

fixed threshold calculation in proposal interface (kinetic vs total energy)

parent 2874660a
No related branches found
No related tags found
1 merge request!490Resolve "ObservationPlanes show non-existing particles"
...@@ -137,14 +137,14 @@ namespace corsika::proposal { ...@@ -137,14 +137,14 @@ namespace corsika::proposal {
// a hyper parameter which must be adjusted. // a hyper parameter which must be adjusted.
// //
auto const energy = vP.getEnergy(); auto const energy = vP.getEnergy();
auto const energy_lim = auto const energy_lim = std::max(
std::max(energy * 0.9, // either 10% relative loss max., or energy * 0.9, // either 10% relative loss max., or
get_kinetic_energy_propagation_threshold( (get_kinetic_energy_propagation_threshold(code) +
code) // energy thresholds globally defined for individual particles get_mass(code)) // energy thresholds globally defined for individual particles
* 0.9999 // need to go slightly below global e-cut to assure removal * 0.9999 // need to go slightly below global e-cut to assure removal
// in ParticleCut. This does not matter since at cut-time // in ParticleCut. This does not matter since at cut-time
// the entire energy is removed. // the entire energy is removed.
); );
// solving the track integral for giving energy lim // solving the track integral for giving energy lim
auto c = getCalculator(vP, calc); auto c = getCalculator(vP, calc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment