Page History
...
Module configuration parameters are the same as for the CSPadPixCoords::CSPadImageProducer.
Module CSPadPixCoords::CSPad2x2ImageProducer
CSPad2x2ImageProducer works in psana framework. It does a few operation as follows:
- gets the pixel coordinates from PixCoords2x1 and PixCoordsCSPad2x2 classes,
- gets data from the event,
- produces the
Image2D<double>
orndarray<double,2>
object with CSPad image for each event, - adds the image object in the event for processing in other modules.
The CSPad2x2 image array is currently shaped as (400,400).
Module configuration parameters:
source
(default: "DetInfo(:Cspad2x2)") – source of data,inkey
(default: "") – key for data processing stage,outimgkey
(default: "Image2D") – output key for image saved in event,tiltIsApplied
(default: false) – on/off for tilt angle of 2x1-sections and quads - currently is not used,print_bits
(default: 0) – verbosity:- =0 - print nothing,
- +1 - calib pars,
- +2 - eventID.
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.
See also Example for Module CSPadPixCoords::CSPad2x2ImageProducer.
Module CSPadPixCoords::SaveImageInFile
(Re-named from deprecated module CSPadPixCoords::CSPadImageGetTest)
CSPadImageGetTest SaveImageInFile is a psana module class, which works after the CSPadImageProducer or CSPadInterpolImageProducer. It receives the CSPadPixCoords::Image2D<double>
or ndarray<double,2>
image object from the event. (This image object may be used in further data processing.) For test purpose, the image of particular event, defined by the eventSave
parameter in configuration file, is saved in the text file with standard predefined name like cspad_image_ev<number>.txt
.
...