Versions Compared

Key

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

...

Command to run:
psana -c cspad2x2-test.cfg
One of the saved files cspad2x2-<run>-<timestamp>.txt is plotted as an image by the command
./PlotCameraImageFromFile.py cspad2x2-<run>-<timestamp>.txt 0 1200

Configuration file for cspad2x2 with pedestal subtraction

Note

Access to the CSPad2x2 aligned geometry is added on 2013-02-13.
Until offline release > ana-0.9.1 is not available, one has to use local release directory:

Code Block

ssh psexport ( or psana )
cd <your-favorite-directory>
newrel ana-current <your-release-directory>
cd <your-release-directory>
sit_setup
addpkg pdscalibdata   V00-04-04
addpkg PSCalib        V00-01-06 
addpkg CSPadPixCoords V00-03-02
scons
psana -m <psana-config-file.cfg> 

Example of <psana-config-file.cfg>:

Code Block

[psana]
files    = /reg/d/psdm/mec/mec73313/xtc/e268-r0180-s02-c00.xtc
#calib-dir = ./calib

modules  = cspad_mod.CsPadCalib CSPadPixCoords.CSPad2x2ImageProducer ImgAlgos.ImgSaveInFile
events   = 5

[cspad_mod.CsPadCalib]
source        = DetInfo(MecTargetChamber.0:Cspad2x2.3)
inputKey      = 
outputKey     = calibrated_arr
doPedestals   = yes
doPixelStatus = no
doCommonMode  = no


[CSPadPixCoords.CSPad2x2ImageProducer]
calibDir       = /reg/d/psdm/mec/mec73313/calib
typeGroupName  = CsPad2x2::CalibV1
#source        = DetInfo(MecTargetChamber.0:Cspad2x2.3)
source         = :Cspad2x2.3
inkey          = calibrated_arr
outimgkey      = Image
tiltIsApplied  = true
print_bits     = 15


[ImgAlgos.ImgSaveInFile]
source         = DetInfo(MecTargetChamber.0:Cspad2x2.3)
key            = Image
fname          = cspad2x2.3
saveAll        = true
print_bits     = 3
#eventSave     = 5

Example for Package ImgPixSpectra

...