Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Motivation

  • 2012-09-13 14:00 - Mtg with Ryan Coffee, Josef Frisch, Nick Hartmann
  • Would like to have psana application to process xppi0412 data

...

Psana configuration file to get image:

Code Block
[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

Project of analysis-specific module(s)

Functionality

  • Define and cut the spectral regions for signal and reference band
  • Integrate in columns
  • Return two 1024-bin spectra and their relative difference: r= 2(fs-fr)/(fs+fr)

Module parameters

  • source
  • key_in
  • key_out
  • Signal band Y-center
  • Signal band width
  • Signal band tilt angle
  • Reference band Y-center
  • Reference band width
  • Reference band tilt angle
  • Output file name (text format, 1024 x 3 lines of float numbers). If specified, then the file is saved for all selected events.