61 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
62 from AthenaConfiguration.ComponentFactory
import CompFactory
64 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg, outputStreamName
66 stream1name =
"Stream1"
67 file1Name =
"ROOTTREE:SimplePoolFile1.root"
68 stream2name =
"Stream2"
69 file2Name =
"ROOTTREE:SimplePoolFile2.root"
70 stream3name =
"Stream3"
71 file3Name =
"ROOTTREE:EmptyPoolFile.root"
76 flags.Common.MsgSuppression =
False
77 flags.Exec.MaxEvents = 20
78 flags.Input.Files = []
79 flags.addFlag(f
"Output.{stream1name}FileName", file1Name)
80 flags.addFlag(f
"Output.{stream2name}FileName", file2Name)
81 flags.addFlag(f
"Output.{stream3name}FileName", file3Name)
82 flags.Exec.DebugMessageComponents = [
outputStreamName(stream1name) ,
"PoolSvc",
"AthenaPoolCnvSvc",
"WriteData" ]
86 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
89 from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
93 from EventBookkeeperTools.EventBookkeeperToolsConfig
import CutFlowSvcCfg
96 from IOVDbSvc.IOVDbSvcConfig
import IOVDbSvcCfg
100 acc.addEventAlgo( CompFactory.AthPoolEx.WriteData(
"WriteData", OutputLevel = DEBUG) )
103 from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleWriteCfg
105 disableEventTag = noTag ) )
109 'EventInfo#*',
'EventStreamInfo#*',
110 'ExampleHitContainer#MyHits',
'ExampleHitContainer#PetersHits' ] )
111 acc.merge( stream1ca )
116 ItemList = [
'EventInfo#*',
'ExampleHitContainer#MyHits'] )
117 acc.merge( stream2ca )
120 filterAlg = CompFactory.AthPoolEx.PassNoneFilter(
"PassNoneFilter", OutputLevel = DEBUG)
121 acc.addEventAlgo( filterAlg )
125 stream3.RequireAlgs = [
"PassNoneFilter" ]
126 acc.merge( stream3ca )
130 sc = acc.run(flags.Exec.MaxEvents)
131 sys.exit(sc.isFailure())