Page History
...
Code Block | ||
---|---|---|
| ||
# Command to run this script:
# psana -c psana-cxib2313-r0114-cspad-pix-spectra.cfg
#
# Other useful commands:
# psana -n 5 -m PrintSeparator,PrintEventId,psana_examples.DumpCsPad /reg/d/psdm/cxi/cxib2313/xtc/e336-r0114*
# psana -n 5 -m EventKeys exp=cxib2313:run=114:xtc
[psana]
#files = /reg/d/psdm/cxi/cxib2313/xtc/e336-r0114-s00-c00.xtc
files = exp=cxib2313:run=114:xtc
#calib-dir = ./calib
skip-events = 0
events = 100
modules = cspad_mod.CsPadCalib ImgPixSpectra.CSPadPixSpectra
[cspad_mod.CsPadCalib]
source = DetInfo(CxiDs1.0:Cspad.0)
inputKey =
outputKey = calibrated
doPedestals = yes
doPixelStatus = no
doCommonMode = yes
[ImgPixSpectra.CSPadPixSpectra]
source = CxiDs1.0:Cspad.0
inputKey = calibrated
amin = -20.
amax = 20.
nbins = 10
arr_fname = cspad_spectral_array.txt
|
where module cspad_mod.CsPadCalib
subtracts pedestals, apply common mode correction, and save CSPAD array in the event store with key "calibrated", which is used in the next module ImgPixSpectra.CSPadPixSpectra
.
To run this script use commandCommand
psana -c psana-cxib2313-r0114-cspad-pix-spectra.cfg
which produces two files:
cspad_spectral_array.txt
- – array of 10-bin amplitude spectra for all pixels- {{
cspad_spectral_array.txt.sha
}}- – file with metadata for this array shape:Code Block bgColor #AAFFFF NPIXELS 2296960 NBINS 10 AMIN -20 AMAX 20 NEVENTS 100 ARRFNAME cspad_spectral_array.txt
Plot for content of the file cspad_spectral_array.txt
:
Example for module ImgPixSpectra::CSPad2x2PixSpectra
...
Overview
Content Tools