You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Setup environment

ssh pslogin
ssh psananeh
# or psanafeh for cxi, sxr, and mec
cd <your-directory>
sit_setup

Pedestals

Configuration file for psana with name for example: ana-xpp50312/psana-xpp50312-r0082-pedestals.cfg

[psana]
files   = /reg/d/ana01/xpp/xpp50312/xtc/e178-r0082-s04-c00.xtc
modules = cspad_mod.CsPad2x2Pedestals

[cspad_mod.CsPad2x2Pedestals]
#source = DetInfo(:Cspad2x2)
source = DetInfo(XppGon.0:Cspad2x2.0)
output = cspad-pedestals-ave-xpp50312-r0082.dat
noise  = cspad-pedestals-rms-xpp50312-r0082.dat

Run psana with this configuration file:

psana -c ana-xpp50312/psana-xpp50312-r0082-pedestals.cfg

In a few seconds this command produce two text files with one-dimensional (143560) array for CSPad2x2, which assumes physical shape (185,388,2).
Using, for example, a simple python script this files may be plotted

./PlotCSPad2x2ArrayFromFile.py cspad-pedestals-ave-xpp50312-r0082.dat 700 1400
./PlotCSPad2x2ArrayFromFile.py cspad-pedestals-rms-xpp50312-r0082.dat 0 20

Averaged pedestals:

RMS of pedestals:

Calibration

By default psana assumes that all calibration files are located in the pre-defined directory
/reg/d/psdm/<INSTRUMENT>/<experiment>/calib/
as explained in CsPad calibration in translator#Locating calibration files

However, the calibration directory can be re-defined through the psana parameters.

In order to fulfill the naming conventions we have to create a tree of calibration subdirectories:

ana-xpp50312/calib/CsPad2x2::CalibV1/XppGon.0:Cspad2x2.0/pixel_gain/
                                                         pixel_status/
                                                         pedestals/
                                                         common_mode/

and populate them with all necessary for analysis files. In particular:

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

  • No labels