Page History
...
ssh pslogin
ssh psana
cd <your-directory>
sit_setup
Examples for xpp50312
Pedestals
In this section we show how to get CSPad2x2 pedestals using psana for "dark" run.
For this example we create the configuration file ana-xpp50312/psana-xpp50312-r0082-pedestals.cfg
:
...
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 Locating calibration files. However, for analysis it may be convenient to re-define the calibration directory through the psana parameters. In order to fulfill the naming conventions we have to create a tree of the calibration sub-directories somewhere in local user's space, for example:
...
The files for pixel_status
and pixel_gain
have the same structure like for pedestals
and can be supplied, if necessary, depending and based on analysis.
Analysis
For this example we create the configuration file ana-xpp50312/psana-xpp50312-r0092.cfg
:
...
Pedestals subtracted and common mode corrected:
Examples for meca6113
Pedestals
Configuration file for dark run processing (assuming that meca6113-r0018 is a dark run...):
Code Block | ||
---|---|---|
| ||
# File: psana-meca6113-r0018-cspad2x2-pedestals.cfg
[psana]
files = /reg/d/psdm/mec/meca6113/xtc/e332-r0018-s03-c00.xtc
modules = cspad_mod.CsPad2x2Pedestals:1 \
cspad_mod.CsPad2x2Pedestals:2 \
cspad_mod.CsPad2x2Pedestals:3
[cspad_mod.CsPad2x2Pedestals:1]
source = DetInfo(MecTargetChamber.0:Cspad2x2.1)
output = pedestals-ave-meca6113-r0018-Cspad2x2.1.dat
noise = pedestals-rms-meca6113-r0018-Cspad2x2.1.dat
[cspad_mod.CsPad2x2Pedestals:2]
source = DetInfo(MecTargetChamber.0:Cspad2x2.2)
output = pedestals-ave-meca6113-r0018-Cspad2x2.2.dat
noise = pedestals-rms-meca6113-r0018-Cspad2x2.2.dat
[cspad_mod.CsPad2x2Pedestals:3]
source = DetInfo(MecTargetChamber.0:Cspad2x2.3)
output = pedestals-ave-meca6113-r0018-Cspad2x2.3.dat
noise = pedestals-rms-meca6113-r0018-Cspad2x2.3.dat
|
To produce files with pedestals use command:
Code Block | ||
---|---|---|
| ||
psana -c psana-meca6113-r0018-cspad2x2-pedestals.cfg
|
which produces 6 files with average and rms values for 3 detectors:
Code Block | ||
---|---|---|
| ||
pedestals-ave-meca6113-r0018-Cspad2x2.1.dat
pedestals-ave-meca6113-r0018-Cspad2x2.2.dat
pedestals-ave-meca6113-r0018-Cspad2x2.3.dat
pedestals-rms-meca6113-r0018-Cspad2x2.1.dat
pedestals-rms-meca6113-r0018-Cspad2x2.2.dat
pedestals-rms-meca6113-r0018-Cspad2x2.3.dat
|
Calibration
Default calibration in psana will be done if files are located in right place. So, they were deployed as:
Code Block | ||
---|---|---|
| ||
cp pedestals-ave-meca6113-r0018-Cspad2x2.1.dat /reg/d/psdm/mec/meca6113/calib/CsPad2x2::CalibV1/MecTargetChamber.0:Cspad2x2.1/pedestals/18-end.data
cp pedestals-ave-meca6113-r0018-Cspad2x2.2.dat /reg/d/psdm/mec/meca6113/calib/CsPad2x2::CalibV1/MecTargetChamber.0:Cspad2x2.2/pedestals/18-end.data
cp pedestals-ave-meca6113-r0018-Cspad2x2.3.dat /reg/d/psdm/mec/meca6113/calib/CsPad2x2::CalibV1/MecTargetChamber.0:Cspad2x2.3/pedestals/18-end.data
|