IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 9614675d authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

better debug output

parent fa194cf8
No related branches found
No related tags found
1 merge request!385make conex module fit for multiple events. Added init function
...@@ -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());
} }
......
...@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment