ATLAS Offline Software
Loading...
Searching...
No Matches
G4FastSimulationConfig Namespace Reference

Functions

 SimpleFastKillerCfg (flags, **kwargs)
 DeadMaterialShowerCfg (flags, **kwargs)
 FatrasG4Cfg (flags, **kwargs)
 AFatrasG4Cfg (flags, **kwargs)
 FastCaloSimCfg (flags, **kwargs)

Function Documentation

◆ AFatrasG4Cfg()

AFatrasG4Cfg ( flags,
** kwargs )

Definition at line 38 of file G4FastSimulationConfig.py.

38def AFatrasG4Cfg(flags, **kwargs):
39 result = ComponentAccumulator()
40 # Name of region where AFatrasG4 will be triggered
41 kwargs.setdefault("RegionName", "InDet")
42
43 # Set the ActsFatrasG4Tool part
44 from G4AtlasTools.G4AtlasToolsConfig import ActsFatrasG4ToolCfg
45 if "ActsFatrasG4Tool" not in kwargs:
46 kwargs.setdefault("ActsFatrasG4Tool", result.addPublicTool(result.popToolsAndMerge(ActsFatrasG4ToolCfg(flags))))
47
48 aFatrasG4Tool = CompFactory.AFatrasG4Tool(name="AFatrasG4", **kwargs)
49 # declare produced data
50 # ExtraOutputs is now declared in SimHitContainerListCfg in G4AtlasToolsConfig.py, and called from G4AtlasAlgConfig.py
51 result.setPrivateTools(aFatrasG4Tool)
52
53 return result
54

◆ DeadMaterialShowerCfg()

DeadMaterialShowerCfg ( flags,
** kwargs )

Definition at line 14 of file G4FastSimulationConfig.py.

14def DeadMaterialShowerCfg(flags, **kwargs):
15 result = ComponentAccumulator()
16 kwargs.setdefault("RegionName", "DeadMaterial")
17 result.setPrivateTools(CompFactory.DeadMaterialShowerTool(name="DeadMaterialShower", **kwargs))
18 return result
19
20

◆ FastCaloSimCfg()

FastCaloSimCfg ( flags,
** kwargs )

Definition at line 55 of file G4FastSimulationConfig.py.

55def FastCaloSimCfg(flags, **kwargs):
56 result = ComponentAccumulator()
57 # Set the parametrization service
58 from ISF_FastCaloSimServices.ISF_FastCaloSimServicesConfig import FastCaloSimV2ParamSvcCfg
59 kwargs.setdefault("ISF_FastCaloSimV2ParamSvc", result.getPrimaryAndMerge(FastCaloSimV2ParamSvcCfg(flags)))
60 # Set the FastCaloSim extrapolation tool
61 from ISF_FastCaloSimParametrization.ISF_FastCaloSimParametrizationConfig import FastCaloSimCaloExtrapolationCfg
62 kwargs.setdefault("FastCaloSimCaloExtrapolation", result.addPublicTool(result.popToolsAndMerge(FastCaloSimCaloExtrapolationCfg(flags))))
63 # Name of region where FastCaloSim will be triggered
64 kwargs.setdefault("RegionName", "CALO")
65 kwargs.setdefault('CaloCellContainerSDName', "ToolSvc.SensitiveDetectorMasterTool.CaloCellContainerSD")
66
67 # Set the G4CaloTransportTool
68 from G4AtlasTools.G4AtlasToolsConfig import G4CaloTransportToolCfg
69 kwargs.setdefault("G4CaloTransportTool", result.addPublicTool(result.popToolsAndMerge(G4CaloTransportToolCfg(flags))))
70
71 # Set the PunchThrough G4 part
72 from G4AtlasTools.G4AtlasToolsConfig import PunchThroughSimWrapperCfg
73 if "PunchThroughSimWrapper" not in kwargs:
74 kwargs.setdefault("PunchThroughSimWrapper", result.addPublicTool(result.popToolsAndMerge(PunchThroughSimWrapperCfg(flags))))
75
76 # Config PunchThroughG4Tool
77 kwargs.setdefault('doPunchThrough', flags.Sim.FastCalo.doPunchThrough)
78
79 result.setPrivateTools(CompFactory.FastCaloSimTool(name="FastCaloSim", **kwargs))
80 return result

◆ FatrasG4Cfg()

FatrasG4Cfg ( flags,
** kwargs )

Definition at line 21 of file G4FastSimulationConfig.py.

21def FatrasG4Cfg(flags, **kwargs):
22 result = ComponentAccumulator()
23 # Name of region where FatrasG4 will be triggered
24 kwargs.setdefault("RegionName", "InDet")
25
26 # Set the ActsFatrasG4Tool part
27 from G4AtlasTools.G4AtlasToolsConfig import ActsFatrasG4ToolCfg
28 if "ActsFatrasG4Tool" not in kwargs:
29 kwargs.setdefault("ActsFatrasG4Tool", result.addPublicTool(result.popToolsAndMerge(ActsFatrasG4ToolCfg(flags))))
30
31 fatrasG4Tool = CompFactory.FatrasG4Tool(name="FatrasG4", **kwargs)
32 # declare produced data
33 # ExtraOutputs is now declared in SimHitContainerListCfg in G4AtlasToolsConfig.py, and called from G4AtlasAlgConfig.py
34 result.setPrivateTools(fatrasG4Tool)
35
36 return result
37

◆ SimpleFastKillerCfg()

SimpleFastKillerCfg ( flags,
** kwargs )

Definition at line 7 of file G4FastSimulationConfig.py.

7def SimpleFastKillerCfg(flags, **kwargs):
8 result = ComponentAccumulator()
9 kwargs.setdefault("RegionName" , "BeampipeFwdCut")
10 result.setPrivateTools(CompFactory.SimpleFastKillerTool(name="SimpleFastKiller", **kwargs))
11 return result
12
13