Versions Compared

Key

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

...

det.calib algorithms

...

Regular method calib

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

...

Code Block
titleData access code example
    from psana import DataSource
    ds = DataSource(exp=<experiment>,run=<run-number>)
    orun = next(ds.runs())
    det = orun.Detector(<detector-name>)
    for nevt,evt in enumerate(orun.events()):
        print('det.raw.raw(evt).shape  :', det.raw.raw(evt).shape)
        print('det.raw.calib(evt).shape:', det.raw.calib(evt).shape)
        print('det.raw.image(evt).shape:', det.raw.image(evt).shape)

...

Regular method calib

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

...

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

Detector typepedestal subtractioncommon mode correctiongainmaskformulacomments
LCLS-II
epix10ka+cmpars=(7,2,100,10)+-

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

see UtilsEpix10ka

epix100a+cmpars = (7,7,100,10) +-

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

UtilsEpix100

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

References