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) )
49 acc.addEventAlgo( CompFactory.AthPoolEx.WriteTag(
"WriteTag", OutputLevel = DEBUG) )
51 MagicWriteTag = CompFactory.AthPoolEx.WriteTag(
"MagicWriteTag", OutputLevel = DEBUG)
52 MagicWriteTag.Key =
"MagicTag"
53 MagicWriteTag.TagKey =
"MagicTag"
54 MagicWriteTag.Magic = 24
55 acc.addEventAlgo( MagicWriteTag )
59 ItemList = [
"EventInfo#*",
"ExampleTrackContainer#MyTracks"] )
61 stream.WritingTool.AttributeListKey = MagicWriteTag.Key
67 stream.WritingTool.OutputLevel = 3
68 stream.HelperTools[0].OutputLevel = 3
72 sc = acc.run(flags.Exec.MaxEvents)
73 sys.exit(sc.isFailure())