Last change
on this file since 18729 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 | #
|
---|
4 | from ROOT import *
|
---|
5 |
|
---|
6 | gSystem.Load('fits_h.so')
|
---|
7 |
|
---|
8 | from 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 |
|
---|
14 | dfname = '/data03/fact-construction/raw/2011/11/24/20111124_121.fits'
|
---|
15 | df = fits( dfname )
|
---|
16 |
|
---|
17 | NROI = df.GetUInt('NROI')
|
---|
18 | NEvents = df.GetNumRows()
|
---|
19 |
|
---|
20 | print 'accessing data file: ', dfname
|
---|
21 | print 'NROI: ', NROI
|
---|
22 | print 'NEvents: ', NEvents
|
---|
23 |
|
---|
24 | # up to here everything is fine
|
---|
25 | # the question now is how to really access the data
|
---|
26 |
|
---|
27 | df.SetPtrAddress('EventNum', a)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.