Versions Compared

Key

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

...

See also Example for Module ImgAlgos::PnccdImageProducer.

Module ImgAlgos::ImgAverage

This module averages over events the image array and saves two files for averaged and rms values. The input data can be specified with 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_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.

3-stage algorithm of averaging allows to eliminate large statistical fluctuations in the pixel amplitude spectrum.
This type of averaging algorithm may be useful for pedestal defenition in case of large amplitude fluctuations.

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: 100) – 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.

See also Example for Module ImgAlgos::ImgAverage.

Module ImgAlgos::ImgCalib

ImgCalib gets the input raw image, subtracts pedestals and normalized background, applys the gain factors and mask, and saves the corrected image in the event.

...