Page History
...
Filter works on individual image arrays (quadrants). Module checks for CsPad::DataV1, CsPad::DataV2, and CsPadCsPad2x2::MiniElementV1 ElementV1 objects in that order. If any object is found then module runs filter on images in that object. If any one image passes the filter then module returns and event is passed to downstream modules, otherwise framework skips this event.
...
Package ImgPixSpectra is intended to accumulate the spectra for all pixels of the image array.
Different modules of this package work with different data types for detectors like CSPad, mini-CSPadCSPad2x2, Opal, Princeton camera, etc. All modules have the same interface and the same functionality.
In the loop over events from beginJob
to endJob
the image pixel amplitudes are accumulated in the 2-d array,
of the shape (<number-of-pixels>, <number-of-spectral-bins>). The first parameter is defined by the image size. The second is passed as an external parameter of the psana configuration file (psana.cfg
) along with minimal and maximal amplitudes. At the endJob
the spectral array is saved in file with specified name. Auxiliary file with the name extension *.sha
is created in order to save the shape parameters. For example, the "mini-cspadcspad2x2-pix-spectra.txt.sha" outpuit file contains
Code Block | ||
---|---|---|
| ||
NPIXELS 143560 NBINS 100 AMIN 500 AMAX 1000 NEVENTS 2549 ARRFNAME mini-cspadcspad2x2-pix-spectra.txt |
This information can be used in analysis or presentation of this array.
...
parameter | default value | description |
---|---|---|
| "CxiDs1.0:Cspad.0" | source of data for CSPad |
| 1<<31U | number of events before stop a job |
|
| input key for data processing stage |
| 0. | minimal spectral amplitude |
| 1000. | maximal spectral amplitude |
| 100 | number of bins in spectra |
| "..._spectral_array.txt" | output file name |
Module ImgPixSpectra::
...
CSPad2x2PixSpectra
The only difference in interface of this module from previous is in the default name for the source parameter and the output file name.
parameter | default value | description |
---|---|---|
| "DetInfo(:Cspad2x2)" | source of data for MiniCSPad CSPad2x2 |
Module ImgPixSpectra::CameraPixSpectra
...
parameter | default value | description | ||
---|---|---|---|---|
| "DetInfo(:Cspad)" | input source of data | ||
|
| key for input data, by default use raw data | ||
| "bkgd_subtracted" | output key for the next data processing stage | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="7abf0044541f81b1-58fdfec9-404d4c82-bc2cb2d9-c69f0d68bcaa28d758ebb2dc"><ac:plain-text-body><![CDATA[ | | "cspad_background.dat" | file with CSPad array [4*8*185][388] of averaged background | ]]></ac:plain-text-body></ac:structured-macro> |
| 0 | CSPad sector in quad from 0 to 7 | ||
| 0 | module verbosity:
|
...
parameter | default value | description | ||
---|---|---|---|---|
| "DetInfo(:Cspad)" | input source of data | ||
|
| key for input data, by default use raw data | ||
| "bkgd_subtracted" | output key for the next data processing stage | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="583bc765e546b4bc-0fdb00c2-4eae464d-9f8d9353-330462f0d43fbf5f63d9f783"><ac:plain-text-body><![CDATA[ | | "cspad_mask.dat" | file with CSPad mask array [4*8*185][388] | ]]></ac:plain-text-body></ac:structured-macro> |
| 0 | this amplitude will replace the amplitude in each masked pixel | ||
| 1 | control bits for applied mask:
| ||
| 0 | module verbosity:
|
...