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
405cbe35
Commit
405cbe35
authored
4 years ago
by
Felix Riehn
Browse files
Options
Downloads
Patches
Plain Diff
fixed merge, do clang
parent
bf4e9f3f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Processes/Sibyll/Interaction.cc
+4
-5
4 additions, 5 deletions
Processes/Sibyll/Interaction.cc
Processes/Sibyll/testSibyll.cc
+1
-2
1 addition, 2 deletions
Processes/Sibyll/testSibyll.cc
with
5 additions
and
7 deletions
Processes/Sibyll/Interaction.cc
+
4
−
5
View file @
405cbe35
...
@@ -327,12 +327,11 @@ namespace corsika::process::sibyll {
...
@@ -327,12 +327,11 @@ namespace corsika::process::sibyll {
Ecm_final
+=
psib
.
GetEnergy
();
Ecm_final
+=
psib
.
GetEnergy
();
}
}
cout
<<
"conservation (all GeV):"
<<
endl
cout
<<
"conservation (all GeV):"
<<
endl
<<
"Ecm_initial(per nucleon)="
<<
Ecm
/
1
_GeV
<<
"Ecm_initial(per nucleon)="
<<
Ecm
/
1
_GeV
<<
" Ecm_final(per nucleon)="
<<
" Ecm_final(per nucleon)="
<<
Ecm_final
*
2.
/
(
get_nwounded
()
+
1
)
/
1
_GeV
<<
endl
<<
Ecm_final
*
2.
/
(
get_nwounded
()
+
1
)
/
1
_GeV
<<
endl
<<
"Elab_initial="
<<
Etot
/
1
_GeV
<<
"Elab_initial="
<<
Etot
/
1
_GeV
<<
" Elab_final="
<<
Elab_final
/
1
_GeV
<<
" Elab_final="
<<
Elab_final
/
1
_GeV
<<
" diff (%)="
<<
(
Elab_final
/
Etot
/
get_nwounded
()
-
1
)
*
100
<<
" diff (%)="
<<
(
Elab_final
/
Etot
/
get_nwounded
()
-
1
)
*
100
<<
" E in nucleons="
<<
constants
::
nucleonMass
*
get_nwounded
()
/
1
_GeV
<<
" E in nucleons="
<<
constants
::
nucleonMass
*
get_nwounded
()
/
1
_GeV
<<
endl
<<
endl
<<
"Plab_initial="
<<
(
pProjectileLab
/
1
_GeV
).
GetComponents
()
<<
"Plab_initial="
<<
(
pProjectileLab
/
1
_GeV
).
GetComponents
()
<<
", Plab_final="
<<
(
Plab_final
/
1
_GeV
).
GetComponents
()
<<
endl
;
<<
", Plab_final="
<<
(
Plab_final
/
1
_GeV
).
GetComponents
()
<<
endl
;
...
...
This diff is collapsed.
Click to expand it.
Processes/Sibyll/testSibyll.cc
+
1
−
2
View file @
405cbe35
...
@@ -203,7 +203,7 @@ TEST_CASE("SibyllInterface", "[processes]") {
...
@@ -203,7 +203,7 @@ TEST_CASE("SibyllInterface", "[processes]") {
[[
maybe_unused
]]
const
GrammageType
length
=
model
.
GetInteractionLength
(
particle
);
[[
maybe_unused
]]
const
GrammageType
length
=
model
.
GetInteractionLength
(
particle
);
}
}
SECTION
(
"InteractionInterface - high energy"
)
{
SECTION
(
"InteractionInterface - high energy"
)
{
setup
::
Stack
stack
;
setup
::
Stack
stack
;
const
HEPEnergyType
E0
=
60
_EeV
;
const
HEPEnergyType
E0
=
60
_EeV
;
...
@@ -221,7 +221,6 @@ TEST_CASE("SibyllInterface", "[processes]") {
...
@@ -221,7 +221,6 @@ TEST_CASE("SibyllInterface", "[processes]") {
Interaction
model
;
Interaction
model
;
model
.
Init
();
[[
maybe_unused
]]
const
process
::
EProcessReturn
ret
=
model
.
DoInteraction
(
projectile
);
[[
maybe_unused
]]
const
process
::
EProcessReturn
ret
=
model
.
DoInteraction
(
projectile
);
auto
const
pSum
=
sumMomentum
(
view
,
cs
);
auto
const
pSum
=
sumMomentum
(
view
,
cs
);
CHECK
(
pSum
.
GetComponents
(
cs
).
GetX
()
/
P0
==
Approx
(
1
).
margin
(
0.05
));
CHECK
(
pSum
.
GetComponents
(
cs
).
GetX
()
/
P0
==
Approx
(
1
).
margin
(
0.05
));
...
...
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