Versions Compared

Key

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

...

This module averages over events the per-pixel data of image array (ndarray<double,2>) and saves two files for averaged and rms values. The input Input data can be specified with by the source and key parameters. Averaging may have up to three stages, depending on configuration parameters:

  • 0-stage: the 1st portion of events from 0 to evts_stage1 is averaged without any constrains, the preliminary averaged and rms values are defined for each pixel at the end of this stage.
  • 1-stage: starting from the event evts_stage1 data are collected only for abs(amplitude-average0) < gate_width1. At the end of this stage the preliminary averaged and rms values are defined for each pixel.
  • 2-stage: starting from the event evts_stage1 + evts_stage2 data are collected only for abs(amplitude-average1) < gate_width2. At the end of this stage the preliminary averaged and rms values are defined for each pixel and saved in the files specified by the avefile and rmsfile parameters, respectively.
    This 3-stage averaging algorithm

...

  • eliminates large statistical fluctuations in the pixel amplitude spectrum

...

  • .

Module configuration parameters:

  • source (default: "DetInfo(:Opal1000")) – input source of data
  • key (default: "") – key for input data, for example, it might be "calibrated"
  • avefile (default: "img-ave.dat") – out file with averaged amplitudes
  • rmsfile (default: "img-rms.dat") – out file with rms
  • evts_stage1 (default: 1000000) – number of events before stage 1
  • evts_stage2 (default: 1000) – additional number of events before stage 2
  • gate_width1 (default: 0) – gate_width for stage 1
  • gate_width2 (default: 0) – gate_width for stage 2
  • print_bits (default: 0) – module verbosity:
    • =0 - print nothing,
    • +1 - input pars,
    • +2 - event record,
    • +4 - beginning of 3 stages,
    • +8 - processed statistics at the end of each stage,
    • +16 - output in files.

Default parameters are set for regular single-stage averaging without any constrains.
See also Example for Module ImgAlgos::ImgAverage.

...

  • 0-stage: the 1st portion of events from 0 to evts_stage1 is averaged without any constrains, the preliminary averaged and rms values are defined for each pixel
    at the end of this stage.
  • 1-stage: starting from the event evts_stage1 data are collected only for abs(amplitude-average0) < gate_width1. At the end of this stage the preliminary averaged and rms values are defined for each pixel.
  • 2-stage: starting from the event evts_stage1 + evts_stage2 data are collected only for abs(amplitude-average1) < gate_width2. At the end of this stage the preliminary averaged and rms values are defined for each pixel and saved in the files specified by the avefile and rmsfile parameters, respectively.

...