Changeset 13435 for fact


Ignore:
Timestamp:
04/24/12 14:41:37 (13 years ago)
Author:
kraehenb
Message:
Changed CalFitsTest.py to work with the current version of caltest.h.
Location:
fact/tools/pyscripts/sandbox/kraehenb
Files:
2 edited

Legend:

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

    r13430 r13435  
    6161#    print [(x,y) for x,y in zip(npthr.nonzero()[0],npthr.nonzero()[1])] #print the coordinates, range 0-1399,0-284
    6262   
    63     #Various versions to get the integral, all with approximately the same miserable speed (3 Hz), except for the last one with ~4.3 Hz
     63    #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
    6464    #Missing: add deadtime after an integration, remove start & end of the array
    6565#    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  
    3232print "Trigger type: ", caltest.event_triggertype
    3333print "Uncalibrated data: ", caltest.event_data
    34 print "Calibrated data: ", caltest.event_caldata
     34print "Calibrated data: ", caltest.npcaldata
    3535print "Board times: ", caltest.event_boardtimes
    3636print "Trigger offsets: ", caltest.event_offset
     
    5252#        break
    5353#    print caltest.event_id, caltest.event_triggertype, caltest.event_caldata[10]
     54#    pass
    5455#print
    5556
Note: See TracChangeset for help on using the changeset viewer.