McXtrace logo

McXtrace - An X-ray ray-trace simulation package

Synchrotron SOLEIL DTU Physics

McXtrace

About McXtrace
 Publications
 Project Partners
 Project People
 Goal

Download
 Components

Mailing list

Search

Documentation
 Manual
 Commands
 Wiki (GitHub)
 Tutorial

Links

Report bugs (GitHub)

Code-repository (GitHub)


McXtrace: Test_FluoPowder

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

The Test_FluoPowder Instrument

Unit-test instrument for the FluoPowder sample component.

Identification

  • Site: Tests_samples
  • Author: Emmanuel Farhi (emmanuel.farhi.synchrotron-soleil.fr)
  • Origin: Synchrotron Soleil
  • Date: 2025

Description

Simply a model source illuminating a fluo/powder/sx sample.
The default sample itself is an LaB6-powder.
The idea is to compare the fluorescence and diffraction patterns:
- index=1: use PowderN              (no fluorescence)
- index=2: use Single_crystal       (no fluorescence, slower, powder mode)
- index=3: use FluoPowder           (exact)
- index=4: use Fluorescence         (no diffraction)
- index=5: use Fluorescence+PowderN (exact)

Examples

(Test cases in bold)
  • Test: Test_FluoPowder.instr E0=15 index=1 Detector: Sph_mon_pow_I=1.77806e-19
  • Example: Test_FluoPowder.instr E0=15 index=2 Detector: Sph_mon_pow_I=1.99226e-19
  • (Unittest disabled for Single_crystal SX, fails consistently on Windows, possibly cif2hkl UB)
  • Test: Test_FluoPowder.instr E0=15 index=3 Detector: Sph_mon_pow_I=1.77226e-19
  • Test: Test_FluoPowder.instr E0=15 index=4 Detector: Sph_mon_flu_I=6.18074e-19
  • Example: Test_FluoPowder.instr E0=15 index=5 Detector: Sph_mon_pow_I=1.77403e-19
  • (Fluorescence+PowderN GROUP is unstable on GPU, disable index=5 test for now)

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
E0keVSource mean energy of xrays.15
dEkeVSource energy half spread of x-rays.0.05
L1mSource-sample distance.10
materialstrMaterial structure/composition as formula or LAU/CIF format."LaB6.cif"
index1Index of the sample component to use. 1=PowderN, 2=Single_crystal (much slower), 3=FluoPowder, 4=Fluorescence, 5=Fluorescence+PowderN in a GROUP (slower)3
delta_d_d1Lattice spacing variance, gaussian RMS3e-4

Links


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

Generated for mcxtrace 3.10.2


Last Modified: Monday, 02-Nov-2026 22:21:09 CET
Search website mailinglist archive GitHub repos