Changeset 13142 for fact/tools/pyscripts/pyfact
- Timestamp:
- 03/19/12 11:34:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/pyfact/pyfact.py
r13141 r13142 1 #!/usr/bin/python 1 #!/usr/bin/python -tt 2 2 # 3 3 # Werner Lustermann … … 28 28 29 29 def __init__(self, data_file_name, calib_file_name, 30 31 30 user_action_calib=lambda acal_data, data, blm, tom, gm, scells, nroi: None, 31 baseline_file_name=''): 32 32 """ initialize object 33 33 … … 45 45 self.calib_file_name = calib_file_name 46 46 self.baseline_file_name = baseline_file_name 47 48 47 48 self.user_action_calib = user_action_calib 49 49 50 50 # baseline correction: True / False … … 136 136 137 137 #print 'nevents = ', self.nevents, 'event_id = ', self.event_id.value 138 138 139 139 return self.acal_data, self.start_cells, self.trigger_type.value 140 140 … … 172 172 173 173 self.acal_data = acal_data * 1907.35 174 175 176 177 178 179 180 181 182 183 174 175 #print 'blm _pyfact', blm[0,0:20] 176 #t = np.roll( blm[0,:], -self.start_cells[0] ) 177 #print 'blm _pyfact', t[0:20] 178 #print 'start_pyfact: ', self.start_cells[0] 179 #print 'acal _pyfact: ', self.acal_data[0,0:10] 180 #t = np.roll( gm[0,:], -self.start_cells[0] ) 181 #print 'gm _pyfact: ', t[0:10] 182 self.user_action_calib( self.acal_data, 183 np.reshape(self.data, (self.npix, self.nroi) ), blm, tom, gm, self.start_cells, self.nroi) 184 184 185 185
Note:
See TracChangeset
for help on using the changeset viewer.