Skip to content
Snippets Groups Projects
Commit 29c9a5d7 authored by John Kenneth Anders's avatar John Kenneth Anders
Browse files

Merge branch 'QballSimFix2_ALTMCPROD-6719_21.0' into '21.0'

Patch preInclude.Qball.py to work-around missing specialConfiguration metadata

See merge request atlas/athena!21660
parents 29222c41 ddad4098
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,6 @@ def load_files_for_qball_scenario(MASS, CHARGE):
del BLINE1
del BLINE2
assert "MASS" in simdict
assert "CHARGE" in simdict
doG4SimConfig = True
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
import PyUtils.AthFile as af
......@@ -52,13 +50,16 @@ try:
else:
from G4AtlasApps.SimFlags import simFlags
if not "InteractingPDGCodes" in simFlags.specialConfiguration.get_Value():
CODE=10000000+int(float(simdict["CHARGE"])*100)
assert "CHARGE" in simFlags.specialConfiguration.get_Value()
CODE=10000000+int(float(simFlags.specialConfiguration.get_Value()["CHARGE"])*100)
simFlags.specialConfiguration.get_Value()['InteractingPDGCodes'] = str([CODE,-1*CODE])
simdict = simFlags.specialConfiguration.get_Value()
except:
from G4AtlasApps.SimFlags import simFlags
simdict = simFlags.specialConfiguration.get_Value()
assert "MASS" in simdict
assert "CHARGE" in simdict
load_files_for_qball_scenario(simdict["MASS"], simdict["CHARGE"])
if doG4SimConfig:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment