44 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
45 from AthenaConfiguration.ComponentFactory
import CompFactory
52 actionAcc.setPrivateTools(actions)
53 MaterialStepRecorderAction = result.popToolsAndMerge(actionAcc)
55 actionList = MaterialStepRecorderAction
59 kwargs_UATools.setdefault(
"UserActionTools",actionList)
60 result.addService(CompFactory.G4UA.UserActionSvc(name,**kwargs_UATools))
62 AthenaOutputStream=CompFactory.AthenaOutputStream
63 AthenaOutputStreamTool=CompFactory.AthenaOutputStreamTool
67 WritingTool = writingTool,
68 ItemList=[
'EventInfo#*',
'Trk::MaterialStepCollection#*'],
69 MetadataItemList = [
"EventStreamInfo#MaterialStepCollectionStream",
"IOVMetaDataContainer#*" ],
70 OutputFile =
"MaterialStepCollection.root")
72 StoreGateSvc=CompFactory.StoreGateSvc
74 outputStream.MetadataStore = result.getService(
"MetaDataStore")
76 MakeEventStreamInfo=CompFactory.MakeEventStreamInfo
78 streamInfoTool.Key =
"MaterialStepCollectionStream"
79 streamInfoTool.EventInfoKey =
"EventInfo"
80 outputStream.HelperTools.append(streamInfoTool)
82 result.addEventAlgo(outputStream)