pysrw.lib.srwlib.SRWLDet

pysrw.lib.srwlib.SRWLDet#

class pysrw.lib.srwlib.SRWLDet(_xStart=0, _xFin=0, _nx=1, _yStart=0, _yFin=0, _ny=1, _dx=0, _dy=0, _spec_eff=1, _eStart=0, _eFin=0, _ord_interp=1)[source]#

Bases: object

Detector of Radiation

__init__(_xStart=0, _xFin=0, _nx=1, _yStart=0, _yFin=0, _ny=1, _dx=0, _dy=0, _spec_eff=1, _eStart=0, _eFin=0, _ord_interp=1)[source]#
Parameters:
  • _xStart – initial value of horizontal position [m] (/angle [rad])

  • _xFin – final value of horizontal position [m] (/angle [rad])

  • _nx – number of points vs horizontal position [m] (/angle [rad])

  • _yStart – initial value of vertical position [m] (/angle [rad])

  • _yFin – final value of vertical position [m] (/angle [rad])

  • _ny – number of points vs vertical position [m] (/angle [rad])

  • _dx – horizontal pixel size [m] (/angle [rad])

  • _dy – vertical pixel size [m] (/angle [rad])

  • _spec_eff – one number or array defining detector spectral efficiency (as function of photon energy, on the mesh given by _eStart, _eFin, _ne)

  • _eStart – initial value of photon energy [eV] (/time [s])

  • _eFin – final value of photon energy [eV] (/time [s])

  • _ne – number of points vs photon energy [eV] (/time [s])

  • _eff_e – treat spectral efficiency as for electric field if True

  • _ord_interp – interpolation order (i.e. order of polynomials to be used at 2D interpolation)

Methods

__init__([_xStart, _xFin, _nx, _yStart, ...])

param _xStart:

initial value of horizontal position [m] (/angle [rad])

get_mesh()

treat_int(_stk[, _mesh, _ord_interp])

Treat Intensity of Input Radiation :param _stk: Stokes data structure or a simple Intensity array to be treated by detector :param _mesh: mesh structure (if it is defined, _stk should be treated as Intensity array of type f) :param _ord_interp: Interpolation order to be used (overrides self.ord_interp)

treat_int(_stk, _mesh=None, _ord_interp=0)[source]#

Treat Intensity of Input Radiation :param _stk: Stokes data structure or a simple Intensity array to be treated by detector :param _mesh: mesh structure (if it is defined, _stk should be treated as Intensity array of type f) :param _ord_interp: Interpolation order to be used (overrides self.ord_interp)