McXtrace logo

McXtrace - An X-ray ray-trace simulation package

Synchrotron SOLEIL DTU Physics


About McXtrace
 Project Partners
 Project People


 Wiki (GitHub)

Mailing list



Code-repository (GitHub)

Report bugs (GitHub)

McStas: Focal_pt_monitor

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

The Focal_pt_monitor Instrument

Template for creating a focal point monitor.


  • Site: Templates
  • Author: Erik B Knudsen (
  • Origin: DTU Physics
  • Date: Aug. 21


A template instrument shows how to create a focal point monitor with an
instance of Monitor_nD and an EXTEND block on a preceeding Arm.
The instrument uses a point source and a thin lens to create a focus.

The working principle behind, is to bin the weight carried by each ray by the
z-coordinate (of a cartesian system defined by an Arm preceeding the Monitor_nD
instance) where the ray's trajectory passes closest to the Z-axis.

Note, the origin of the monitored z-coordinate is defined by the Arm on which
the EXTEND-block is attached (In this case fpt0). If the subsequent monitor
is placed elsewhere an implicit offset will be the result.

Input parameters

Parameters in boldface are required; the others are optional.
RcurvemRadius of curvature of the lens at the apex.100e-6


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

Generated on 2022-02-07 20:46:44

Last Modified: Wednesday, 11-May-2022 22:46:12 CEST
Search website mailinglist archive GitHub repos