Changeset 12820 for fact/tools/pyscripts


Ignore:
Timestamp:
02/03/12 10:46:32 (13 years ago)
Author:
lusterma
Message:
fbsl.py fixed bug: ROOT::TH1F warnings, print event number changed to mod 100
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/tools/fbsl.py

    r12819 r12820  
    99from myhisto import *
    1010from hist import *
     11
     12import sys
    1113
    1214year, month, day = 2011, 11, 24
     
    4244bslMeanValues = np.zeros( ( nsteps, rd.NPIX) )
    4345
    44 
    4546def loopEvents( first, last, hist):
    4647    """
     
    4849    """
    4950    for ev in range( first, last ):
    50         print 'Event', ev
     51        if ev%100 == 0: print 'Event', ev
     52       
    5153        rd.next()
    5254        # rd.CorrectBaseline()
     
    8082
    8183    pixstephist = hist_array( rd.NPIX, 400, -99.5, 100.5,
    82                           'bsl_pix', 'Pixel Baseline',
     84                          'bsl_pix_step', 'Pixel Baseline',
    8385                          'sample value in mV', 'Entries / 0.5 mV' ) 
     86   
    8487    loopEvents( evranges[step], evranges[step+1], pixstephist )
    8588    pixhist.y[:,:] += pixstephist.y[:,:]
Note: See TracChangeset for help on using the changeset viewer.