Page History
...
- gets the pixel coordinates from PixCoords2x1, PixCoordsQuad, and PixCoordsCSPad classes,
- gets data from the event,
- produces the Image2D
Image2D<double>
orndarray<double,2>
object with CSPad image for each event, - adds the Image2D image object in the event for further processing in other modules.
Time consumed to fill the CSPad image array (currently 1750x1750) is measured to be about 40 msec/event on psana0105.
Module configuration parameters:
calibDir
(default: "/reg/d/psdm/CXI/cxi35711/calib") – directory with calibration files,typeGroupName
(default: "CsPad::CalibV1") – data calibration type and group names,source
(default: "CxiDs1.0:Cspad.0") – source of data,key
(default: "") – key for data processing stage,runNumber
imgkey
(default: 32U"Image2D") – run number for calibration fileoutput key for image saved in event,events
(default: 32U1<<31U) – number of events before stop a job,filter
(default: false) – on/off for potential selection filter,tiltIsApplied
(default: true) – on/off for tilt angle of 2x1-sections and quads.
Remarks:
- By default the
key
corresponds to raw data. - If the
imgkey
is defined as "Image2D", the image is saved in the event as aCSPadPixCoords::Image2D<double>
object, otherwise (for other names) as andarray<double,2>
object.
Module CSPadPixCoords::CSPadInterpolImageProducer
CSPadImageProducer CSPadInterpolImageProducer works in psana framework. It does a few operation as follows:
- gets the pixel coordinates from PixCoords2x1, PixCoordsQuad, and PixCoordsCSPad classes,
- makes the arrays of neighbour addresses (quad, section, row, column) and weights as a function of the bin indexes (ix, iy) of the CSPad image,
- gets data from the event,
- produces the Image2D object with interpolated CSPad image for each event,
- adds the Image2D
Image2D<double>
orndarray<double,2>
object in the event for further processing in other modules.
In this module we use 4-node bi-linear interpolation algorithm.
Time consumed to fill the CSPad image array (currently 1750x1750) is measured to be about 200 msec/event on psana0106. We consider options for acceleration using GPU or multi-core processing.
...
CSPadImageGetTest is a psana module class, which works after the CSPadImageProducer or CSPadInterpolImageProducer. It gets the Image2D receives the Image2D<double>
or ndarray<double,2>
image object from the event. (This image object may be used in further data processing.) For the test purpose, the image of particular event, defined by the eventSave
parameter in configuration file, is saved in the text file . This event number is defined in the psana.cfg
configuration file. with standard predefined name like cspad_image_get_test_ev<number>.txt
.
Module configuration parameters:
source
(default: "CxiDs1.0:Cspad.0") – source of data,events
key
(default: 10000000) – number of events before stop a job,"Image2D") – input image key,eventSave
(default: 32U10U) – event number to save the CSPad image file,filter
events
(default: false10000000) – on/off for potential selection filternumber of events before stop the job.
Package ImgPixSpectra
For complete reference see the Doxygen documentation.
...
source
(default: "CxiDs1.0:Cspad.0" ) – source of data for CSPadevents
(default: 1<<31U ) – number of events before stop a jobinputKey
(default: "" ) – input key for data processing stageamin
(default: 0. ) – minimal spectral amplitudeamax
(default: 1000. ) – maximal spectral amplitudenbins
(default: 100 ) – number of bins in spectraarr_fname
(default: "..._spectral_array.txt" ) – putput output file name
Module ImgPixSpectra::MiniCSPadPixSpectra
...
Alternative to the cspad_mod.CsPadCalibalgorithmCsPadCalib
algorithm for the common mode correction.
Takes the CSPad data array with subtracted pedestals, evaluate the average amplitude for each 2x1 section for amplitudes below the threshold, and subtract it from all pixel amplitudes. This algorithm consumes about 30 ms/event on psana0205.
...
source
(default: "DetInfo(:Cspad)" ) – source of data for CSPadinputKey
(default: "calibrated" ) – input key for input data, by default expects data fromcspad_mod.CsPadCalib
outputKey
(default: "cm_subtracted" ) – output key for the next data processing stageampthr
(default: 30 ) – threshold to exclude the large pixel amplitudes in average
...
source
(default: "DetInfo(:Cspad)") – source of datakey
(default: "CSPad:ImageImage2D") – input key for input image datathreshold
(default: 10) – minimal threshold on pixel amplitudenumPixMin
(default: 100) – minimal number of pixels with amplitude above the thresholdfilterIsOn
(default: true) – ON/OFF the filter Window for pixel counting. Default values means the entire range.xmin
(default: 0) – minimal row numberxmax
(default: 100000) – maximal row numberymin
(default: 0) – minimal column numberymax
(default: 100000) – maximal column number
Remarks:
- The default
key
("Image2D") stands for theImage2D<double>
image object. Otherkey
names work for thendarray<double,2>
image object. - The
xmin
,xmax
,ymin
,ymax
(in pixels) defines the window in the image for pixel counting. Default values means the entire image range.