4 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
5 from AthenaServices.MetaDataSvcConfig
import MetaDataSvcCfg
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
8 from xAODEventFormatCnv.EventFormatTestConfig
import (
10 EventFormatTestOutputCfg,
17 inputFiles=[
"Test0.pool.root"],
20 streamName =
"ReadWriteTest"
21 for i
in range(numberOfStreams):
23 f
"Output.{streamName}{i}FileName",
24 f
"{streamName}{i}.pool.root",
26 flags.addFlag(f
"Output.doWrite{streamName}{i}",
True)
31 "xAODMakerTest::AVec#TestObject",
32 "xAODMakerTest::AAuxContainer#TestObjectAux.",
33 "xAODMakerTest::AVec#TestObject2",
34 "xAODMakerTest::AAuxContainer#TestObject2Aux.",
35 "xAOD::EventInfo#EventInfo",
36 "xAOD::EventAuxInfo#EventInfoAux.",
41 streamName=
"ReadWriteTest",
43 numberOfStreams=numberOfStreams,
47 CompFactory.xAODMakerTest.ACreatorAlg(
"ACreator", OutputKey=
"TestObject2")
55 CompFactory.xAODMaker.EventFormatMetaDataTool(
56 "EventFormatMetaDataTool",
59 "EventFormatStreamTest0",
64 CompFactory.xAODMaker.FileMetaDataTool(
71 acc.addEventAlgo(CompFactory.xAODMakerTest.EventFormatPrinterAlg())
73 CompFactory.xAODMakerTest.ACreatorAlg(
"ACreator", OutputKey=
"TestObject2")
75 acc.run(flags.Exec.MaxEvents)
78 if __name__ ==
"__main__":