8from AthenaConfiguration.AllConfigFlags
import initConfigFlags
9from AthenaConfiguration.ComponentFactory
import CompFactory
11from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg, outputStreamName
13stream1name =
"Stream1"
14file1Name =
"ROOTTREE:SimplePoolFile1.root"
15stream2name =
"Stream2"
16file2Name =
"ROOTTREE:SimplePoolFile3.root"
17outSequence =
'AthOutSeq'
21flags = initConfigFlags()
23flags.addFlag(f
"Output.{stream1name}FileName", file1Name)
24flags.addFlag(f
"Output.{stream2name}FileName", file2Name)
25flags.Common.MsgSuppression =
False
26flags.Exec.MaxEvents = 20
27flags.Exec.DebugMessageComponents = [outputStreamName(stream1name), outputStreamName(stream2name),
28 "PoolSvc",
"AthenaPoolCnvSvc",
"WriteData",
"ReWriteData"]
32from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
33acc = MainServicesCfg( flags )
35from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
36acc.merge( EventInfoCnvAlgCfg( flags, disableBeamSpot=
True ) )
38acc.addEventAlgo( CompFactory.AthPoolEx.WriteData(
"WriteData", OutputLevel = DEBUG) )
39acc.addEventAlgo( CompFactory.AthPoolEx.ReWriteData(
"ReWriteData", OutputLevel = DEBUG) )
43from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleWriteCfg
44acc.merge( AthenaPoolExampleWriteCfg(flags, stream1name, writeCatalog =
"file:Catalog1.xml",
45 disableEventTag = noTag) )
47acc.merge( OutputStreamCfg(flags, stream1name, disableEventTag = noTag,
48 ItemList = [
'EventInfo#*',
'ExampleHitContainer#My*']
52 CompFactory.MakeInputDataHeader(
53 "MakeInputDH", StreamName = outputStreamName(stream1name), OutputLevel = DEBUG ),
54 sequenceName = outSequence )
57acc.merge( AthenaPoolExampleWriteCfg(flags, stream2name, disableEventTag = noTag) )
58acc.merge( OutputStreamCfg(flags, stream2name, disableEventTag = noTag,
59 ItemList = [
'EventInfo#*',
'ExampleTrackContainer#*Trackss']
64sc = acc.run(flags.Exec.MaxEvents)
65sys.exit(sc.isFailure())