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
d32f51b7
Commit
d32f51b7
authored
3 years ago
by
ralfulrich
Committed by
Ralf Ulrich
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
catch particles trying to evade the observation plane
parent
c5ad8941
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!369
Resolve "Trajectories crossing observation plane"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
corsika/detail/modules/ObservationPlane.inl
+10
-6
10 additions, 6 deletions
corsika/detail/modules/ObservationPlane.inl
with
10 additions
and
6 deletions
corsika/detail/modules/ObservationPlane.inl
+
10
−
6
View file @
d32f51b7
...
...
@@ -27,16 +27,20 @@ namespace corsika {
The current step did not yet reach the ObservationPlane, do nothing now and wait:
*/
if
(
!
stepLimit
)
{
#ifdef DEBUG
// @todo this is actually needed to fix small instabilities of the leap-frog
// tracking: Note, this is NOT a general solution and should be clearly revised with
// a more robust tracking. #ifdef DEBUG
if
(
deleteOnHit_
)
{
LengthType
const
check
=
(
particle
.
getPosition
()
-
plane_
.
getCenter
()).
dot
(
plane_
.
getNormal
());
if
(
check
<
0
_m
)
{
CORSIKA_LOG_DEBUG
(
"PARTICLE AVOIDED OBSERVATIONPLANE {}"
,
check
);
}
}
#endif
return
ProcessReturn
::
Ok
;
CORSIKA_LOG_WARN
(
"PARTICLE AVOIDED OBSERVATIONPLANE {}"
,
check
);
CORSIKA_LOG_WARN
(
"Temporary fix: write and remove particle."
);
}
else
return
ProcessReturn
::
Ok
;
}
else
// #endif
return
ProcessReturn
::
Ok
;
}
HEPEnergyType
const
energy
=
particle
.
getEnergy
();
...
...
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