From 818beb062b4a5973b1469110b04ca082fbda0a8d Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Mon, 15 Apr 2024 18:15:19 +0200
Subject: [PATCH] DDSim: ParticleHandler: make compatible with new cppyy

---
 DDG4/python/DDSim/Helper/ParticleHandler.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/DDG4/python/DDSim/Helper/ParticleHandler.py b/DDG4/python/DDSim/Helper/ParticleHandler.py
index 9b7aafe42..147211dab 100644
--- a/DDG4/python/DDSim/Helper/ParticleHandler.py
+++ b/DDG4/python/DDSim/Helper/ParticleHandler.py
@@ -143,7 +143,7 @@ class ParticleHandler(ConfigHelper):
       except AttributeError as e:
         logger.debug("Attribute tracker_region_zmin for asymmetric tracker region missing %s", e)
         logger.debug("  will use symmetric region defined by tracker_region_zmax")
-        user.TrackingVolume_Zmin = str(-float(user.TrackingVolume_Zmax))
+        user.TrackingVolume_Zmin = str(-float(DDG4.tracker_region_zmax))
 
       logger.info(" *** definition of tracker region *** ")
       logger.info("    tracker_region_zmin = %s", user.TrackingVolume_Zmin)
-- 
GitLab