Page History
...
ImgHitFinder in regular mode needs in file with pedestals (offset) to correct the image and file with threshold.
In amo74213 run 93 these files can be obtained directly from data, discarding signal hits as outliers using
ImgAlgos.ImgAverage module as follows with configuration file:
Code Block | ||
---|---|---|
| ||
# File: psana-amo74213-r0093-opal-img-average.cfg [psana] #files = /reg/d/psdm/AMO/amo74213/xtc/e269-r0093-s05-c00.xtc files = exp=amo74213:run=93:xtc modules = ImgAlgos.CameraImageProducer \ ImgAlgos.ImgAverage skip-events = 0 events = 1000 [ImgAlgos.CameraImageProducer] source = DetInfo(:Opal1000) key_in = key_out = img subtract_offset = true print_bits = 1 [ImgAlgos.ImgAverage] source = DetInfo(:Opal1000) key = img avefile = img-ave-for-peds rmsfile = img-rms-for-thre evts_stage1 = 100 evts_stage2 = 100 gate_width1 = 50 gate_width2 = 10 print_bits = 31 |
Run psana using command:
Code Block | ||
---|---|---|
| ||
psana -c psana-amo74213-r0093-opal-img-average.cfg |
...
The file with accumulated hit pixels can be obtained using configuration file:
Code Block | ||
---|---|---|
| ||
# File: psana-amo74213-r0093-opal-img-hit-finder.cfg [psana] #files = /reg/d/psdm/AMO/amo74213/xtc/e269-r0093-s05-c00.xtc files = exp=amo74213:run=93:xtc modules = ImgAlgos.CameraImageProducer \ ImgAlgos.ImgHitFinder \ ImgAlgos.ImgAverage skip-events = 0 events = 1000 [ImgAlgos.CameraImageProducer] source = DetInfo(:Opal1000) key_in = key_out = img subtract_offset = true print_bits = 1 [ImgAlgos.ImgHitFinder] source = DetInfo(:Opal1000) key_in = img key_out = img_hits fname_peds = img-ave-for-peds-r0093.dat fname_mask = fname_gain = fname_thre = img-rms-for-thre-r0093.dat masked_value = 0 thre_mode = 3 thre_param = 5 thre_below_value = 0 thre_above_value = 1 win_row_min = 10 win_row_max = 1000 win_col_min = 10 win_col_max = 1000 print_bits = 39 [ImgAlgos.ImgAverage] source = DetInfo(:Opal1000) key = img_hits sumfile = img-sum-result #avefile = img-ave-result #rmsfile = img-rms-result print_bits = 25 |
and run it by the command:
Code Block | ||
---|---|---|
| ||
psana -c psana-amo74213-r0093-opal-img-hit-finder.cfg |
...
Overview
Content Tools