jaxrts.setup.Setup

class jaxrts.setup.Setup(scattering_angle: Quantity, energy: Quantity, measured_energy: Quantity, instrument: Callable, correct_k_dispersion: bool = True, frc_exponent: float = 0.0)[source]

Class containing the information about the experiment’s geometry, the energy of the probing and measured x-rays, and the combined source instrument function.

Methods

__init__(scattering_angle, energy, ...[, ...])

dispersion_corrected_k(n_e)

Returns the dispersion corrected wavenumber.

Attributes

frequency_redistribution_correction

Returns the frequency redistribution correction.

full_k

The scattering vector length probed in the experiment at each energy channel.

k

The scattering vector length probed in the experiment.

lambda0

The wavelength of the probing light, i.e., the wavelength corresponding to energy.

scattering_angle

The scattering angle of the experiment

energy

The base-energy at which we probe.

measured_energy

The energies at which the scattering is recorded.

instrument

A callable function over energy shifts that gives the total instrument spread.

correct_k_dispersion

In an experiment, the value of k is dependent on the measured energy at this position on the detector.

frc_exponent

Exponent of the frequency redistribution correction in the differential cross-section.