6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
8 result = ComponentAccumulator()
9 result.setPrivateTools(CompFactory.G4UA.MaterialStepRecorderTool(name, **kwargs))
14 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
15 from AthenaConfiguration.ComponentFactory
import CompFactory
17 result = ComponentAccumulator()
20 actionAcc = ComponentAccumulator()
23 actionAcc.setPrivateTools(actions)
24 MaterialStepRecorderAction = result.popToolsAndMerge(actionAcc)
27 from G4AtlasServices.G4AtlasUserActionConfig
import getDefaultActions
28 defaultActions = result.popToolsAndMerge(getDefaultActions(configFlags))
31 actionList = (defaultActions + MaterialStepRecorderAction)
33 kwargs.setdefault(
"UserActionTools",actionList)
34 result.addService(CompFactory.G4UA.UserActionSvc(name,**kwargs), primary =
True)
40 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
41 from AthenaConfiguration.ComponentFactory
import CompFactory
43 result = ComponentAccumulator()
45 actionAcc = ComponentAccumulator()
48 actionAcc.setPrivateTools(actions)
49 MaterialStepRecorderAction = result.popToolsAndMerge(actionAcc)
51 actionList = MaterialStepRecorderAction
55 kwargs_UATools.setdefault(
"UserActionTools",actionList)
56 result.addService(CompFactory.G4UA.UserActionSvc(name,**kwargs_UATools))
58 AthenaOutputStream=CompFactory.AthenaOutputStream
59 AthenaOutputStreamTool=CompFactory.AthenaOutputStreamTool
61 TopLevelContainerName =
"",
62 SubLevelBranchName =
"<type>/<key>" )
65 WritingTool = writingTool,
66 ItemList=[
'EventInfo#*',
'Trk::MaterialStepCollection#*'],
67 MetadataItemList = [
"EventStreamInfo#MaterialStepCollectionStream",
"IOVMetaDataContainer#*" ],
68 OutputFile =
"MaterialStepCollection.root")
70 StoreGateSvc=CompFactory.StoreGateSvc
72 outputStream.MetadataStore = result.getService(
"MetaDataStore")
74 MakeEventStreamInfo=CompFactory.MakeEventStreamInfo
76 streamInfoTool.Key =
"MaterialStepCollectionStream"
77 streamInfoTool.EventInfoKey =
"EventInfo"
78 outputStream.HelperTools.append(streamInfoTool)
80 result.addEventAlgo(outputStream)
85 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
86 from AthenaConfiguration.ComponentFactory
import CompFactory
88 THistSvc= CompFactory.THistSvc
89 result = ComponentAccumulator()
90 histsvc = THistSvc(name=
"THistSvc")
91 histsvc.Output = [
"val DATAFILE='GeantFollowing.root' OPT='RECREATE'"]
92 result.addService(histsvc)
93 result.setPrivateTools(CompFactory.G4UA.GeantFollowerMSTool(name, **kwargs))