Ignore:
Timestamp:
04/23/12 14:15:38 (13 years ago)
Author:
kraehenb
Message:
Pointer version of the CalFits class (faster data access).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/sandbox/kraehenb/CalFitsTest.py

    r13401 r13416  
    1111calibfilename = '/fact/raw/2012/04/17/20120417_003.drs.fits.gz'
    1212
     13import numpy as np
     14
    1315from ROOT import gSystem
    1416gSystem.Load("calfits_h.so")
     
    1618print "Testing object creation: "
    1719caltest = CalFits(datafilename,calibfilename)
     20npcalevent  = np.empty( caltest.npix * caltest.nroi, np.float64) #.reshape(caltest.npix ,caltest.nroi)
     21caltest.SetNpcaldataPtr(npcalevent)
    1822
    1923print "Common variables:"
     
    4549
    4650#while caltest.GetCalEvent():
    47 #    print caltest.event_id, caltest.event_triggertype, caltest.event_caldata[0]
     51#    if caltest.event_id>10:
     52#        break
     53#    print caltest.event_id, caltest.event_triggertype, caltest.event_caldata[10]
    4854#print
    4955
Note: See TracChangeset for help on using the changeset viewer.