Versions Compared

Key

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

...

  • ImgCalib uses the source and key_in parameters to get the input raw image (as ndarray<const T,2> object), where T stands for uint16_t, int, float, uint8_t, or double,
  • gets the calibration parameters from files fname_peds, fname_bkgd, fname_gain, fname_mask, and fname_nrmsrms, if their names are specified,
  • the specified by the file name corrections are applied per-pixel to raw data image as follows:

    Code Block
    bgColor#F7F7ED
    A_cor = A_raw
            (1) - pedestal              | if the file name is specified in the parameter "fname_peds"
            (2) - N*background          | if the file name is specified in the parameter "fname_bkgd"
            (3) * gain                  | if the file name is specified in the parameter "fname_gain"
            (4) apply mask              | if the file name is specified in the parameter "fname_mask"
            (5) apply N*RMS threshold   | if the file name is specified in the parameter "fname_nrms"
            (6) apply threshold         | if the "do_threshold" = true
    
  • corrected image is saved in the event with key key_out as double type.

...

parameter

default value

description

source

"DetInfo(:Camera)"

source of data

key_in

 

key for input image

key_out

"calibrated"

output key for calibrated image saved in event

fname_peds

 

input file name for pedestals, applied if the file name is specified

fname_bkgd

 

input file name for background, applied if the file name is specified

fname_gain

 

input file name for gain, applied if the file name is specified

fname_mask

 

input file name for mask, applied if the file name is specified

fname_nrmsrms

 

input file name for RMS, applied if the file name is specified

masked_value

0.

amplitude value (in ADU) substituted for masked pixels

threshold_nrms

3.

threshold as a number of sigmas from file fname_nrms

threshold

0.

constant low level threshold in ADU

below_thre_value

0.

the amplitude substituted in pixels below threshold

do_threshold

false

if true - low level threshold in ADU is applied

bkgd_row_min

0

the window in image, which is used for background normalization

bkgd_row_max

10

the window in image, which is used for background normalization

bkgd_col_min

0

the window in image, which is used for background normalization

bkgd_col_max

10

the window in image, which is used for background normalization

print_bits

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
  • +8 - first 10 elements of the raw image data
  • +16 - first 10 elements of the calibrated image data

...