From 7b672378e57125598ed7b0574a6be00fbf4a8ad8 Mon Sep 17 00:00:00 2001
From: P-A Loizeau <p.-a.loizeau@gsi.de>
Date: Fri, 12 Jul 2024 18:09:56 +0200
Subject: [PATCH] Reduce lines-spread and fix spacings in some Init logs in Sts
 Reco

---
 core/detectors/sts/CbmStsParSetSensor.cxx | 7 +++++--
 reco/detectors/sts/CbmRecoSts.cxx         | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/core/detectors/sts/CbmStsParSetSensor.cxx b/core/detectors/sts/CbmStsParSetSensor.cxx
index 2e64b3308e..da09b3048f 100644
--- a/core/detectors/sts/CbmStsParSetSensor.cxx
+++ b/core/detectors/sts/CbmStsParSetSensor.cxx
@@ -86,8 +86,11 @@ std::string CbmStsParSetSensor::ToString() const
       ss << "Empty";
     else
       ss << "Parameters for " << fParams.size() << " sensors:\n";
-    for (const auto& [address, par] : fParams)
-      ss << address << "\n";
+    uint32_t uSensorCount = 0;
+    for (const auto& [address, par] : fParams) {
+      ss << "0x" << std::hex << address << std::dec << (0 < uSensorCount && 0 == uSensorCount % 16 ? "\n" : " ");
+      ++uSensorCount;
+    }
   }
   return ss.str();
 }
diff --git a/reco/detectors/sts/CbmRecoSts.cxx b/reco/detectors/sts/CbmRecoSts.cxx
index b076592916..8c92b82500 100644
--- a/reco/detectors/sts/CbmRecoSts.cxx
+++ b/reco/detectors/sts/CbmRecoSts.cxx
@@ -488,7 +488,7 @@ void CbmRecoSts::InitParams()
     fParSetSensor->setInputVersion(-2, 1);
     sourceSens = "user-defined, global";
   }
-  LOG(info) << GetName() << ": Sensor parameters (" << sourceSens << ")" << fParSetSensor->ToString();
+  LOG(info) << GetName() << ": Sensor parameters (" << sourceSens << ") " << fParSetSensor->ToString();
 
   // --- Sensor conditions
   TString sourceCond = "database";
-- 
GitLab