Versions Compared

Key

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

...

Panel

Anchor
_pdsdata.cspad.CsPadGainMapCfg
_pdsdata.cspad.CsPadGainMapCfg

Class _pdsdata.cspad.CsPadGainMapCfg

Python wrapper for pdsdata/cspad/CsPadGainMapCfg class.


Construction

This class cannot be instantiated directly, methods of other classes return instances of this type.


Method map()

Usage: val = config.map()

Returns 2-dimensional array of size ColumnsPerASIC}} x {{MaxRowsPerASIC (These constants are defined in _pdsdata.cspad.ElementV1 class).


Property gainMap

Usage: val = config.gainMap

Returns the same array as map() method above.

...

Panel

Anchor
_pdsdata.cspad.ElementV1
_pdsdata.cspad.ElementV1

Class _pdsdata.cspad.ElementV1

Python wrapper for pdsdata/cspad/ElementV1 class.


Class constants

  • ElementV1.ColumnsPerASIC
  • ElementV1.MaxRowsPerASIC

Construction

This class cannot be instantiated directly, methods of other classes return instances of this type.


Method virtual_channel()

Usage: val = elem.virtual_channel()

Returns integer number.


Method lane()

Usage: val = elem.lane()

Returns integer number.


Method tid()

Usage: val = elem.tid()

Returns integer number.


Method acq_count()

Usage: val = elem.acq_count()

Returns integer number.


Method op_code()

Usage: val = elem.op_code()

Returns integer number.


Method quad()

Usage: val = elem.quad()

Returns integer number.


Method seq_count()

Usage: val = elem.seq_count()

Returns integer number.


Method ticks()

Usage: val = elem.ticks()

Returns integer number.


Method fiducials()

Usage: val = elem.fiducials()

Returns integer number.


Method frame_type()

Usage: val = elem.frame_type()

Returns integer number.


Method sb_temp()

Usage: val = elem.sb_temp(index)

Returns integer number, index is a number from 0 to 3.


Method next()

Usage: val = elem.next(config)

Returns next element, config is an object of type _pdsdata.cspad.ConfigV1 type. Total number of elements is given by config object's numQuads() method.


Method data()

Usage: val = elem.data(config)

Returns data array, config is an object of type _pdsdata.cspad.ConfigV1 type. Dimensions of array are nAsic/2}} x {{ColumnsPerASIC}} x {{MaxRowsPerASIC}} x {{2, nAsic is the number returned by config object's numAsicsRead() method.


Method pixel()

Usage: val = elem.pixel(asic, column, row)

Returns value of a given pixel.

...