From ade33cc5f60bb4b997011d04181aada81a370718 Mon Sep 17 00:00:00 2001
From: ybedfer <ybedfer@cern.ch>
Date: Mon, 15 Jul 2024 10:43:33 +0200
Subject: [PATCH] CylindircalGridPhiZ: Bug fix. "cellDimensions" now returns a
 quantity of the dimension of a length.

---
 DDCore/src/segmentations/CylindricalGridPhiZ.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/DDCore/src/segmentations/CylindricalGridPhiZ.cpp b/DDCore/src/segmentations/CylindricalGridPhiZ.cpp
index e0cee722c..284084727 100644
--- a/DDCore/src/segmentations/CylindricalGridPhiZ.cpp
+++ b/DDCore/src/segmentations/CylindricalGridPhiZ.cpp
@@ -92,7 +92,7 @@ Vector3D CylindricalGridPhiZ::position(const CellID& cID) const {
 
 std::vector<double> CylindricalGridPhiZ::cellDimensions(const CellID&) const {
 #if __cplusplus >= 201103L
-  return {_gridSizePhi, _gridSizeZ};
+  return {_radius*_gridSizePhi, _gridSizeZ};
 #else
   std::vector<double> cellDims(2,0.0);
   cellDims[0] = _radius*_gridSizePhi;
-- 
GitLab