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
c4b8af2e
Commit
c4b8af2e
authored
4 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
fixed wrong logic in BetheBlochPDG
parent
f3270a8c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/modules/energy_loss/BetheBlochPDG.inl
+3
-1
3 additions, 1 deletion
corsika/detail/modules/energy_loss/BetheBlochPDG.inl
examples/vertical_EAS.cpp
+4
-2
4 additions, 2 deletions
examples/vertical_EAS.cpp
with
7 additions
and
3 deletions
corsika/detail/modules/energy_loss/BetheBlochPDG.inl
+
3
−
1
View file @
c4b8af2e
...
@@ -141,14 +141,16 @@ namespace corsika {
...
@@ -141,14 +141,16 @@ namespace corsika {
inline
ProcessReturn
BetheBlochPDG
::
doContinuous
(
setup
::
Stack
::
particle_type
&
p
,
inline
ProcessReturn
BetheBlochPDG
::
doContinuous
(
setup
::
Stack
::
particle_type
&
p
,
setup
::
Trajectory
const
&
t
,
setup
::
Trajectory
const
&
t
,
bool
const
limitStep
)
{
bool
const
)
{
// if this step was limiting the CORSIKA stepping, the particle is lost
// if this step was limiting the CORSIKA stepping, the particle is lost
/* see Issue https://gitlab.ikp.kit.edu/AirShowerPhysics/corsika/-/issues/389
if (limitStep) {
if (limitStep) {
fillProfile(t, p.getEnergy());
fillProfile(t, p.getEnergy());
p.setEnergy(p.getMass());
p.setEnergy(p.getMass());
return ProcessReturn::ParticleAbsorbed;
return ProcessReturn::ParticleAbsorbed;
}
}
*/
if
(
p
.
getChargeNumber
()
==
0
)
return
ProcessReturn
::
Ok
;
if
(
p
.
getChargeNumber
()
==
0
)
return
ProcessReturn
::
Ok
;
...
...
This diff is collapsed.
Click to expand it.
examples/vertical_EAS.cpp
+
4
−
2
View file @
c4b8af2e
...
@@ -101,8 +101,10 @@ int main(int argc, char** argv) {
...
@@ -101,8 +101,10 @@ int main(int argc, char** argv) {
CORSIKA_LOG_INFO
(
"vertical_EAS"
);
CORSIKA_LOG_INFO
(
"vertical_EAS"
);
if
(
argc
<
4
)
{
if
(
argc
<
4
)
{
std
::
cerr
<<
"usage: vertical_EAS <A> <Z> <energy/GeV> [seed]"
<<
std
::
endl
;
std
::
cerr
<<
"usage: vertical_EAS <A> <Z> <energy/GeV> [seed]
\n
"
std
::
cerr
<<
" if no seed is given, a random seed is chosen"
<<
std
::
endl
;
" if A=0, Z is interpreted as PDG code
\n
"
" if no seed is given, a random seed is chosen
\n
"
<<
std
::
endl
;
return
1
;
return
1
;
}
}
feenableexcept
(
FE_INVALID
);
feenableexcept
(
FE_INVALID
);
...
...
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