Raytracing code for x-ray spectrometers with (not only) mossaic crystals Helps with design and analysis of x-ray spectrometers. Useful tool for (rather) experienced physicist.
Mmpxrt is a Monte-Carlo based raytracing code dedicated to study and design x-ray crystal optics, with a special focus on mosaic crystal spectrometers. Its main advantage over other currently available ray tracing codes is that it includes detailed and benchmarked algorithm to treat mosaic crystals, especially HOPG and HAPG (Highly Oriented / Annealed Pyrolitic Graphite). The code is dedicated primarily to study crystal spectrometers, therefore their implementation is very
straightforward, and the code has mostly automatic evaluation of their performance. It can, however,be used universally to study other crystal instruments, like monochromators, mirrors, and analyzers. The code is publicly available, written in Python3 and is distributed as a Python library with test cases included.