McXtrace logo

McXtrace - An X-ray ray-trace simulation package

ESRF; SAXSLAB Niels Bohr Institute DTU Physics


 Linux Installation (deb/rpm)
 Mac OSX Installation
 Unix Install (src code)
 Windows Installation

Project Status
 Project Partners
 Project People

Mailing List



Minutes of Meetings

McXtrace Art

About McXtrace



McXtrace: Source_pt Component

[ Identification | Description | Input parameters | Output parameters | Links ]

The Source_pt Component


  • Author:(Unknown)
  • Origin:(Unknown)
  • Date:(Unknown)
  • Version:(Unknown)


A simple source model emitting photons from a point source uniformly into 4pi. A square target centered
on the Z-axis restricts the beam to that aperture.
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 E¤0 value indicates that is is parametrized by energy ( in keV)
as opposed to wavelength (in Å). Wavelength is the default. 
Flux is given in the unit photons/s

Example: Source_pt(dist=1,focus_xw=0.1,focus_yh=0.1, lamda=0.231, dlambda=0.002)

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
spectrum_file NULL
focus_xw m Width of target 0
focus_yh m Height of target 0
flux 0
dist 1
gamma 0
E0 keV Mean energy of xrays. 0
dE keV Energy half spread of x-rays. 0
lambda0 AA Mean wavelength of x-rays. 0
dlambda AA Wavelength half spread of x-rays (flat or gaussian sigma). 0
phase -1
randomphase 0
gauss 1 Gaussian (1) or Flat (0) energy/wavelength distribution 0

Output parameters

Name Unit Description Default


[ Identification | Description | Input parameters | Output parameters | Links ]

Generated automatically by McDoc, Peter Willendrup <> / Mon Oct 29 11:36:48 2018

Last Modified: Monday, 29-Oct-2018 12:36:48 CET
Search website mailinglist archive SVN repos McCode Trac