Sep 19 – 22, 2022
Paul Scherer Institute, Villigen, Switzerland
Europe/Zurich timezone

McXtrace: simulating X-ray beamlines and experiments, with samples

Sep 20, 2022, 6:32 PM
WHGA/Auditorium and online (Paul Scherer Institute, Villigen, Switzerland)

WHGA/Auditorium and online

Paul Scherer Institute, Villigen, Switzerland

Paul Scherrer Institute Forschungsstrasse 111 CH-5232-Villigen-PSI
Poster NOBUGS 2022


Dr Antoine PADOVANI (Synchrotron SOLEIL)


McXtrace is a general Monte Carlo ray-tracing software for simulation X-ray beamlines and experiments. It benefits from the acquired experience gained from the McStas neutron code.

Compared to other X-ray modelling software (SRW, Shadow, XRT), McXtrace has been built in a modular way, allowing anybody to contribute with minimal involvement. Also, sample models are included (SAXS, MX, XRD, XAS, Tomography, and soon to come IXS). McXtrace can handle beam coherence, and runs on clusters and GPU’s.

We have modelled a set of source-to-detector beam-lines at Synchrotron SOLEIL

  • ANATOMIX (tomography )
  • DISCO (imaging, UV)
  • MARS (powder diffraction, XRD)
  • PX2a (protein crystallography, MX)
  • ROCK (absorption spectroscopy, XAS)
  • SWING (small angle, SAXS)

We shall present the work done in our group, with these BL, as well as contributed components for the package.

McXtrace: SAXS model
McXtrace: SAXS image

Email address of presenting author

Primary author

Emmanuel FARHI (Synchrotron SOLEIL)


Dr Antoine PADOVANI (Synchrotron SOLEIL) Dr Stéphane BAC (Synchrotron SOLEIL)

Presentation materials

There are no materials yet.