IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Air Shower Physics
corsika
Commits
01e73513
Commit
01e73513
authored
1 year ago
by
Felix Riehn
Committed by
Maximilian Reininghaus
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fixed threshold calculation in proposal interface (kinetic vs total energy)
parent
2874660a
No related branches found
No related tags found
1 merge request
!490
Resolve "ObservationPlanes show non-existing particles"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
corsika/detail/modules/proposal/ContinuousProcess.inl
+8
-8
8 additions, 8 deletions
corsika/detail/modules/proposal/ContinuousProcess.inl
with
8 additions
and
8 deletions
corsika/detail/modules/proposal/ContinuousProcess.inl
+
8
−
8
View file @
01e73513
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment