Versions Compared

Key

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

...

Add the Geometry Control Node as usually and remove input terminal for arr3d. Click on "Apply" and use any geometry output parameters except "image".


PythonEditor for calib components

...

of epix10ka and epixhr detectors

This example shows how to access in ami all internl components of the det.raw.calib(...) method such as calibration constants, per-panel trbit and asicPixelConfig, per-event gain factors and pedestals, mask, common mode correction, etc.

...

Code Block
titleCommand to test
# for epixquad - 4-panel epix10ka panels:
ami-local -b 1 -f interval=1 psana://exp=ueddaq02,run=569,dir=/cds/data/psdm/prj/public01/xtc

# for epixhrsingle 1-panel epixhr:
ami-local -b 1 -f interval=1 psana://exp=rixx45619,run=121,dir=/cds/data/psdm/prj/public01/xtc

...

In this example the PythonEditor box receives input objects for raw (np.ndarray), config, calibconst, accesses and prints call internal components of the det.raw.calib(...) internal components method and returns common mode correction2-d image for one retrieved arrays. For imaging, the 3-d array of common mode correction is converted to 2-d table of segments. 

...

Image for common mode correction and calibcalib1, respectively

Implementation of the class calib_components_epix

  • Module detector/utils_calib_components.py will be available in releases grater than ps-4.5.24.
  • It is implemented for epix10ka and epixhr detector types.
  • Code example is also available in the head of this module.
  • Common mode correction methods are not available yet in this example.

...

Test example in psana

Example shows how to initialize and use the calib_components_epix object using the detector interface objects.

This script can be executed in the lcls2 psana environment by the command like

python ./lcls2/psana/psana/detector/test_issues_2023.py 2

...