From 4b8178bfdd9d92f86614297e26e800d883e3bc7f Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Wed, 5 Jul 2023 19:59:38 -0500
Subject: [PATCH] DetectorChecksum: ensure correct units

---
 DDCore/src/plugins/DetectorChecksum.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/DDCore/src/plugins/DetectorChecksum.cpp b/DDCore/src/plugins/DetectorChecksum.cpp
index 5d284829a..3233e8439 100644
--- a/DDCore/src/plugins/DetectorChecksum.cpp
+++ b/DDCore/src/plugins/DetectorChecksum.cpp
@@ -526,9 +526,9 @@ const DetectorChecksum::entry_t& DetectorChecksum::handleSolid(Solid solid) cons
         const auto& vtx = const_cast<TGeoTessellated*>(sh)->GetVertex(ivertex);
         log << "<position name\"" << nam << "_v" << ivertex
             << " lunit=\"" << m_len_unit_nam << "\""
-            << " x=\"" << vtx.x() << "\""
-            << " y=\"" << vtx.y() << "\""
-            << " z=\"" << vtx.z() << "\""
+            << " x=\"" << vtx.x()/m_len_unit << "\""
+            << " y=\"" << vtx.y()/m_len_unit << "\""
+            << " z=\"" << vtx.z()/m_len_unit << "\""
             << "/>" << newline;
       }
       log << "</define>" << newline;
-- 
GitLab