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 name="MaterialTrackWriter",
38 FileName="material-tracks.root",
39 OutStream="ACTSMATERIALWRITER",
41 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
42 from AthenaConfiguration.ComponentFactory
import CompFactory
43 acc = ComponentAccumulator()
44 kwargs.setdefault(
"OutStream", OutStream)
45 kwargs.setdefault(
"useTrackingGeometry",
True)
47 from MuonConfig.MuonConfigUtils
import setupHistSvcCfg
48 acc.merge(setupHistSvcCfg(configFlags, outFile = FileName, outStream=kwargs[
"OutStream"]))
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 name="MaterialMapping",
74 OutputMappedMaterialTracks="OuputMappedMaterialTracks",
75 OutputUnmappedMaterialTracks="OutputUnmappedMaterialTracks",
78 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
79 from AthenaConfiguration.ComponentFactory
import CompFactory
80 acc = ComponentAccumulator()
83 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometrySvcCfg
84 acc.merge( ActsTrackingGeometrySvcCfg(configFlags))
85 from MagFieldServices.MagFieldServicesConfig
import AtlasFieldCacheCondAlgCfg
86 acc.merge(AtlasFieldCacheCondAlgCfg(configFlags))
87 from ActsAlignmentAlgs.AlignmentAlgsConfig
import ActsGeometryContextAlgCfg
88 acc.merge(ActsGeometryContextAlgCfg(configFlags))
91 kwargs.setdefault(
"MaterialMapWriters", mapwriters)
93 kwargs.setdefault(
"MappedMaterialTrackCollectionKey", OutputMappedMaterialTracks)
94 kwargs.setdefault(
"UnmappedMaterialTrackCollectionKey", OutputUnmappedMaterialTracks)
98 acc.addEventAlgo(CompFactory.ActsTrk.MaterialMapping(name, **kwargs), primary =
True)
101 from ActsConfig.ActsMaterialConfig
import MaterialTrackWriterCfg
103 name=
"MappedMaterialTrackWriter",
104 FileName=
"material-tracks-mapped.root",
105 OutStream=
"ACTSMAPPEDMATERIALWRITER",
106 StoreSurface=StoreSurfInfo,
107 MaterialTrackCollectionKey=OutputMappedMaterialTracks))
109 name=
"UnmappedMaterialTrackWriter",
110 FileName=
"material-tracks-unmapped.root",
111 OutStream=
"ACTSUNMAPPEDMATERIALWRITER",
112 StoreSurface=StoreSurfInfo,
113 MaterialTrackCollectionKey=OutputUnmappedMaterialTracks))
120 OutputMaterialTracks="OutputMaterialTracks",
121 name="MaterialValidation", **kwargs) :
122 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
123 from AthenaConfiguration.ComponentFactory
import CompFactory
124 acc = ComponentAccumulator()
127 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometrySvcCfg
128 acc.merge( ActsTrackingGeometrySvcCfg(configFlags))
129 from MagFieldServices.MagFieldServicesConfig
import AtlasFieldCacheCondAlgCfg
130 acc.merge(AtlasFieldCacheCondAlgCfg(configFlags))
131 from ActsAlignmentAlgs.AlignmentAlgsConfig
import ActsGeometryContextAlgCfg
132 acc.merge(ActsGeometryContextAlgCfg(configFlags))
134 kwargs.setdefault(
"MaterialTrackCollectionKey", OutputMaterialTracks)
136 acc.addEventAlgo(CompFactory.ActsTrk.MaterialValidation(name, **kwargs), primary =
True)
138 from ActsConfig.ActsMaterialConfig
import MaterialTrackWriterCfg
140 FileName=
"material-tracks-validation.root",
141 MaterialTrackCollectionKey=OutputMaterialTracks))
MaterialMappingCfg(configFlags, name="MaterialMapping", StoreTracks=False, StoreSurfInfo=False, OutputMappedMaterialTracks="OuputMappedMaterialTracks", OutputUnmappedMaterialTracks="OutputUnmappedMaterialTracks", **kwargs)