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_Detector_pn

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

The Test_Detector_pn Instrument

Unit test for Detector_pn

Identification

  • Site: Tests
  • Author: Erik B Knudsen
  • Origin: DTU Physics
  • Date: Apr 20

Description

A simple unit test instrument for the Detector_pn component. It consists merely of
two sets of monitor each with:
1 regular PSD_monitor and 2 instances of Detector_pn with a scinitillator screen of
Si and Pb respectively. Obviously, no sane person would use Pb, but it's there for
illustration purposes.
A restore_flag parameter may be passed to Detector_pn which negates the absorption
effect for subsequent components.

Examples

(Test cases in bold)
  • Test: Test_Detector_pn restore_flag=1 Detector: detap2_I=1.02182e-06

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
restore_flag Should the monitor/detector instances restore the x-ray to its pre-detector state0
E0keVThe central simulation energy to use. A 1% BW will be added.12.4
DEkeVHalf energy width of the simulation energy.0.124

Links


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

Generated for mcxtrace 3.10.2


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