From 62b5d53f081d28c5511641ea6a16d81dbf8eaecc Mon Sep 17 00:00:00 2001 From: gianelle Date: Mon, 18 Nov 2024 08:53:13 +0100 Subject: [PATCH] Use log function instead of std::cout --- ACTSTracking/Helpers.hxx | 2 ++ src/Helpers.cxx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ACTSTracking/Helpers.hxx b/ACTSTracking/Helpers.hxx index 2c7544a..eee5b70 100644 --- a/ACTSTracking/Helpers.hxx +++ b/ACTSTracking/Helpers.hxx @@ -5,6 +5,8 @@ #include #include +#include "streamlog/streamlog.h" + #include #include "Acts/EventData/ParticleHypothesis.hpp" #include diff --git a/src/Helpers.cxx b/src/Helpers.cxx index c3157d6..3a9fd97 100644 --- a/src/Helpers.cxx +++ b/src/Helpers.cxx @@ -361,7 +361,7 @@ EVENT::Track* ACTS2Marlin_track( track->trackStates().push_back(trackStateAtCalo); } else{ - std::cout << "Failed propagation! " << std::endl; + streamlog_out(DEBUG) << "Failed propagation (>pi/2)! " << resultPropP.error() << std::endl; } } else{ @@ -376,7 +376,7 @@ EVENT::Track* ACTS2Marlin_track( track->trackStates().push_back(trackStateAtCalo); } else{ - std::cout << "Failed propagation!" << std::endl; + streamlog_out(DEBUG) << "Failed propagation (