Skip to content
Snippets Groups Projects
Commit 086d9525 authored by Daniel Louis Noel's avatar Daniel Louis Noel
Browse files

Changed the MagfieldSvc and sorted the Simulation testing

parent a0dd3d64
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,!24014Updated the DetGeoSvc to the new style
......@@ -8,6 +8,7 @@ from G4AtlasServices.G4AtlasServicesConfigNew import DetectorGeometrySvcCfg
from G4AtlasAlg.G4AtlasAlgConf import G4AtlasAlg
#This is old style code - to be rewritten in a later MR
def getAthenaStackingActionTool(name='G4UA::AthenaStackingActionTool', **kwargs):
from G4AtlasApps.SimFlags import simFlags
## Killing neutrinos
......@@ -30,6 +31,8 @@ def getAthenaStackingActionTool(name='G4UA::AthenaStackingActionTool', **kwargs)
kwargs.setdefault('IsISFJob', simFlags.ISFRun())
return CfgMgr.G4UA__AthenaStackingActionTool(name,**kwargs)
#This is old style code - to be rewritten in a later Multi-threading
def getAthenaTrackingActionTool(name='G4UA::AthenaTrackingActionTool', **kwargs):
kwargs.setdefault('SecondarySavingLevel', 2)
subDetLevel=1
......@@ -69,14 +72,10 @@ def G4AtlasAlgCfg(ConfigFlags, name='G4AtlasAlg', **kwargs):
## default true
kwargs.setdefault('KillAbortedEvents' ,ConfigFlags.Sim.KillAbortedEvents)
from RngComps.RandomServices import AthEngines, Ranecu
if AthEngines[ConfigFlags.Random.Engine]:
acc = Ranecu(ConfigFlags.Random.Engine)
result.merge(acc)
#from RngComps.RandomServices import AthEngines, RNG
#if ConfigFlags.Random.Engine in AthEngines.keys():
# result.merge(RNG(AthEngines[ConfigFlags.Random.Engine], name="AthRNGSvc"))
# kwargs.setdefault("AtRndmGenSvc",result.getService("AthRNGSvc"))
from RngComps.RandomServices import AthEngines, RNG
if ConfigFlags.Random.Engine in AthEngines.keys():
result.merge(RNG(ConfigFlags.Random.Engine, name="AthRNGSvc"))
kwargs.setdefault("AtRndmGenSvc",result.getService("AthRNGSvc"))
kwargs.setdefault("RandomGenerator", "athena")
......
......@@ -41,10 +41,10 @@ if __name__ == '__main__':
import os
if not "AthSimulation_DIR" in os.environ:
acc3 = Q1FwdG4FieldSvcCfg(ConfigFlags)
cfg.merge(acc3)
cfg.merge(acc1)
cfg.merge(acc2)
cfg.merge(acc3)
# Dump config
#cfg.getService("StoreGateSvc").Dump = True
......
......@@ -27,8 +27,8 @@ if __name__ == '__main__':
ConfigFlags.Detector.SimulateID = True
ConfigFlags.Detector.SimulateCalo = True
ConfigFlags.Detector.SimulateMuon = True
ConfigFlags.Detector.SimulateForward = True
ConfigFlags.Detector.GeometryFwdRegion = True
ConfigFlags.Detector.SimulateForward = False
ConfigFlags.Detector.GeometryFwdRegion = False
ConfigFlags.Sim.CavernBG = "Signal" #for it to go via atlas?
......
......@@ -34,10 +34,16 @@ if __name__ == '__main__':
#add the algorithm
acc1 = ATLASFieldManagerToolCfg(ConfigFlags)
acc2 = TightMuonsATLASFieldManagerToolCfg(ConfigFlags)
acc3 = Q1FwdFieldManagerToolCfg(ConfigFlags)
cfg.popToolsAndMerge(acc1)
cfg.popToolsAndMerge(acc2)
cfg.popToolsAndMerge(acc3)
#don't run for simulation only tests (todo - make new general test)
import os
if not "AthSimulation_DIR" in os.environ:
acc3 = Q1FwdFieldManagerToolCfg(ConfigFlags)
cfg.popToolsAndMerge(acc3)
# Dump config
#cfg.getService("StoreGateSvc").Dump = True
......
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