Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • gets the pixel coordinates from PixCoords2x1, PixCoordsQuad, and PixCoordsCSPad classes,
  • gets data from the event,
  • produces the Image2D<double> or ndarray<double,2> or Image2D<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.

...

  • calibDir (default: "") – directory with calibration files, by default it is set to .../<experiment>/calib
  • typeGroupName (default: "CsPad::CalibV1") – calibration type and group names,
  • source (default: "CxiDs1.0:Cspad.0") – source of data,
  • key (default: "") – key for data processing stage,
  • imgkey (default: "Image2Dimage") – output key for image saved in event,
  • events (default: 1<<31U) – number of events before stop a job,
  • tiltIsApplied (default: true) – on/off for tilt angle of 2x1-sections and quads.
  • print_bits (default: 0) – verbosity:
    • =0 - print nothing,
    • +1 - input pars,
    • +2 - calib pars,
    • +2 4 - consumed time per event,
    • +8 - information about image saved in event.

Remarks:

  • By default the key corresponds to raw data.
  • If the imgkey is defined as "Image2D", the image is saved in the event as a CSPadPixCoords::Image2D<double> object, otherwise (for other namesby default) as a ndarray<double,2> object.

...

  • 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 ndarray<double,2> or CSPadPixCoords::Image2D<double> or ndarray<double,2> object in the event for 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.

...

See also Example for Module CSPadPixCoords::CSPad2x2ImageProducer.

Module CSPadPixCoords::CSPadNDArrProducer

CSPadNDArrProducer is a module for psana framework. It uses specified source and inkey parameters,

  • gets CSPAD configuration from the environment frame Psana::CsPad::ConfigV#,
  • gets CSPAD data from the event frames Psana::CsPad::DataV#, Psana::CsPad::ElementV#,
  • creates the image array as ndarray<T,3>, where T stands for {{outtype}, which may be double, float, int, or uint16_t,
  • puts the image array in the event with outkey tag.

Module configuration parameters:

  • source (default: ":Cspad.0") – source of data,
  • inkey (default: "") – key for data processing stage,
  • outkey (default: "cspad_ndarr") – output key for image saved in event,
  • {{outtype} (default: "float") – type of output data,
  • print_bits (default: 0) – verbosity:
    • =0 - print nothing,
    • +1 - input pars,
    • +4 - consumed time per event.

Package ImgPixSpectra

For complete reference see the Doxygen documentation.

...