source: fact/tools/pyscripts/examples/test_fits.py@ 13413

Last change on this file since 13413 was 12817, checked in by neise, 13 years ago
added examples folder with some small scripts for mere testing
File size: 533 bytes
Line 
1#!/usr/bin/python
2#
3#
4from ROOT import *
5
6gSystem.Load('fits_h.so')
7
8from ROOT import *
9
10# now we have full access to all ROOT classes and to the class fits
11
12# access a raw Data file
13
14dfname = '/data03/fact-construction/raw/2011/11/24/20111124_121.fits'
15df = fits( dfname )
16
17NROI = df.GetUInt('NROI')
18NEvents = df.GetNumRows()
19
20print 'accessing data file: ', dfname
21print 'NROI: ', NROI
22print 'NEvents: ', NEvents
23
24# up to here everything is fine
25# the question now is how to really access the data
26
27df.SetPtrAddress('EventNum', a)
Note: See TracBrowser for help on using the repository browser.