Versions Compared

Key

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

...

...

Method calib

   arr = det.calib(evt, cmpars=None, **kwargs)

Regular sequence of applied algorithms

  • dark correction - pedestals subtraction from using calib/.../pedestals
  • common mode correction depending on cmpars or calib/.../common_mode or default from PSCalib.CalibParsBase*V1.py
  • gain correction with gain factors from calib/.../pixel_gain
  • apply mask depending on **kwargs

...

Correction formula

: (common_mode(raw - peds))/gain * mask(**kwargs)

...

...

Method calib

   arr = det.raw.calib(evt, **kwa)

Regular sequence of applied algorithms

  • dark correction - pedestals subtraction using constants of ctype pedestals from DB
  • common mode correction depending on cmpars or constants of ctype common_mode from DB
  • gain correction with constants from DB for ctype pixel_gain
  • mask is not applied by default (see below)

Correction formula

common_mode(raw-peds)/gain

Mask

Mask In lcls2 mask is derived and applied separately as explained in Area detector mask examples or Detector interfase in LCLS-II.

...

  • cmpars=None - use constants from DB

  • cmpars[1] = 0 - OFF

  • both cmpars=None and common_mode constants are missing in DB - common mode correction is OFF

Detector dependent algorithms

Spreadsheet below contains comments on detector specific application

Detector typepedestal subtractioncommon mode correctiongainmaskformulacomments
LCLS-II
epix10ka+

default cmpars=None - search common_mode pars in DB. Correction is OFF if constants missing in DB.

ex. (7,2,100,10)

+-(common_mode(raw - peds)/gain

calib_epix10ka_any(det.raw, evt, cmpars=None, **kwa)

mask defined by **kwa is used in common_mode_correction

see UtilsEpix10ka

epixhr2x2++ the same as epix10ka+-
the same as epix10ka
epix100a+

+ the same as epix10ka

ex. (7,7,100,10)

+-

calib_epix100(det.raw, evt, cmpars=None, **kwa)

UtilsEpix100

opal+-+-(raw-peds)/gainopal_base
piranha4+-+-(raw-peds)/gainpiranha4_base

...