Page History
...
Example for module CSPadPixCoords::CSPadNDArrProducer
See Module CSPadPixCoords::CSPadNDArrProducer
Example of the module CSPadNDArrProducer working in sequence with ImgAlgos::NDArrAverage is shown in Example for module ImgAlgos::NDArrAverage
Example for module CSPadPixCoords::CSPad2x2NDArrProducer
No Format |
---|
# Run this script:
# psana -c psana-meca1113-r0045-cspad-cspad2x2-dark-hotpix.cfg
[psana]
# Default calibration directory:
# calib-dir = /reg/d/psdm/mec/meca1113/calib
files = exp=meca1113:run=45
events = 400
#skip-events = 0
modules = CSPadPixCoords.CSPad2x2NDArrProducer:1 \
CSPadPixCoords.CSPad2x2NDArrProducer:2 \
ImgAlgos.NDArrAverage:1 \
ImgAlgos.NDArrAverage:2
[CSPadPixCoords.CSPad2x2NDArrProducer:1]
source = MecTargetChamber.0:Cspad2x2.1
inkey =
outkey = cspad2x2.1_ndarr
outtype = int16
print_bits = 3
[CSPadPixCoords.CSPad2x2NDArrProducer:2]
source = MecTargetChamber.0:Cspad2x2.2
inkey =
outkey = cspad2x2.2_ndarr
outtype = int16
print_bits = 3
[ImgAlgos.NDArrAverage:1]
source = MecTargetChamber.0:Cspad2x2.1
key = cspad2x2.1_ndarr
avefile = cspad2x2.1-ave
rmsfile = cspad2x2.1-rms
maskfile = cspad2x2.1-msk
hotpixfile = cspad2x2.1-hot
#evts_stage1 = 100
#gate_width1 = 100.
thr_rms_ADU = 10
thr_min_ADU = 4
thr_max_ADU = 10000
print_bits = 29
[ImgAlgos.NDArrAverage:2]
source = MecTargetChamber.0:Cspad2x2.2
key = cspad2x2.2_ndarr
avefile = cspad2x2.2-ave
rmsfile = cspad2x2.2-rms
maskfile = cspad2x2.2-msk
hotpixfile = cspad2x2.2-hot
#evts_stage1 = 100
#gate_width1 = 100.
thr_rms_ADU = 10
thr_min_ADU = 4
thr_max_ADU = 10000
print_bits = 29 |
This script makes ndarrays for two cspad2x2 detectors and use them evaluate average, rms, mask and hot pixel arrays.
See Module CSPadPixCoords::CSPad2x2NDArrProducer
Example for module CSPadPixCoords::CSPad2x2ImageProducer
...
Overview
Content Tools