ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
G4FastSimulation
python
G4FastSimulationConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
6
7
def
SimpleFastKillerCfg
(flags, **kwargs):
8
result = ComponentAccumulator()
9
kwargs.setdefault(
"RegionName"
,
"BeampipeFwdCut"
)
10
result.setPrivateTools(CompFactory.SimpleFastKillerTool(name=
"SimpleFastKiller"
, **kwargs))
11
return
result
12
13
14
def
DeadMaterialShowerCfg
(flags, **kwargs):
15
result = ComponentAccumulator()
16
kwargs.setdefault(
"RegionName"
,
"DeadMaterial"
)
17
result.setPrivateTools(CompFactory.DeadMaterialShowerTool(name=
"DeadMaterialShower"
, **kwargs))
18
return
result
19
20
21
def
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
38
def
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
55
def
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
G4FastSimulationConfig.SimpleFastKillerCfg
SimpleFastKillerCfg(flags, **kwargs)
Definition
G4FastSimulationConfig.py:7
G4FastSimulationConfig.FatrasG4Cfg
FatrasG4Cfg(flags, **kwargs)
Definition
G4FastSimulationConfig.py:21
G4FastSimulationConfig.DeadMaterialShowerCfg
DeadMaterialShowerCfg(flags, **kwargs)
Definition
G4FastSimulationConfig.py:14
G4FastSimulationConfig.FastCaloSimCfg
FastCaloSimCfg(flags, **kwargs)
Definition
G4FastSimulationConfig.py:55
G4FastSimulationConfig.AFatrasG4Cfg
AFatrasG4Cfg(flags, **kwargs)
Definition
G4FastSimulationConfig.py:38
Generated on
for ATLAS Offline Software by
1.17.0