#!/usr/bin/python # # from ROOT import * gSystem.Load('fits_h.so') from ROOT import * # now we have full access to all ROOT classes and to the class fits # access a raw Data file dfname = '/data03/fact-construction/raw/2011/11/24/20111124_121.fits' df = fits( dfname ) NROI = df.GetUInt('NROI') NEvents = df.GetNumRows() print 'accessing data file: ', dfname print 'NROI: ', NROI print 'NEvents: ', NEvents # up to here everything is fine # the question now is how to really access the data df.SetPtrAddress('EventNum', a)