IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Pranav Sampathkumar
corsika
Commits
c50a6ef8
Commit
c50a6ef8
authored
4 years ago
by
ralfulrich
Committed by
Felix Riehn
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
style
parent
d665fb29
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
corsika/detail/modules/energy_loss/BetheBlochPDG.inl
+4
-5
4 additions, 5 deletions
corsika/detail/modules/energy_loss/BetheBlochPDG.inl
with
4 additions
and
5 deletions
corsika/detail/modules/energy_loss/BetheBlochPDG.inl
+
4
−
5
View file @
c50a6ef8
...
...
@@ -200,7 +200,8 @@ namespace corsika {
GrammageType
const
grammageStart
=
shower_axis_
.
getProjectedX
(
vTrack
.
getPosition
(
0
));
GrammageType
const
grammageEnd
=
shower_axis_
.
getProjectedX
(
vTrack
.
getPosition
(
1
));
GrammageType
deltaX
=
grammageEnd
-
grammageStart
;
if
(
deltaX
<
GrammageType
::
zero
())
deltaX
=
-
deltaX
;
// to catch upward-going particles
if
(
deltaX
<
GrammageType
::
zero
())
deltaX
=
-
deltaX
;
// to catch upward-going particles
if
(
deltaX
<
dX_threshold_
)
return
;
// only register the range that is covered by the profile
...
...
@@ -212,10 +213,8 @@ namespace corsika {
if
(
binEnd
<
0
)
binEnd
=
0
;
if
(
binEnd
>
maxBin
)
binEnd
=
maxBin
;
// in upward going showers binEnd may be smaller than binStart, but we don't care:
if
(
binStart
>
binEnd
)
{
std
::
swap
(
binStart
,
binEnd
);
}
if
(
binStart
>
binEnd
)
{
std
::
swap
(
binStart
,
binEnd
);
}
CORSIKA_LOG_DEBUG
(
"energy deposit of -dE={} between {} and {}"
,
-
dE
,
grammageStart
,
grammageEnd
);
...
...
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