62os.system (
'rm -f *.root Catalog1.xml')
64from AthenaConfiguration.AllConfigFlags
import initConfigFlags
65from AthenaConfiguration.ComponentFactory
import CompFactory
67from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg, outputStreamName
69stream1name =
"Stream1"
70file1Name =
"ROOTTREE:SimplePoolFile1.root"
71stream2name =
"Stream2"
72file2Name =
"ROOTTREE:SimplePoolFile2.root"
73stream3name =
"Stream3"
74file3Name =
"ROOTTREE:EmptyPoolFile.root"
78flags = initConfigFlags()
79flags.Common.MsgSuppression =
False
80flags.Exec.MaxEvents = 20
82flags.addFlag(f
"Output.{stream1name}FileName", file1Name)
83flags.addFlag(f
"Output.{stream2name}FileName", file2Name)
84flags.addFlag(f
"Output.{stream3name}FileName", file3Name)
85flags.Exec.DebugMessageComponents = [ outputStreamName(stream1name) ,
"PoolSvc",
"AthenaPoolCnvSvc",
"WriteData" ]
89from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
90acc = MainServicesCfg( flags )
92from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
93acc.merge( EventInfoCnvAlgCfg( flags, disableBeamSpot=
True ) )
96from EventBookkeeperTools.EventBookkeeperToolsConfig
import CutFlowSvcCfg
97acc.merge( CutFlowSvcCfg( flags ) )
99from IOVDbSvc.IOVDbSvcConfig
import IOVDbSvcCfg
100acc.merge( IOVDbSvcCfg( flags ) )
103acc.addEventAlgo( CompFactory.AthPoolEx.WriteData(
"WriteData", OutputLevel = DEBUG) )
106from AthenaPoolExampleAlgorithms.AthenaPoolExampleConfig
import AthenaPoolExampleWriteCfg
107acc.merge( AthenaPoolExampleWriteCfg( flags, stream1name, writeCatalog =
"file:Catalog1.xml",
108 disableEventTag = noTag ) )
110stream1ca = OutputStreamCfg( flags, stream1name, disableEventTag = noTag,
112 'EventInfo#*',
'EventStreamInfo#*',
113 'ExampleHitContainer#MyHits',
'ExampleHitContainer#PetersHits' ] )
114acc.merge( stream1ca )
117acc.merge( AthenaPoolExampleWriteCfg( flags, stream2name, disableEventTag = noTag ) )
118stream2ca = OutputStreamCfg(flags, stream2name, disableEventTag = noTag,
119 ItemList = [
'EventInfo#*',
'ExampleHitContainer#MyHits'] )
120acc.merge( stream2ca )
123filterAlg = CompFactory.AthPoolEx.PassNoneFilter(
"PassNoneFilter", OutputLevel = DEBUG)
124acc.addEventAlgo( filterAlg )
125acc.merge( AthenaPoolExampleWriteCfg( flags, stream3name, disableEventTag = noTag ) )
126stream3ca = OutputStreamCfg(flags, stream3name, disableEventTag = noTag )
127stream3 = stream3ca.getEventAlgo( outputStreamName( stream3name ) )
128stream3.RequireAlgs = [
"PassNoneFilter" ]
129acc.merge( stream3ca )
133sc = acc.run(flags.Exec.MaxEvents)
134sys.exit(sc.isFailure())