Versions Compared

Key

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

...

Module ImgAlgos::ImgCalib

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

...

  • ImgCalib uses the source and key_in parameters to get the input raw image (as ndarray<double,2> object),
  • gets the calibration parameters from files fname_peds, fname_bkgd, fname_gain, and fname_mask, if their names are specified,
  • the specified by the file name corrections are applied per-pixel to raw data image as follows:
    Code Block
    
    A_cor =
    (
     A_raw 
            (1) - pedestal
            (2) - N*background
            (3) * gain
    (*apply) mask,
    
            (4) apply mask
            (5) apply threshold
    
  • corrected image is saved in the event with key key_out.

...

  • source (default: "DetInfo(:Camera)") – source of data,
  • key_in (default: "") – key for input image,
  • key_out (default: "calibrated") – output key for calibrated image saved in event,
  • fname_peds (default: "") – input file name for pedestals
  • fname_bkgd (default: "") – input file name for background,
  • fname_gain (default: "") – input file name for gain,
  • fname_mask (default: "") – input file name for mask,
  • masked_value (default: 0) – amplitude value (in ADU) substituted for masked pixels,
  • threshold (default: -123456) – threshold; if the default value is not changed - threshold is not applied
  • below_thre_value (default: 0) – the amplitude substituted in pixels below threshold,
  • bkgd_row_min (default: 0) – the window in image, which is used for background normalization,
  • bkgd_row_max (default: 10) – the window in image, which is used for background normalization,
  • bkgd_col_min (default: 0) – the window in image, which is used for background normalization,
  • bkgd_col_max (default: 10) – the window in image, which is used for background normalization,
  • print_bits (default: 0) – verbosity:
    • =0 - print nothing,
    • +1 - input pars,
    • +2 - time stamp for each event,
    • +4 - detailed info about input files for pedestals, mask, background, and gain.

...