9os.system (
'rm -f SimplePoolFile[13].root')
11from AthenaConfiguration.AllConfigFlags
import initConfigFlags
12from AthenaConfiguration.ComponentFactory
import CompFactory
14from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg, outputStreamName
16stream1name =
"Stream1"
17file1Name =
"SimplePoolFile1.root"
18stream2name =
"Stream2"
19file2Name =
"SimplePoolFile3.root"
20outSequence =
'AthOutSeq'
24flags = initConfigFlags()
26flags.addFlag(f
"Output.{stream1name}FileName", file1Name)
27flags.addFlag(f
"Output.{stream2name}FileName", file2Name)
28flags.Common.MsgSuppression =
False
29flags.Exec.MaxEvents = 20
30flags.Exec.DebugMessageComponents = [outputStreamName(stream1name), outputStreamName(stream2name),
31 "PoolSvc",
"AthenaPoolCnvSvc",
"WriteData",
"ReWriteData"]
35from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
36acc = MainServicesCfg( flags )
38from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
39acc.merge( EventInfoCnvAlgCfg( flags, disableBeamSpot=
True ) )
41acc.addEventAlgo( CompFactory.AthPoolEx.WriteData(
"WriteData", OutputLevel = DEBUG) )
42acc.addEventAlgo( CompFactory.AthPoolEx.ReWriteData(
"ReWriteData", OutputLevel = DEBUG) )
46from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleWriteCfg
47acc.merge( AthenaPoolExampleWriteCfg(flags, stream1name, writeCatalog =
"file:Catalog1.xml",
48 disableEventTag = noTag) )
50acc.merge( OutputStreamCfg(flags, stream1name, disableEventTag = noTag,
51 ItemList = [
'EventInfo#*',
'ExampleHitContainer#My*']
55 CompFactory.MakeInputDataHeader(
56 "MakeInputDH", StreamName = outputStreamName(stream1name), OutputLevel = DEBUG ),
57 sequenceName = outSequence )
60acc.merge( AthenaPoolExampleWriteCfg(flags, stream2name, disableEventTag = noTag) )
61acc.merge( OutputStreamCfg(flags, stream2name, disableEventTag = noTag,
62 ItemList = [
'EventInfo#*',
'ExampleTrackContainer#*Trackss']
67sc = acc.run(flags.Exec.MaxEvents)
68sys.exit(sc.isFailure())