Versions Compared

Key

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

...

ImgCalib gets the raw image from data, subtracts pedestals and normalized background, applys the gain factors mask and threshold, 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        | if the file name is specified in {{fname_peds}}
            (2) - N*background    | if the file name is specified in {{fname_bkgd}}
            (3) * gain            | if the file name is specified in {{fname_gain}}
            (4) apply mask        | if the file name is specified in {{fname_mask}}
            (5) apply threshold   | if the threshold value is specified in {{threshold}}
    
  • corrected image is saved in the event with key key_out.

...