From ec9f53381dd1e359e4b0b11febab61f5a46e31fe Mon Sep 17 00:00:00 2001
From: Felix Riehn <felix@matilda>
Date: Fri, 22 Jan 2021 13:26:59 +0000
Subject: [PATCH] testCONEX

---
 tests/modules/testCONEX.cpp | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/tests/modules/testCONEX.cpp b/tests/modules/testCONEX.cpp
index 621ae626a..34718d69b 100644
--- a/tests/modules/testCONEX.cpp
+++ b/tests/modules/testCONEX.cpp
@@ -97,13 +97,15 @@ TEST_CASE("CONEXSourceCut") {
 
   auto const emPosition = showerCore + showerAxis.getDirection() * (-20_km);
 
-  std::cout << "position injection: "
-            << injectionPos.getCoordinates(conex.getObserverCS()) << " "
-            << injectionPos.getCoordinates(rootCS) << std::endl;
-  std::cout << "position core: " << showerCore.getCoordinates(conex.getObserverCS())
-            << " " << showerCore.getCoordinates(rootCS) << std::endl;
-  std::cout << "position EM: " << emPosition.getCoordinates(conex.getObserverCS()) << " "
-            << emPosition.getCoordinates(rootCS) << std::endl;
+  CORSIKA_LOG_DEBUG("position injection: {} {}",
+                    injectionPos.getCoordinates(conex.getObserverCS()),
+                    injectionPos.getCoordinates(rootCS));
+  CORSIKA_LOG_DEBUG("position core: {} {}",
+                    showerCore.getCoordinates(conex.getObserverCS()),
+                    showerCore.getCoordinates(rootCS));
+  CORSIKA_LOG_DEBUG("position EM: {} {}",
+                    emPosition.getCoordinates(conex.getObserverCS()),
+                    emPosition.getCoordinates(rootCS));
 
   conex.addParticle(Code::Proton, Eem, 0_eV, emPosition, momentum.normalized(), 0_s);
   // supperimpose a photon
-- 
GitLab