McXtrace is an open source software package for performing Monte Carlo simulations of X-ray scattering experiments.
McXtrace is free software released under the GNU GPL.
McXtrace was first spun off as a sister project to the well known and proven neutron ray-tracing package McStas in a project funded jointly by: McXtrace works in the way that a user describes his/her beamline in a special file.
This file is then analyzed by the system and converted into a c-file which may be compiled on the target computing system where the simulation is to be run.
McXtrace is well suited to describe X-ray synchrotron beam-lines by assembling a series of so-called components: Even-though McXtrace is similar to other pure ray-tracing such as XRT, [["Synchrotron Radiation Workshop|SRW]], OASYS/Shadow for the source and optics, what makes it different resides in its ability to handle sample models: