- Timestamp:
- 04/24/12 14:41:37 (13 years ago)
- Location:
- fact/tools/pyscripts/sandbox/kraehenb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/sandbox/kraehenb/CalFitsPerformance.py
r13430 r13435 61 61 # print [(x,y) for x,y in zip(npthr.nonzero()[0],npthr.nonzero()[1])] #print the coordinates, range 0-1399,0-284 62 62 63 #Various versions to get the integral, all with approximately the same miserable speed (3 Hz), except for the last one with ~4.3 Hz63 #Various versions to get the integral, all with approximately the same miserable speed (3 Hz), except for the last one (vectorized function) with ~4.3 Hz 64 64 #Missing: add deadtime after an integration, remove start & end of the array 65 65 # integrals = [np.sum(npcalevent[x,y+5:y+15]) for x,y in np.transpose(npthr.nonzero())] -
fact/tools/pyscripts/sandbox/kraehenb/CalFitsTest.py
r13416 r13435 32 32 print "Trigger type: ", caltest.event_triggertype 33 33 print "Uncalibrated data: ", caltest.event_data 34 print "Calibrated data: ", caltest. event_caldata34 print "Calibrated data: ", caltest.npcaldata 35 35 print "Board times: ", caltest.event_boardtimes 36 36 print "Trigger offsets: ", caltest.event_offset … … 52 52 # break 53 53 # print caltest.event_id, caltest.event_triggertype, caltest.event_caldata[10] 54 # pass 54 55 #print 55 56
Note:
See TracChangeset
for help on using the changeset viewer.