ATLAS Offline Software
Loading...
Searching...
No Matches
test_athena_evtstore_writer.py
Go to the documentation of this file.
1import AthenaCommon.AtlasUnixGeneratorJob
2
3from AthenaCommon.AlgSequence import AlgSequence
4topSequence = AlgSequence()
5
6
7from AthenaCommon.AppMgr import theApp
8theApp.EvtMax = 20
9
10
11from AthenaCommon.AppMgr import ServiceMgr as svcMgr
12svcMgr.EventSelector.RunNumber = 1
13
14from AthenaPoolExampleAlgorithms.AthenaPoolExampleAlgorithmsConf import AthPoolEx__WriteData
15topSequence += AthPoolEx__WriteData( "WriteData" )
16
17#from AthenaRootComps.WriteAthenaRoot import AthenaRootOutputStream
18from AthenaRootComps.OutputStreamAthenaRoot import createOutputStream
19Stream1 = createOutputStream( "Stream1" , "SimpleRootFile.root" , True )
20Stream1.ItemList += [ "ExampleHitContainer#MyHits" ]
21
22from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
23Stream2 = AthenaPoolOutputStream( "Stream2" , "SimplePoolFile.root" , True )
24Stream2.ItemList += [ "ExampleHitContainer#MyHits" ]
25
26svcMgr.MessageSvc.OutputLevel = 0