From b56f71d50dffed360b232bbcb2bb9ca3945f67f2 Mon Sep 17 00:00:00 2001
From: Marilena Bandieramonte <marilena.bandieramonte@cern.ch>
Date: Tue, 14 May 2019 11:28:29 +0200
Subject: [PATCH] Update of preInclude.AMSB.py file. C1Mass and N1Mass were
 float and this was raising an unknown exception in the master. Changing from
 float to eval, as it is done in 21.0, solves the problem.

---
 .../share/specialConfig/preInclude.AMSB.py                    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Simulation/SimulationJobOptions/share/specialConfig/preInclude.AMSB.py b/Simulation/SimulationJobOptions/share/specialConfig/preInclude.AMSB.py
index f03999d55fd..807f4839820 100644
--- a/Simulation/SimulationJobOptions/share/specialConfig/preInclude.AMSB.py
+++ b/Simulation/SimulationJobOptions/share/specialConfig/preInclude.AMSB.py
@@ -46,8 +46,8 @@ except:
     from G4AtlasApps.SimFlags import simFlags
     simdict = simFlags.specialConfiguration.get_Value()
 
-C1Mass = float(simdict["AMSBC1Mass"])
-N1Mass = float(simdict["AMSBN1Mass"])
+C1Mass = eval(simdict["AMSBC1Mass"])
+N1Mass = eval(simdict["AMSBN1Mass"])
 # patching PDGTABLE
 get_and_fix_PDGTABLE([(1000022, N1Mass, '~chi(0,1)', '0'), (1000024, C1Mass, '~chi(+,1)', '+')])
 
-- 
GitLab