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 from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
38 acc.addEventAlgo( CompFactory.AthPoolEx.WriteData(
"WriteData", OutputLevel = DEBUG) )
39 acc.addEventAlgo( CompFactory.AthPoolEx.ReWriteData(
"ReWriteData", OutputLevel = DEBUG) )
43 from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleWriteCfg
45 disableEventTag = noTag) )
48 ItemList = [
'EventInfo#*',
'ExampleHitContainer#My*']
52 CompFactory.MakeInputDataHeader(
53 "MakeInputDH", StreamName =
outputStreamName(stream1name), OutputLevel = DEBUG ),
54 sequenceName = outSequence )
59 ItemList = [
'EventInfo#*',
'ExampleTrackContainer#*Trackss']
64 sc = acc.run(flags.Exec.MaxEvents)
65 sys.exit(sc.isFailure())