Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 for S/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 and statusfile, respectively. The statusfile contains for each pixel the fraction of events where S/N > SoNThr.

Module configuration parameters:

  • source (default: "DetInfo(:Cspad)") – input source of data
  • key (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 images
  • maskfile (default: "cspad-pix-mask.dat") – out file with pixel mask
  • rmin (default: 3) – radial parameter of the area for median algorithm
  • dr (default: 1) – radial band width of the area for median algorithm
  • SoNThr (default: 3) – S/N threshold for each pixel to be considered as noisy
  • frac_noisy_imgs (default: 0.1) – fraction of noisy images above which pixel will be masked
  • peak_npix_min (default: 4) – minimal number of connected pixels for the good peak
  • peak_npix_max (default: 25) – maximal number of connected pixels for the good peak
  • peak_amp_tot_thr (default: 100.) – threshold on total signal amplitude of the group of connected pixels
  • event_npeak_min (default: 10) – threshold on number of good peaks for the event selection
  • event_amp_tot_thr(default: 1000.) – threshold on total signal amplitude of all good peaks for the event selection
  • selection_mode (default: SELECTION_ON) – selection mode, other allowed values are: SELECTION_OFF, or SELECTION_INV
  • print_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.

See also Example for Module ImgAlgos::CSPadArrPeakFinder.