- Timestamp:
- 04/25/12 15:53:39 (13 years ago)
- Location:
- fact/tools/pyscripts/sandbox/kraehenb
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/sandbox/kraehenb/CalFitsPerformance.py
r13435 r13448 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 integrals = [] 63 64 #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 65 #Missing: add deadtime after an integration, remove start & end of the array … … 68 69 # integrals = map((lambda index_a,index_b: np.sum(npcalevent[index_a,index_b+5:index_b+15])),npthr.nonzero()[0],npthr.nonzero()[1]) 69 70 integrals = vecoffsum(npthr.nonzero()[0],npthr.nonzero()[1]) 70 print len(integrals)71 71 72 # print len(integrals) 73 # for i in range(10): 74 # print i, npcalevent[0,i], integrals[i] 72 75 # print caltest.event_id, caltest.event_triggertype, caltest.event_caldata[10] 73 76 # pass
Note:
See TracChangeset
for help on using the changeset viewer.