Page History
...
This is a filter module which implements skipping for the events which have too low signal in CsPad. filtering algorithm can be controlled trough the module parameter and/or parameters in calibration file. The name of the calibration file is "filter" and it will be searched in the standard calibration directories of the experiment.
Module configuration parameters:
...
parameter | default value | description |
---|---|---|
| '' | string key used to locate uncalibrated data objects in event |
|
...
"DetInfo(:Cspad)" |
...
data source address | |
|
...
"yes" |
...
when set to "yes" if the module does not find CsPad data in an event then it skips event | |
|
...
-1 |
...
filtering mode, see below | |
|
...
all 0 |
...
list of parameters for filtering algorithm, up to 16 floating numbers |
Parameter mode
defines where the filter get its parameters and how it works. If set to -1 (default) then it reads parameters and actual mode value from a calibration text file which should contain one integer number for mode and up to 16 floating point parameters. If parameter is set to 0 or if the value read from file is 0 then no filtering is done, all events are passed through. If mode is set to 1 (from parameter or file) then filter calculates the number of pixels above certain threshold. Filter expects two values in parameter array: threshold for pixel value and minimum number of pixels above threshold. If second parameter is negative then it's assumed to be a percentage of the full number of pixels.
...
This module demonstrates of how to use the PixCoords2x1, PixCoordsQuad, and PixCoordsCSPad classes
in order to pre-calculate pixel coordinates, taking into account the calibration parameters.
Relevant images are produced in combination of the pixel coordinates with event data and saved in text files.
Module configuration parameters:
...
parameter | default value | description |
---|---|---|
| "/reg/d/psdm/CXI/cxi35711/calib" |
...
directory with calibration |
...
file |
|
...
"CsPad::CalibV1" |
...
data type and group names |
...
|
...
"CxiDs1.0:Cspad.0" |
...
source of data |
...
|
...
32 | run number for calibration file |
...
|
...
32 | number of events before stop a job |
...
|
...
false | on/off for potential selection filter |
...
Module CSPadPixCoords::CSPadImageProducer
...
- gets the pixel coordinates from PixCoords2x1, PixCoordsQuad, and PixCoordsCSPad classes,
- gets data from the event,
- produces the
ndarray<double,2>
orImage2D<double>
object with CSPad image for each event, - adds the image object in the event for 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:
...
parameter | default value | description |
---|---|---|
|
| directory with calibration files, by default it is set to .../<experiment>/calib |
|
...
"CsPad::CalibV1" |
...
calibration type and group names |
...
|
...
"CxiDs1.0:Cspad.0" |
...
source of data |
...
|
...
| key for data processing stage |
...
|
...
"image" |
...
output key for image saved in event |
...
|
...
true | on/off for tilt angle of 2x1-sections and quads. | |
|
...
0 | verbosity:
|
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 (by default) as andarray<double,2>
object.
...