8 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
9 from AthenaConfiguration.ComponentFactory
import CompFactory
11 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg, outputStreamName
13 stream1name =
"Stream1"
14 file1Name =
"ROOTTREE:SimplePoolFile1.root"
15 stream2name =
"Stream2"
16 file2Name =
"ROOTTREE:SimplePoolFile3.root"
17 outSequence =
'AthOutSeq'
22 flags.Input.Files = []
23 flags.addFlag(f
"Output.{stream1name}FileName", file1Name)
24 flags.addFlag(f
"Output.{stream2name}FileName", file2Name)
25 flags.Common.MsgSuppression =
False
26 flags.Exec.MaxEvents = 20
28 "PoolSvc",
"AthenaPoolCnvSvc",
"WriteData",
"ReWriteData"]
32 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
35 acc.addEventAlgo( CompFactory.AthPoolEx.WriteData(
"WriteData", OutputLevel = DEBUG) )
36 acc.addEventAlgo( CompFactory.AthPoolEx.ReWriteData(
"ReWriteData", OutputLevel = DEBUG) )
40 from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleWriteCfg
42 disableEventTag = noTag) )
45 ItemList = [
'EventInfo#*',
'ExampleHitContainer#My*']
49 CompFactory.MakeInputDataHeader(
50 "MakeInputDH", StreamName =
outputStreamName(stream1name), OutputLevel = DEBUG ),
51 sequenceName = outSequence )
56 ItemList = [
'EventInfo#*',
'ExampleTrackContainer#*Trackss']
61 sc = acc.run(flags.Exec.MaxEvents)
62 sys.exit(sc.isFailure())