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
63 WritingTool = writingTool,
64 ItemList=[
'EventInfo#*',
'Trk::MaterialStepCollection#*'],
65 MetadataItemList = [
"EventStreamInfo#MaterialStepCollectionStream",
"IOVMetaDataContainer#*" ],
66 OutputFile =
"MaterialStepCollection.root")
68 StoreGateSvc=CompFactory.StoreGateSvc
70 outputStream.MetadataStore = result.getService(
"MetaDataStore")
72 MakeEventStreamInfo=CompFactory.MakeEventStreamInfo
74 streamInfoTool.Key =
"MaterialStepCollectionStream"
75 streamInfoTool.EventInfoKey =
"EventInfo"
76 outputStream.HelperTools.append(streamInfoTool)
78 result.addEventAlgo(outputStream)
83 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
84 from AthenaConfiguration.ComponentFactory
import CompFactory
86 THistSvc= CompFactory.THistSvc
87 result = ComponentAccumulator()
88 histsvc = THistSvc(name=
"THistSvc")
89 histsvc.Output = [
"val DATAFILE='GeantFollowing.root' OPT='RECREATE'"]
90 result.addService(histsvc)
91 result.setPrivateTools(CompFactory.G4UA.GeantFollowerMSTool(name, **kwargs))