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
9614675d
Commit
9614675d
authored
3 years ago
by
ralfulrich
Committed by
Ralf Ulrich
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
better debug output
parent
fa194cf8
No related branches found
No related tags found
1 merge request
!385
make conex module fit for multiple events. Added init function
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/modules/sibyll/Interaction.inl
+9
-10
9 additions, 10 deletions
corsika/detail/modules/sibyll/Interaction.inl
corsika/detail/modules/tracking/Intersect.inl
+1
-1
1 addition, 1 deletion
corsika/detail/modules/tracking/Intersect.inl
with
10 additions
and
11 deletions
corsika/detail/modules/sibyll/Interaction.inl
+
9
−
10
View file @
9614675d
...
@@ -206,10 +206,8 @@ namespace corsika::sibyll {
...
@@ -206,10 +206,8 @@ namespace corsika::sibyll {
// just for show:
// just for show:
// boost projecticle
// boost projecticle
[[
maybe_unused
]]
auto
const
PprojCoM
=
boost
.
toCoM
(
PprojLab
);
[[
maybe_unused
]]
auto
const
PprojCoM
=
boost
.
toCoM
(
PprojLab
);
// boost target
// boost target
[[
maybe_unused
]]
auto
const
PtargCoM
=
boost
.
toCoM
(
PtargLab
);
[[
maybe_unused
]]
auto
const
PtargCoM
=
boost
.
toCoM
(
PtargLab
);
CORSIKA_LOG_DEBUG
(
CORSIKA_LOG_DEBUG
(
"Interaction: ebeam CoM: {} GeV "
"Interaction: ebeam CoM: {} GeV "
"Interaction: pbeam CoM: {} GeV "
,
"Interaction: pbeam CoM: {} GeV "
,
...
@@ -328,15 +326,16 @@ namespace corsika::sibyll {
...
@@ -328,15 +326,16 @@ namespace corsika::sibyll {
Ecm_final
+=
psib
.
getEnergy
();
Ecm_final
+=
psib
.
getEnergy
();
}
}
CORSIKA_LOG_DEBUG
(
CORSIKA_LOG_DEBUG
(
"conservation (all GeV):"
"conservation (all GeV):
"
"Ecm_initial(per nucleon)={}, Ecm_final(per nucleon)={}, "
"Ecm_initial(per nucleon)={
:.2f
}, Ecm_final(per nucleon)={
:.2f
}, "
"Elab_initial={}, Elab_final={}, "
"Elab_initial={
:.2f
}, Elab_final={
:.2f
}, "
"diff (%)={}, "
"
Elab-
diff (%)={
:.2f
}, "
"
E
in nucleons={}, "
"
m
in
target
nucleons={
:.2f
}, "
"Plab_initial={}, "
"Plab_initial={
:.2f
}, "
"Plab_final={} "
,
"Plab_final={
:.2f
} "
,
Ecm
/
1
_GeV
,
Ecm_final
*
2.
/
(
get_nwounded
()
+
1
)
/
1
_GeV
,
Etot
/
1
_GeV
,
Ecm
/
1
_GeV
,
Ecm_final
*
2.
/
(
get_nwounded
()
+
1
)
/
1
_GeV
,
Etot
/
1
_GeV
,
Elab_final
/
1
_GeV
,
(
Elab_final
/
Etot
/
get_nwounded
()
-
1
)
*
100
,
Elab_final
/
1
_GeV
,
(
Elab_final
/
(
Etot
+
get_nwounded
()
*
constants
::
nucleonMass
)
-
1
)
*
100
,
constants
::
nucleonMass
*
get_nwounded
()
/
1
_GeV
,
constants
::
nucleonMass
*
get_nwounded
()
/
1
_GeV
,
(
pProjectileLab
/
1
_GeV
).
getComponents
(),
(
Plab_final
/
1
_GeV
).
getComponents
());
(
pProjectileLab
/
1
_GeV
).
getComponents
(),
(
Plab_final
/
1
_GeV
).
getComponents
());
}
}
...
...
This diff is collapsed.
Click to expand it.
corsika/detail/modules/tracking/Intersect.inl
+
1
−
1
View file @
9614675d
...
@@ -60,7 +60,7 @@ namespace corsika {
...
@@ -60,7 +60,7 @@ namespace corsika {
for
(
auto
const
&
node
:
volumeNode
.
getChildNodes
())
{
for
(
auto
const
&
node
:
volumeNode
.
getChildNodes
())
{
Intersections
const
time_intersections
=
TDerived
::
intersect
(
particle
,
*
node
);
Intersections
const
time_intersections
=
TDerived
::
intersect
(
particle
,
*
node
);
CORSIKA_LOG_DEBUG
(
"intersection times with child volume {}"
,
fmt
::
ptr
(
node
));
CORSIKA_LOG_DEBUG
(
"
search
intersection times with child volume {}
:
"
,
fmt
::
ptr
(
node
));
if
(
!
time_intersections
.
hasIntersections
())
{
continue
;
}
if
(
!
time_intersections
.
hasIntersections
())
{
continue
;
}
auto
const
t_entry
=
time_intersections
.
getEntry
();
auto
const
t_entry
=
time_intersections
.
getEntry
();
auto
const
t_exit
=
time_intersections
.
getExit
();
auto
const
t_exit
=
time_intersections
.
getExit
();
...
...
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