A simple source model emitting photons from a gaussian distribution in the X-Y plane with the specified
standard deviations and divergence. A square target centered on the beam (Z-axis)
may be used to restrict the beam to that aperture. If no target aperture is given the full gaussian cross-section is used.
Further, the beam is restricted to emit photons between E0+-dE keV, or lambda0+-dlambda, whichever is given, if a spectrum_file
is not specified, in which case the contents of the file dictates the emitted spectrum.
Example: Source_gaussian(sig_x=10e-6,sig_y=10e-6,dist=15,sigPr_x=9e-6, sigPr_y=9e-6,E0=12.5, dE=0.1)
Parameters in boldface are required;
the others are optional.
File from which to read the spectral intensity profile
Horizontal standard deviation of source (rms source size).
Vertical standard deviation of source (rms source size).
Angular horizontal divergence
Angular vertical divergence
Scaling factor to set the total emitted unrestricted flux.
Unit in spectrum_file is Brilliance - apply corrections to get to raw flux.
Distance from source plane to sampling window.
Gaussian (1) or uniform (0) spectrum profile.
Width of sampling window dist m downstream from source to allow focused sampling.
Height of sampling window dist m downstream from source to allow focused sampling.
[keV] Centre of emitted energy spectrum
Half-width (or std. dev.) of emitted energy spectrum.
Centre of emitted wavelength spectrum.
Half-width (or std. dev.) of emitted wavelength spectrum.
The initial phase of the photons.
If nonzero phase is random (incoherent radiation), otherwise it is set to the value of phase