ATLAS Offline Software
Loading...
Searching...
No Matches
test_athena_ntuple_dumper_seek.py
Go to the documentation of this file.
1if not isinstance(FNAMES, (list,tuple)):
2 FNAMES = [FNAMES]
3 pass
4
5if not 'TUPLENAME' in dir():
6 TUPLENAME = 'egamma'
7
8import AthenaRootComps.ReadAthenaRoot
9svcMgr.EventSelector.InputCollections = FNAMES
10svcMgr.EventSelector.TupleName = TUPLENAME
11
12from AthenaCommon.AlgSequence import AlgSequence
13job = AlgSequence()
14
15import AthenaRootComps.AthenaRootCompsConf as arcc
16if not 'USEVARHANDLE' in dir():
17 USEVARHANDLE=1
18if USEVARHANDLE: job += arcc.Athena__RootAsciiDumperAlgHandle("rootdumper")
19else: job += arcc.Athena__RootAsciiDumperAlg ("rootdumper")
20
21
22import os, time
23print ('attach now', os.getpid())
24time.sleep(10)
25
26theApp.initialize()
27theApp.nextEvent()
28theApp.nextEvent()
29theApp.seekEvent(12177)
30theApp.seekEvent(24412)
31theApp.seekEvent(24339)
32
33theApp.finalize().ignore()
34theApp.exit()