|
ATLAS Offline Software
|
|
def | OptionalUserActionCfg (flags) |
|
def | getOptionalUACfg (flags, userActionString) |
|
def | FullG4TrackProcessorUserActionToolCfg (flags, name="FullG4TrackProcessorUserActionTool", **kwargs) |
|
def | PhysicsValidationUserActionToolCfg (flags, name="ISFG4PhysicsValidationUserActionTool", **kwargs) |
|
def | MCTruthUserActionToolCfg (flags, name="ISFMCTruthUserActionTool", **kwargs) |
|
def | TrackProcessorUserActionToolCfg (flags, name="ISFG4TrackProcessorUserActionTool", **kwargs) |
|
def | PassBackG4TrackProcessorUserActionToolCfg (flags, name="PassBackG4TrackProcessorUserActionTool", **kwargs) |
|
def | ATLFAST_G4TrackProcessorUserActionToolCfg (flags, name="ATLFAST_G4TrackProcessorUserActionTool", **kwargs) |
|
def | getDefaultActions (flags) |
|
def | UserActionSvcCfg (flags, name="G4UA::UserActionSvc", **kwargs) |
|
def | CTBUserActionSvcCfg (flags, name="G4UA::CTBUserActionSvc", **kwargs) |
|
def | ISFUserActionSvcCfg (flags, name="G4UA::ISFUserActionSvc", **kwargs) |
|
def | ISFFullUserActionSvcCfg (flags, name="G4UA::ISFFullUserActionSvc", **kwargs) |
|
def | ISFPassBackUserActionSvcCfg (flags, name="G4UA::ISFPassBackUserActionSvc", **kwargs) |
|
def | ISF_ATLFAST_UserActionSvcCfg (flags, name="G4UA::ISF_ATLFAST_UserActionSvc", **kwargs) |
|
◆ ATLFAST_G4TrackProcessorUserActionToolCfg()
def G4AtlasUserActionConfig.ATLFAST_G4TrackProcessorUserActionToolCfg |
( |
|
flags, |
|
|
|
name = "ATLFAST_G4TrackProcessorUserActionTool" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 90 of file G4AtlasUserActionConfig.py.
92 if flags.Sim.ISF.Simulator
in [SimulationFlavour.PassBackG4MT, SimulationFlavour.ATLFASTIIMT, SimulationFlavour.ATLFAST3MT, SimulationFlavour.ATLFAST3MT_QS]:
93 kwargs.setdefault(
"ParticleBroker",
"")
94 elif flags.Sim.ISF.Simulator
in [SimulationFlavour.ATLFASTIIF_G4MS, SimulationFlavour.ATLFAST3F_G4MS]:
97 kwargs.setdefault(
"PassBackEkinThreshold", 0.05*MeV)
98 kwargs.setdefault(
"KillBoundaryParticlesBelowThreshold",
True)
100 result.setPrivateTools(tool)
◆ CTBUserActionSvcCfg()
def G4AtlasUserActionConfig.CTBUserActionSvcCfg |
( |
|
flags, |
|
|
|
name = "G4UA::CTBUserActionSvc" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 165 of file G4AtlasUserActionConfig.py.
182 kwargs.setdefault(
"UserActionTools", generalActions)
185 result.addService(CompFactory.G4UA.UserActionSvc(name, **kwargs), primary =
True)
◆ FullG4TrackProcessorUserActionToolCfg()
def G4AtlasUserActionConfig.FullG4TrackProcessorUserActionToolCfg |
( |
|
flags, |
|
|
|
name = "FullG4TrackProcessorUserActionTool" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 47 of file G4AtlasUserActionConfig.py.
49 if flags.Sim.ISF.Simulator
in [SimulationFlavour.FullG4MT, SimulationFlavour.FullG4MT_QS]:
52 tool = result.popToolsAndMerge(EntryLayerToolCfg(flags))
53 kwargs.setdefault(
"EntryLayerTool", result.addPublicTool(tool))
54 kwargs.setdefault(
"GeoIDSvc", result.getPrimaryAndMerge(
GeoIDSvcCfg(flags)).name)
55 if flags.Detector.GeometryCavern:
56 kwargs.setdefault(
"TruthVolumeLevel", 2)
57 kwargs.setdefault(
"IsITkGeometry", flags.GeoModel.Run >= LHCPeriod.Run4)
58 result.setPrivateTools(CompFactory.G4UA.iGeant4.TrackProcessorUserActionFullG4Tool(name, **kwargs))
◆ getDefaultActions()
def G4AtlasUserActionConfig.getDefaultActions |
( |
|
flags | ) |
|
Definition at line 105 of file G4AtlasUserActionConfig.py.
114 if not flags.Sim.ISFRun:
122 if flags.Beam.Type
is BeamType.Cosmics
and flags.Sim.CavernBackground
is CavernBackground.Off:
123 actions += [CompFactory.G4UA.CosmicPerigeeActionTool()]
125 if flags.Beam.Type
is BeamType.Cosmics
and not flags.Sim.ISFRun:
127 if flags.Sim.StoppedParticleFile:
131 if flags.Sim.CavernBackground
is CavernBackground.Read:
134 if flags.Sim.PhysicsList ==
"QGSP_BERT_HP":
135 actions += [CompFactory.G4UA.PhotonKillerTool()]
137 if flags.Sim.CalibrationRun
in [CalibrationRun.LArTile, CalibrationRun.LArTileZDC]:
139 if 'G4UserActions.G4UserActionsConfig.MonopoleLooperKillerToolCfg' not in flags.Sim.OptionalUserActionList:
142 result.setPrivateTools(actions)
◆ getOptionalUACfg()
def G4AtlasUserActionConfig.getOptionalUACfg |
( |
|
flags, |
|
|
|
userActionString |
|
) |
| |
Execute a function to configure and optional UserAction
Definition at line 33 of file G4AtlasUserActionConfig.py.
34 """Execute a function to configure and optional UserAction"""
35 parts = userActionString.split(
'.')
37 raise ValueError(
'OptionalUserAction strings should be of the form Package.Module.Function or Package.Function if defined in __init__.py')
39 module =
'.'.
join(parts[:-1])
40 from importlib
import import_module
41 loaded_module = import_module(module)
42 function_def = getattr(loaded_module, function)
43 return function_def(flags)
◆ ISF_ATLFAST_UserActionSvcCfg()
def G4AtlasUserActionConfig.ISF_ATLFAST_UserActionSvcCfg |
( |
|
flags, |
|
|
|
name = "G4UA::ISF_ATLFAST_UserActionSvc" , |
|
|
** |
kwargs |
|
) |
| |
◆ ISFFullUserActionSvcCfg()
def G4AtlasUserActionConfig.ISFFullUserActionSvcCfg |
( |
|
flags, |
|
|
|
name = "G4UA::ISFFullUserActionSvc" , |
|
|
** |
kwargs |
|
) |
| |
◆ ISFPassBackUserActionSvcCfg()
def G4AtlasUserActionConfig.ISFPassBackUserActionSvcCfg |
( |
|
flags, |
|
|
|
name = "G4UA::ISFPassBackUserActionSvc" , |
|
|
** |
kwargs |
|
) |
| |
◆ ISFUserActionSvcCfg()
def G4AtlasUserActionConfig.ISFUserActionSvcCfg |
( |
|
flags, |
|
|
|
name = "G4UA::ISFUserActionSvc" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 190 of file G4AtlasUserActionConfig.py.
192 TrackProcessorUserAction = kwargs.pop("TrackProcessorUserAction",[])
194 PhysicsValidationUserAction = []
195 if flags.Sim.ISF.ValidationMode:
198 MCTruthUserAction = kwargs.pop(
"MCTruthUserAction",
201 generalActions = ( TrackProcessorUserAction + MCTruthUserAction +
204 PhysicsValidationUserAction )
207 kwargs.setdefault(
"UserActionTools", generalActions)
208 result.addService(CompFactory.G4UA.UserActionSvc(name, **kwargs), primary =
True)
◆ MCTruthUserActionToolCfg()
def G4AtlasUserActionConfig.MCTruthUserActionToolCfg |
( |
|
flags, |
|
|
|
name = "ISFMCTruthUserActionTool" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 68 of file G4AtlasUserActionConfig.py.
70 kwargs.setdefault(
"TruthRecordSvc", result.getPrimaryAndMerge(
TruthServiceCfg(flags)).name)
71 result.setPrivateTools(CompFactory.G4UA.iGeant4.MCTruthUserActionTool(name, **kwargs))
◆ OptionalUserActionCfg()
def G4AtlasUserActionConfig.OptionalUserActionCfg |
( |
|
flags | ) |
|
flags.Sim.OptionalUserActionList = ['G4UserActions.G4UserActionsConfig.FixG4CreatorProcessToolCfg']
Definition at line 23 of file G4AtlasUserActionConfig.py.
24 """ flags.Sim.OptionalUserActionList = ['G4UserActions.G4UserActionsConfig.FixG4CreatorProcessToolCfg']"""
26 optionalUserActions = []
27 for userActionString
in flags.Sim.OptionalUserActionList:
28 optionalUserActions += [result.popToolsAndMerge(
getOptionalUACfg(flags, userActionString))]
29 result.setPrivateTools(optionalUserActions)
◆ PassBackG4TrackProcessorUserActionToolCfg()
def G4AtlasUserActionConfig.PassBackG4TrackProcessorUserActionToolCfg |
( |
|
flags, |
|
|
|
name = "PassBackG4TrackProcessorUserActionTool" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 84 of file G4AtlasUserActionConfig.py.
85 if flags.Sim.ISF.Simulator
in [SimulationFlavour.PassBackG4MT]:
86 kwargs.setdefault(
"ParticleBroker",
"")
◆ PhysicsValidationUserActionToolCfg()
def G4AtlasUserActionConfig.PhysicsValidationUserActionToolCfg |
( |
|
flags, |
|
|
|
name = "ISFG4PhysicsValidationUserActionTool" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 62 of file G4AtlasUserActionConfig.py.
64 result.setPrivateTools(CompFactory.G4UA.iGeant4.PhysicsValidationUserActionTool(name, **kwargs))
◆ TrackProcessorUserActionToolCfg()
def G4AtlasUserActionConfig.TrackProcessorUserActionToolCfg |
( |
|
flags, |
|
|
|
name = "ISFG4TrackProcessorUserActionTool" , |
|
|
** |
kwargs |
|
) |
| |
Definition at line 75 of file G4AtlasUserActionConfig.py.
77 if "ParticleBroker" not in kwargs:
79 kwargs.setdefault(
"GeoIDSvc", result.getPrimaryAndMerge(
GeoIDSvcCfg(flags)).name)
80 result.setPrivateTools(CompFactory.G4UA.iGeant4.TrackProcessorUserActionPassBackTool(name, **kwargs))
◆ UserActionSvcCfg()
def G4AtlasUserActionConfig.UserActionSvcCfg |
( |
|
flags, |
|
|
|
name = "G4UA::UserActionSvc" , |
|
|
** |
kwargs |
|
) |
| |
Get the standard UA svc configurable with all default actions added.
This function is normally called by the configured factory, not users.
Definition at line 146 of file G4AtlasUserActionConfig.py.
148 Get the standard UA svc configurable with all default actions added.
149 This function is normally called by the configured factory, not users.
157 kwargs.setdefault(
"UserActionTools", generalActions)
160 result.addService(CompFactory.G4UA.UserActionSvc(name, **kwargs), primary =
True)
def ATLFAST_G4TrackProcessorUserActionToolCfg(flags, name="ATLFAST_G4TrackProcessorUserActionTool", **kwargs)
def CosmicFilterToolCfg(flags, name="G4UA::G4CosmicFilterTool", **kwargs)
def StoppedParticleFilterToolCfg(flags, name="G4UA::StoppedParticleFilterTool", **kwargs)
def AthenaStackingActionToolCfg(flags, name='G4UA::AthenaStackingActionTool', **kwargs)
def getOptionalUACfg(flags, userActionString)
def ISFFullUserActionSvcCfg(flags, name="G4UA::ISFFullUserActionSvc", **kwargs)
def StoppedParticleActionToolCfg(flags, name="G4UA::StoppedParticleActionTool", **kwargs)
def ATLFAST_ParticleBrokerSvcCfg(flags, name="ISF_ATLFAST_ParticleBrokerSvc", **kwargs)
def OptionalUserActionCfg(flags)
def CalibrationDefaultProcessingToolCfg(flags, name="G4UA::CaloG4::CalibrationDefaultProcessing", **kwargs)
def MCTruthSteppingActionToolCfg(flags, name='G4UA::MCTruthSteppingActionTool', **kwargs)
def ATLFAST_GeoIDSvcCfg(flags, name="ISF_ATLFAST_GeoIDSvc", **kwargs)
def MCTruthUserActionToolCfg(flags, name="ISFMCTruthUserActionTool", **kwargs)
def UserActionSvcCfg(flags, name="G4UA::UserActionSvc", **kwargs)
def AthenaTrackingActionToolCfg(flags, name='G4UA::AthenaTrackingActionTool', **kwargs)
def PhysicsValidationUserActionToolCfg(flags, name="ISFG4PhysicsValidationUserActionTool", **kwargs)
def ParticleBrokerSvcCfg(flags, name="ISF_ParticleBrokerSvc", **kwargs)
def HitWrapperToolCfg(flags, name="G4UA::HitWrapperTool", **kwargs)
std::string join(const std::vector< std::string > &v, const char c=',')
def ISFPassBackUserActionSvcCfg(flags, name="G4UA::ISFPassBackUserActionSvc", **kwargs)
def ISF_ATLFAST_UserActionSvcCfg(flags, name="G4UA::ISF_ATLFAST_UserActionSvc", **kwargs)
def TruthServiceCfg(flags, **kwargs)
def G4TrackCounterToolCfg(flags, name='G4UA::G4TrackCounterTool', **kwargs)
def FullG4TrackProcessorUserActionToolCfg(flags, name="FullG4TrackProcessorUserActionTool", **kwargs)
def CTBUserActionSvcCfg(flags, name="G4UA::CTBUserActionSvc", **kwargs)
def getDefaultActions(flags)
def TrackProcessorUserActionToolCfg(flags, name="ISFG4TrackProcessorUserActionTool", **kwargs)
def GeoIDSvcCfg(flags, name="ISF_GeoIDSvc", **kwargs)
def PassBackG4TrackProcessorUserActionToolCfg(flags, name="PassBackG4TrackProcessorUserActionTool", **kwargs)
def LooperKillerToolCfg(flags, name='G4UA::LooperKillerTool', **kwargs)
def ISFUserActionSvcCfg(flags, name="G4UA::ISFUserActionSvc", **kwargs)
def G4SimTimerToolCfg(flags, name='G4UA::G4SimTimerTool', **kwargs)