Versions Compared

Key

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

...

As it's been announced earlier, the pyana framework will be phased out at some point. There is a variety of reason reasons why:

  • first of all, as our understanding of what kind of analysis framework would work better for our users and for ourselves as developers grew over time we realized that we needed to develop a tool which would have a better interface to the data, a better internal architecture and be much easy to maintain and extend for new data types of LCLS instruments. Hence we ended up with psana.
  • for its users, the psana framework has a number of advantages, among which:
    • better API to the data
    • a possibility of writing (mixing) modules in C++ and Python. Modules written in different languages will still the same data, and they can also exchange data within the framework.
    • supporting data sets in both XTC and HDF5
    • an ability to read the "live" files (while they're being recorded by the DAQ system or data movers)
    • and ability to read data from shared memory of the DAQ (DSS) machines

...

Code Block
/reg/g/psdm/tutorials/cxi/cspad_imaging/

There are three tests in this directory. They demonstrate progressivethree simple steps which could be done to extract and pre-process images taken with the CSPad detector.

  1. dump_2x1_elements
    • the first test will illustrate how individual 2x1 structures can be located from an event and displayed AS-IS w/o any processing. This test also won't use any psana modules.
  2. frame_reco
    • the second example adds one of the standard psana modules in order to reconstruct a full CSPad frame from the corresponding 2x1 components. This test is based on the interactive psana's ability to run events through an optional chain of modules. The modules are specified and configured via an external configuration file 'frame_reco.cfg' which has the usual psana syntax.
  3. frame_reco_calib
    • the last example will add one more module to calibrate (pedestals subtraction and gain correction) reconstructed CSPad images. The modules are configured in an external configuration file 'frame_reco_calib.cfg'

Please, run these test in the same sequence as they're explained above:

Code Block

./dump_2x1_elements.py
./frame_reco.py
./frame_reco_calib.py

5. Doing something less trivial

...