2 from SimulationConfig.SimEnums
import CalibrationRun, CavernBackground, LArParameterization, SimulationFlavour
6 """Generate detector list based on runtime arguments."""
7 if hasattr(runArgs,
'detectors'):
8 detectors =
set(runArgs.detectors)
10 from AthenaConfiguration.AutoConfigFlags
import getDefaultDetectors
11 detectors =
set(
getDefaultDetectors(flags.GeoModel.AtlasVersion, flags.GeoModel.SQLiteDB, flags.GeoModel.SQLiteDBFullPath, includeForward=
False))
14 if hasattr(runArgs,
'LucidOn'):
15 detectors.add(
'Lucid')
16 if hasattr(runArgs,
'ZDCOn'):
18 if hasattr(runArgs,
'AFPOn'):
20 if hasattr(runArgs,
'ALFAOn'):
22 if hasattr(runArgs,
'FwdRegionOn'):
23 detectors.add(
'FwdRegion')
29 if flags.Sim.ISF.Simulator.usesFatras():
31 detectors.remove(
'BCM')
39 """Set flags to take care of Neutron BG"""
40 flags.Sim.CavernBackground = CavernBackground.Signal
44 """Turns on calibration hits for LAr and Tile"""
45 flags.Sim.CalibrationRun = CalibrationRun.LArTile
47 flags.Sim.LArParameterization = LArParameterization.NoFrozenShowers
48 flags.Sim.NRRThreshold =
False
49 flags.Sim.NRRWeight =
False
50 flags.Sim.PRRThreshold =
False
51 flags.Sim.PRRWeight =
False
55 """Turns on calibration hits for ZDC only"""
56 flags.Sim.CalibrationRun = CalibrationRun.ZDC
58 flags.Sim.LArParameterization = LArParameterization.NoFrozenShowers
59 flags.Sim.NRRThreshold =
False
60 flags.Sim.NRRWeight =
False
61 flags.Sim.PRRThreshold =
False
62 flags.Sim.PRRWeight =
False
66 """Turns on calibration hits for LAr, Tile and ZDC"""
67 flags.Sim.CalibrationRun = CalibrationRun.LArTileZDC
69 flags.Sim.LArParameterization = LArParameterization.NoFrozenShowers
70 flags.Sim.NRRThreshold =
False
71 flags.Sim.NRRWeight =
False
72 flags.Sim.PRRThreshold =
False
73 flags.Sim.PRRWeight =
False
77 """Mods to have primary particle barcode signature on for calorimeter calibration hits."""
78 flags.Sim.ParticleID=
True
83 flags.Sim.OptionalUserActionList += [
'G4DebuggingTools.G4DebuggingToolsConfig.VerboseSelectorToolCfg']
88 flags.Sim.LArParameterization = LArParameterization.FastCaloSim
90 flags.Sim.CalibrationRun = CalibrationRun.Off
92 flags.Sim.ISF.Simulator = SimulationFlavour.ATLFAST3MT
97 flags.Sim.G4Commands += [
'/tracking/verbose 1']
102 flags.Sim.G4Stepper =
'SimpleRunge'
106 flags.Sim.G4Stepper =
'ClassicalRK4'
110 flags.Sim.G4Stepper =
'NystromRK4'
115 flags.Sim.OptionalUserActionList += [
'G4UserActions.G4UserActionsConfig.FastIDKillerToolCfg']