A flat rectangular or circular surface emitting x-rays
Date: September 25, 2009
A circular or rectangular xray source. Spectrum may be either gaussian or uniform around a central wavelength/energy
or read from a datafile. Xrays are considered emitted uniformly into 4pi, but a square target retricts the beam to
that window and scales the beam intensity accordingly.
If an input spectrum datafile (spectrum_file) is not specified, the beam is restricted to emit photons between E0+-dE keV, or lambda0+-dlambda Å, whichever is given.
The input spectrum file should be formatted such that x-ray energy/wavelength is in the first column and the intensity in the second. Any preceding
lines starting with # are considered part of the file header. If a datafile is given, a nonzero E0 value indicates that is is parametrized by energy ( in keV)
as opposed to wavelength (in Å). Wavelength is the default.
Flux is set in the unit photons/s
Parameters in boldface are required;
the others are optional.
Radius of circle in (x,y,0) plane where x-rays
Height of rectangle in (x,y,0) plane where x-rays
Width of rectangle in (x,y,0) plane where x-rays
are generated. Overrides xmin and xmax.
Lower bound of x-interval where photons are generated.
upper bound of x-interval where photons are generated.
Distance to target along z axis.
Width of target
Height of target
Mean energy of xrays.
Energy half spread of x-rays (flat or gaussian sigma).
Mean wavelength of x-rays.
Wavelength half spread of x-rays.
total flux radiated from the source
Gaussian (1) or Flat (0) energy/wavelength distribution