Page History
...
See also Example for Module ImgAlgos::CSPadArrNoise.
Module ImgAlgos::CSPadArrPeakFinder
Wiki Markup |
---|
This module extends features of the previous {{ImgAlgos::CSPadArrNoise}} module for the case of peak finding.
It works on CSPad data array (shaped as \[5920=4*8*185\]\[388\]). It does as follows: |
- in the
event(...)
method- uses the "median algorithm" to evaluate the signal and noise for each pixel,
Wiki Markup fills \[4\]\[8\]\[185\]\[388\] per-pixel arrays
m_stat
- number of events with|S/N| > SoNThr
,m_signal
- signal amplitude, or 0(zero) for masked pixels.m_proc_status
- sets 255 forS/N > SoNThr
or 0(zero) for masked pixels.
counts the fraction of events where S/N > SoNThr
,
- and writes the same shape arrays for pixel mask and status information in the
maskfile
andstatusfile
, respectively. Thestatusfile
contains for each pixel the fraction of events whereS/N > SoNThr
.
Module configuration parameters:
source
(default: "DetInfo(:Cspad)") – input source of datakey
(default: "") – key for input data, for example, it might be "calibrated"statusfile
(default: "cspad-pix-frac.dat") – out file with per-pixel fraction of noisy imagesmaskfile
(default: "cspad-pix-mask.dat") – out file with pixel maskrmin
(default: 3) – radial parameter of the area for median algorithmdr
(default: 1) – radial band width of the area for median algorithmSoNThr
(default: 3) – S/N threshold for each pixel to be considered as noisyfrac_noisy_imgs
(default: 0.1) – fraction of noisy images above which pixel will be maskedpeak_npix_min
(default: 4) – minimal number of connected pixels for the good peakpeak_npix_max
(default: 25) – maximal number of connected pixels for the good peakpeak_amp_tot_thr
(default: 100.) – threshold on total signal amplitude of the group of connected pixelsevent_npeak_min
(default: 10) – threshold on number of good peaks for the event selectionevent_amp_tot_thr
(default: 1000.) – threshold on total signal amplitude of all good peaks for the event selectionselection_mode
(default: SELECTION_ON) – selection mode, other allowed values are: SELECTION_OFF, or SELECTION_INVprint_bits
(default: 0) – module verbosity:- =0 - print nothing,
- +1 - input pars,
- +2 - empty,
- +4 - processed statistics,
- +8 - output in files,
- +16 - empty,
- +32 - event time stamp,
- +64 - vector of indexes and map of indexes for the median algorithm,
- +128- vector of found peaks.
Overview
Content Tools