15 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
16 from AthenaConfiguration.ComponentFactory
import CompFactory
18 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg, outputStreamName
20 streamName =
"Stream1"
21 outputFileName =
"SimplePoolFile4.root"
26 flags.Input.Files = [
"SimplePoolFile3.root"]
27 flags.addFlag(f
"Output.{streamName}FileName", outputFileName)
28 flags.Exec.MaxEvents = -1
29 flags.Common.MsgSuppression =
False
31 "ReadData",
"ReWriteData",
32 "PoolSvc",
"AthenaPoolCnvSvc",
"AthenaPoolAddressProviderSvc",
"MetaDataSvc"]
36 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
40 from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleReadCfg, AthenaPoolExampleWriteCfg
43 writeCatalog =
"file:Catalog1.xml",
44 disableEventTag = noTag) )
47 acc.addEventAlgo( CompFactory.AthPoolEx.ReadData(
"ReadData", OutputLevel = DEBUG) )
48 acc.addEventAlgo( CompFactory.AthPoolEx.ReWriteData(
"ReWriteData", ExampleHitKey=
"", OutputLevel = DEBUG) )
52 ItemList = [
"EventInfo#*",
"ExampleTrackContainer#MyTracks"] )
59 stream.WritingTool.OutputLevel = 3
60 stream.HelperTools[0].OutputLevel = 3
64 sc = acc.run(flags.Exec.MaxEvents)
65 sys.exit(sc.isFailure())