From e0b279423fd97656954b5a56ba6155817ba316e0 Mon Sep 17 00:00:00 2001 From: Leonhard Reichenbach Date: Mon, 28 Aug 2023 14:49:10 +0200 Subject: [PATCH] Update logging --- k4ActsTracking/src/components/GeoSvc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/k4ActsTracking/src/components/GeoSvc.cpp b/k4ActsTracking/src/components/GeoSvc.cpp index 82b9d6e..e186e2b 100644 --- a/k4ActsTracking/src/components/GeoSvc.cpp +++ b/k4ActsTracking/src/components/GeoSvc.cpp @@ -26,6 +26,7 @@ #include "Acts/Surfaces/PlaneSurface.hpp" #include "Acts/Visualization/GeometryView3D.hpp" #include "Acts/Visualization/ObjVisualization3D.hpp" +#include "Acts/Utilities/Logger.hpp" #include "DD4hep/Printout.h" #include "GaudiKernel/Service.h" #include "TGeoManager.h" @@ -69,7 +70,8 @@ StatusCode GeoSvc::initialize() { double layerEnvelopeZ = Acts::UnitConstants::mm; double defaultLayerThickness = Acts::UnitConstants::fm; using Acts::sortDetElementsByID; - m_trackingGeo = Acts::convertDD4hepDetector(m_dd4hepGeo->world(), m_actsLoggingLevel, bTypePhi, bTypeR, bTypeZ, + auto logger = Acts::getDefaultLogger("k4ActsTracking", m_actsLoggingLevel); + m_trackingGeo = Acts::convertDD4hepDetector(m_dd4hepGeo->world(), *logger, bTypePhi, bTypeR, bTypeZ, layerEnvelopeR, layerEnvelopeZ, defaultLayerThickness, sortDetElementsByID, m_trackingGeoCtx, m_materialDeco);