Motivation

Psana configuration file to get image:

[psana]                                                               
files         = \
/reg/d/psdm/xpp/<experiment>/xtc/<file-1>.xtc \ 
/reg/d/psdm/xpp/<experiment>/xtc/<file-2>.xtc \ 
...
/reg/d/psdm/xpp/<experiment>/xtc/<file-N>.xtc 

modules       = \
                 ImgAlgos.CameraImageProducer \
                 ImgAlgos.SaveImageInFile
#                psana_examples.DumpOpal1k \
events          = 3

[ImgAlgos.CameraImageProducer] 
source          = DetInfo(:Opal1000)
key_in          = 
key_out         = img
subtract_offset = true
print_bits      = 15

[ImgAlgos.SaveImageInFile]
source        = DetInfo(:Opal1000)
key           = img
fname         = img-spectra
saveAll       = true
#eventSave     = 1

In order to run this script, the xtc file path and names should be substituted, then use commands:

sit_setup
psana -c <the-name-of-the-configuration-file>

Project of analysis-specific modules

Module producing spectra

Functionality

Module parameters

Module example for analysis of spectra

Functionality

Module parameters