Skip to content
Snippets Groups Projects
Commit 413227bb authored by John Kenneth Anders's avatar John Kenneth Anders Committed by Atlas Nightlybuild
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

(cherry picked from commit 29c9a5d790b0ff49ab4441ec8892addb23da9ecc)

ddad4098 Patch preInclude.Qball.py to work-around missing specialConfiguration metadata
parent eb2a7158
No related branches found
No related tags found
9 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!28528Revert 63f845ae,!27054Atr20369 210,!26342Monopole: Handle fractionally charged particles,!21938Sweeping !21660 from 21.0 to master. Patch preInclude.Qball.py to work-around missing specialConfiguration metadata
Pipeline #756179 passed
...@@ -37,8 +37,6 @@ def load_files_for_qball_scenario(MASS, CHARGE): ...@@ -37,8 +37,6 @@ def load_files_for_qball_scenario(MASS, CHARGE):
del BLINE1 del BLINE1
del BLINE2 del BLINE2
assert "MASS" in simdict
assert "CHARGE" in simdict
doG4SimConfig = True doG4SimConfig = True
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
import PyUtils.AthFile as af import PyUtils.AthFile as af
...@@ -52,13 +50,16 @@ try: ...@@ -52,13 +50,16 @@ try:
else: else:
from G4AtlasApps.SimFlags import simFlags from G4AtlasApps.SimFlags import simFlags
if not "InteractingPDGCodes" in simFlags.specialConfiguration.get_Value(): 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]) simFlags.specialConfiguration.get_Value()['InteractingPDGCodes'] = str([CODE,-1*CODE])
simdict = simFlags.specialConfiguration.get_Value() simdict = simFlags.specialConfiguration.get_Value()
except: except:
from G4AtlasApps.SimFlags import simFlags from G4AtlasApps.SimFlags import simFlags
simdict = simFlags.specialConfiguration.get_Value() simdict = simFlags.specialConfiguration.get_Value()
assert "MASS" in simdict
assert "CHARGE" in simdict
load_files_for_qball_scenario(simdict["MASS"], simdict["CHARGE"]) load_files_for_qball_scenario(simdict["MASS"], simdict["CHARGE"])
if doG4SimConfig: 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