|
ATLAS Offline Software
|
◆ enableCalHits()
def python.SimulationHelpers.enableCalHits |
( |
|
flags | ) |
|
Turns on calibration hits for LAr and Tile
Definition at line 43 of file SimulationHelpers.py.
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
◆ enableCalHitsAll()
def python.SimulationHelpers.enableCalHitsAll |
( |
|
flags | ) |
|
Turns on calibration hits for LAr, Tile and ZDC
Definition at line 65 of file SimulationHelpers.py.
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
◆ enableCalHitsZDC()
def python.SimulationHelpers.enableCalHitsZDC |
( |
|
flags | ) |
|
Turns on calibration hits for ZDC only
Definition at line 54 of file SimulationHelpers.py.
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
◆ enableFastCaloSim()
def python.SimulationHelpers.enableFastCaloSim |
( |
|
flags | ) |
|
Definition at line 86 of file SimulationHelpers.py.
88 flags.Sim.LArParameterization = LArParameterization.FastCaloSim
90 flags.Sim.CalibrationRun = CalibrationRun.Off
92 flags.Sim.ISF.Simulator = SimulationFlavour.ATLFAST3MT
◆ enableFastIDKiller()
def python.SimulationHelpers.enableFastIDKiller |
( |
|
flags | ) |
|
Definition at line 113 of file SimulationHelpers.py.
115 flags.Sim.OptionalUserActionList += [
'G4UserActions.G4UserActionsConfig.FastIDKillerToolCfg']
◆ enableG4SignalCavern()
def python.SimulationHelpers.enableG4SignalCavern |
( |
|
flags | ) |
|
Set flags to take care of Neutron BG
Definition at line 38 of file SimulationHelpers.py.
39 """Set flags to take care of Neutron BG"""
40 flags.Sim.CavernBackground = CavernBackground.Signal
◆ enableParticleID()
def python.SimulationHelpers.enableParticleID |
( |
|
flags | ) |
|
Mods to have primary particle barcode signature on for calorimeter calibration hits.
Definition at line 76 of file SimulationHelpers.py.
77 """Mods to have primary particle barcode signature on for calorimeter calibration hits."""
78 flags.Sim.ParticleID=
True
◆ enableVerboseSelector()
def python.SimulationHelpers.enableVerboseSelector |
( |
|
flags | ) |
|
Definition at line 81 of file SimulationHelpers.py.
83 flags.Sim.OptionalUserActionList += [
'G4DebuggingTools.G4DebuggingToolsConfig.VerboseSelectorToolCfg']
◆ getDetectorsFromRunArgs()
def python.SimulationHelpers.getDetectorsFromRunArgs |
( |
|
flags, |
|
|
|
runArgs |
|
) |
| |
Generate detector list based on runtime arguments.
Definition at line 5 of file SimulationHelpers.py.
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')
◆ useClassicalRK4Stepper()
def python.SimulationHelpers.useClassicalRK4Stepper |
( |
|
flags | ) |
|
◆ useNystromRK4Stepper()
def python.SimulationHelpers.useNystromRK4Stepper |
( |
|
flags | ) |
|
◆ useSimpleRungeStepper()
def python.SimulationHelpers.useSimpleRungeStepper |
( |
|
flags | ) |
|
Change the field stepper.
Definition at line 101 of file SimulationHelpers.py.
102 flags.Sim.G4Stepper =
'SimpleRunge'
◆ useVerboseTracking()
def python.SimulationHelpers.useVerboseTracking |
( |
|
flags | ) |
|
def getDefaultDetectors(geoTag, sqliteDB, sqliteDBFullPath, includeForward=False)
def useSimpleRungeStepper(flags)
Change the field stepper.
def useVerboseTracking(flags)
def enableCalHitsZDC(flags)
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
def enableCalHitsAll(flags)
def useClassicalRK4Stepper(flags)
def enableFastCaloSim(flags)
def useNystromRK4Stepper(flags)
def enableVerboseSelector(flags)
def enableParticleID(flags)
def enableG4SignalCavern(flags)
def getDetectorsFromRunArgs(flags, runArgs)
def enableFastIDKiller(flags)