Versions Compared

Key

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

...

cp cspad-pedestals-ave-xpp50312-r0082.dat ana-xpp50312/calib/CsPad2x2::CalibV1/XppGon.0:Cspad2x2.0/pedestals/82-end.data

Another file common_mode/0-end.data usually looks like

Code Block

1 50 10

Analysis

Configuration script for analysis with psana.
Name for example: ana-xpp50312/psana-xpp50312-r0092.cfg

Code Block

[psana]
files       = /reg/d/ana01/xpp/xpp50312/xtc/e178-r0092-s04-c00.xtc
experiment  = xpp50312
calib-dir   = ana-xpp50312/calib
events      = 10

modules = cspad_mod.CsPadCalib CSPadPixCoords.CSPad2x2ImageProducer CSPadPixCoords.SaveImageInFile

[cspad_mod.CsPadCalib]
inputKey      = 
outputKey     = calibrated
doPedestals   = yes
doPixelStatus = no
doCommonMode  = yes
doPixelGain   = no

[CSPadPixCoords.CSPad2x2ImageProducer]
source         = DetInfo(:Cspad2x2)
inkey          = calibrated
outimgkey      = Image
tiltIsApplied  = true
print_bits     = 15

[CSPadPixCoords.SaveImageInFile]
source        = DetInfo(:Cspad2x2)
key           = Image
fname         = cspad2x2
eventSave     = 5
#saveAll       = true

This configuration file provides parameters for psana and three modules.
Currently we setup calibration files for cspad_mod.CsPadCalib module for pedestal subtraction and common mode correction.
Module CSPadPixCoords.CSPad2x2ImageProducer produces the CSPad2x2 image and saves it in the event.
Module SaveImageInFile saves indicated image(s) in the file(s).
Playing with doPedestals and doCommonMode parameters, we could get different images:

Raw data without any correction:
Image AddedImage Added

Pedestals subtracted:
Image AddedImage Added

Pedestals subtracted and common mode corrected:
Image AddedImage Added