Page History
...
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 forabs(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 forabs(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 theavefile
andrmsfile
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 datakey
(default: "") – key for input data, for example, it might be "calibrated"avefile
(default: "img-ave.dat") – out file with averaged amplitudesrmsfile
(default: "img-rms.dat") – out file with rmsevts_stage1
(default: 1000000) – number of events before stage 1evts_stage2
(default: 100) – additional number of events before stage 2gate_width1
(default: 0) – gate_width for stage 1gate_width2
(default: 0) – gate_width for stage 2print_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.
...