Changeset 13416 for fact/tools/pyscripts/sandbox/kraehenb/CalFitsTest.py
- Timestamp:
- 04/23/12 14:15:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/sandbox/kraehenb/CalFitsTest.py
r13401 r13416 11 11 calibfilename = '/fact/raw/2012/04/17/20120417_003.drs.fits.gz' 12 12 13 import numpy as np 14 13 15 from ROOT import gSystem 14 16 gSystem.Load("calfits_h.so") … … 16 18 print "Testing object creation: " 17 19 caltest = CalFits(datafilename,calibfilename) 20 npcalevent = np.empty( caltest.npix * caltest.nroi, np.float64) #.reshape(caltest.npix ,caltest.nroi) 21 caltest.SetNpcaldataPtr(npcalevent) 18 22 19 23 print "Common variables:" … … 45 49 46 50 #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] 48 54 #print 49 55
Note:
See TracChangeset
for help on using the changeset viewer.