Page History
...
Make sure to adapt the alias to the detectors names in your smalldata h5 file. The object rr
(created from rr = tables.File(f).root
) in the workspace allows for easy tab-exploration of the content of the h5 file to figure out variable names.
Example
Code Block | ||||
---|---|---|---|---|
| ||||
# helper dict to find data in file
dataDict = {
'scanvar': 'enc/lasDelay',
'i0': 'ipm2/sum',
'roi': 'jungfrau1M/ROI_0_area',
'xon': 'lightStatus/xray',
'lon': 'lightStatus/laser',
'tt_corr': 'tt/ttCorr',
'tt_fwhm': 'tt/FLTPOSFWHM',
'tt_amp': 'tt/AMPL'
}
filters = {}
filters['i0'] = [200,10000]
filters['tt_amp'] = [0.02,0.2]
filters['tt_fwhm'] = [50,240]
damage = [dataDict['roi'].split('/')[0], dataDict['i0'].split('/')[0]]
print('Filter selection:')
for key,value in filters.items():
print('\t{} : {}'.format(key, value))
hist_bins = {key: 35 for key in filters.keys()} |
The goodness of the filters be be evaluated in the next cell, where histograms of the variables are shown together with the selected boundaries..
Overview
Content Tools