Versions Compared

Key

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

Table of Contents

Common mode correction implementation for epix100

Median algorithm is used for epix100 panel, shape=(1, 704, 768).

...

       cmpars (tuple) - common mode parameters.
          [0] - (int) algorithm number - currently this number is void, median algorithm is used everywhere.
          [1] - (uint) mode bitword - 1/2/4 : correction applied in rows per bank / columns per bank / banks.
          [2] - (float) absolute maximal allowed correction. Correction is not applied if exceeds this value.
          [3] - (uint) minimal number of (unmasked) pixels to evaluate correction.

Code example

Code example to account for common mode correction - cmpars=(0,7,100,10)

Code Block
    from psana import DataSource
    ds = DataSource(exp='tmoc00318',run=10)
    orun = next(ds.runs())
    det = orun.Detector('epix100')
    for evt in orun.events():
        carr = det.raw.calib(evt, cmpars=(0,7,100,10))

Test images

All intensities are in ADU, gain factor is turned off.

Images are shown in psana frame with rows/columns along Cartesian x/y axes, respectively.

Uncorrected and corrected intensities for raw-peds

raw-peds image uncorrected and corrected with cmpars=(0,7,100,10)

Common mode increment in banks, rows, columns separately

raw-peds images with cmpars=(0,4,100,10)/(0,1,100,10)/(0,2,100,10) correction in 16 banks/rows per bank/columns per bank, respectively.

Common mode increment in banks, rows, columns together

raw-peds images with cmpars=(0,7,100,10) - all common mode corrections applied together

References