ATLAS Offline Software
test_athena_evtstore_writer.py
Go to the documentation of this file.
1 import AthenaCommon.AtlasUnixGeneratorJob
2 
3 from AthenaCommon.AlgSequence import AlgSequence
4 topSequence = AlgSequence()
5 
6 
7 from AthenaCommon.AppMgr import theApp
8 theApp.EvtMax = 20
9 
10 
11 from AthenaCommon.AppMgr import ServiceMgr as svcMgr
12 svcMgr.EventSelector.RunNumber = 1
13 
14 from AthenaPoolExampleAlgorithms.AthenaPoolExampleAlgorithmsConf import AthPoolEx__WriteData
15 topSequence += AthPoolEx__WriteData( "WriteData" )
16 
17 #from AthenaRootComps.WriteAthenaRoot import AthenaRootOutputStream
18 from AthenaRootComps.OutputStreamAthenaRoot import createOutputStream
19 Stream1 = createOutputStream( "Stream1" , "SimpleRootFile.root" , True )
20 Stream1.ItemList += [ "ExampleHitContainer#MyHits" ]
21 
22 from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
23 Stream2 = AthenaPoolOutputStream( "Stream2" , "SimplePoolFile.root" , True )
24 Stream2.ItemList += [ "ExampleHitContainer#MyHits" ]
25 
26 svcMgr.MessageSvc.OutputLevel = 0
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7
python.CreateOutputStreams.createOutputStream
def createOutputStream(streamName, fileName="", asAlg=False, noTag=False, eventInfoKey="EventInfo", decisionFilter="", trigNavThinningSvc=None)
Definition: CreateOutputStreams.py:20
python.CreateOutputStreams.AthenaPoolOutputStream
def AthenaPoolOutputStream
backward compat
Definition: CreateOutputStreams.py:144