Browsing a DST-File

If you want to inspect the contents of a DST-File GaudiPython might be helpful.

To use the following instructions you need to set up Panoramix and then start python

> SetupPanoramix
> python

In Python you can then use the following commands to inspect the first track of the first event.

from LHCbConfig import *
import GaudiPython as gaudi
import gaudigadgets
#from Gaudi.Configuration import *
 
appMgr = gaudi.AppMgr()
sel = appMgr.evtsel()
sel.open(['PFN:~/path/to/myDSTfile.dst'])
evt = appMgr.evtsvc()
 
appMgr.run(1)
evt.dump()
#t = evt['Rec/Track/Best']
#track = t[1]
track = evt['Rec/Track/Best'][1]
track