From 87757a38862185fbd52268e6f0753115b259d2bb Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Thu, 21 Mar 2024 15:53:05 +0100 Subject: [PATCH] Improve debugging of g4units slot --- DDG4/src/Geant4SensDetAction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DDG4/src/Geant4SensDetAction.cpp b/DDG4/src/Geant4SensDetAction.cpp index 465ca0e14..3de8ab5ea 100644 --- a/DDG4/src/Geant4SensDetAction.cpp +++ b/DDG4/src/Geant4SensDetAction.cpp @@ -279,9 +279,9 @@ long long int Geant4Sensitive::cellID(const G4Step* step) { error("....... TGeo-local: (%f, %f, %f) TGeo-global: (%f, %f, %f)", loc.x(), loc.y(), loc.z(), glob.x(), glob.y(), glob.z()); if ( h.pre ) - error("....... Pre-step: %s SD: %s", h.volName(h.pre), h.sdName(h.pre)); + error("....... Pre-step: %s SD: %s", h.volName(h.pre), h.sdName(h.pre).c_str()); if ( h.post ) - error("....... Post-step: %s SD: %s", h.volName(h.post), h.sdName(h.post)); + error("....... Post-step: %s SD: %s", h.volName(h.post), h.sdName(h.post).c_str()); std::rethrow_exception(eptr); } } -- GitLab