Skip to content
Snippets Groups Projects
Commit d3febdc3 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'cherry-pick-29c9a5d790-master' into 'master'

Sweeping !21660 from 21.0 to master.
Patch preInclude.Qball.py to work-around missing specialConfiguration metadata

See merge request atlas/athena!21938
parents 363a1541 413227bb
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