4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
6 acc = ComponentAccumulator()
7 acc.setPrivateTools(CompFactory.ActsTrk.MaterialTrackRecorderTool(name, **kwargs))
12 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
13 from AthenaConfiguration.ComponentFactory
import CompFactory
15 acc = ComponentAccumulator()
18 actionAcc = ComponentAccumulator()
21 actionAcc.setPrivateTools(actions)
22 MaterialTrackRecorderAction = acc.popToolsAndMerge(actionAcc)
25 from G4AtlasServices.G4AtlasUserActionConfig
import getDefaultActions
26 defaultActions = acc.popToolsAndMerge(getDefaultActions(configFlags))
29 actionList = (defaultActions + MaterialTrackRecorderAction)
31 kwargs.setdefault(
"UserActionTools",actionList)
32 acc.addService(CompFactory.G4UA.UserActionSvc(name,**kwargs), primary =
True)
37 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
38 from AthenaConfiguration.ComponentFactory
import CompFactory
39 acc = ComponentAccumulator()
40 kwargs.setdefault(
"OutStream",
"ACTSMATERIALWRITER")
41 kwargs.setdefault(
"useTrackingGeometry",
True)
43 from MuonConfig.MuonConfigUtils
import setupHistSvcCfg
44 acc.merge(setupHistSvcCfg(configFlags, outFile = FileName, outStream=kwargs[
"OutStream"]))
47 if kwargs[
"useTrackingGeometry"]:
48 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometryToolCfg
49 kwargs.setdefault(
"TrackingGeometryTool", acc.getPrimaryAndMerge(ActsTrackingGeometryToolCfg(configFlags)))
50 acc.addEventAlgo(CompFactory.ActsTrk.MaterialTrackWriter(name, **kwargs), primary =
True)
55 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
56 from AthenaConfiguration.ComponentFactory
import CompFactory
57 acc = ComponentAccumulator()
59 acc.addEventAlgo(CompFactory.ActsTrk.MaterialTrackReader(name, **kwargs), primary =
True)
64 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
65 from AthenaConfiguration.ComponentFactory
import CompFactory
66 acc = ComponentAccumulator()
67 acc.setPrivateTools(CompFactory.ActsTrk.RootMaterialWriterTool(name, **kwargs))
71 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
72 from AthenaConfiguration.ComponentFactory
import CompFactory
73 acc = ComponentAccumulator()
76 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometrySvcCfg
77 acc.merge( ActsTrackingGeometrySvcCfg(configFlags,
78 RunConsistencyChecks=
False,
79 ObjDebugOutput=
False))
82 kwargs.setdefault(
"MaterialMapWriters", mapwriters)
84 acc.addEventAlgo(CompFactory.ActsTrk.MaterialMapping(name, **kwargs), primary =
True)
90 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
91 from AthenaConfiguration.ComponentFactory
import CompFactory
92 acc = ComponentAccumulator()
95 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometrySvcCfg
96 acc.merge( ActsTrackingGeometrySvcCfg(configFlags,
97 RunConsistencyChecks=
False,
98 ObjDebugOutput=
False))
100 acc.addEventAlgo(CompFactory.ActsTrk.MaterialValidation(name, **kwargs), primary =
True)