Page History
...
det.calib algorithms
...
Regular method calib
arr = det.calib(evt, cmpars=None, **kwargs)
...
Code Block | ||
---|---|---|
| ||
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 type | pedestal subtraction | common mode correction | gain | mask | formula | comments |
---|---|---|---|---|---|---|
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) | |
opal | + | - | + | - | (raw-peds)/gain | opal_base |
piranha4 | + | - | + | - | (raw-peds)/gain | piranha4_base |
References
Overview
Content Tools