McXtrace logo

McXtrace - An X-ray ray-trace simulation package

ESRF; SAXSLAB Niels Bohr Institute DTU Physics


 Linux Installation (deb/rpm)
 Mac OSX Installation
 Unix Install (src code)
 Windows Installation

Project Status
 Project Partners
 Project People

Mailing list



Minutes of Meetings

McXtrace Art

About McXtrace



McXtrace: E_monitor Component

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

The E_monitor Component

Based on neutron component written by Kristian Nielsen and Kim Lefmann Energy-sensitive monitor.


  • Author: Erik Knudsen
  • Origin: Risoe
  • Date: June 22, 2009
  • Version: $Revision$


A square single monitor that measures the energy of the incoming x-rays.

Example: E_monitor(xmin=-0.1, xmax=0.1, ymin=-0.1, ymax=0.1,
                Emin=1, Emax=50, nE=20, filename="Output.nrj")

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
nE 1 Number of energy channels 20
filename 1 Name of file in which to store the detector image 0
xmin m Lower x bound of detector opening -0.05
xmax m Upper x bound of detector opening 0.05
ymin m Lower y bound of detector opening -0.05
ymax m Upper y bound of detector opening 0.05
xwidth m Width of detector. Overrides xmin,xmax. 0
yheight m Height of detector. Overrides ymin,ymax. 0
Emin keV Minimum energy to detect  
Emax keV Maximum energy to detect  
restore_xray 1 If set, the monitor does not influence the xray state 0
nowritefile 1 If set, monitor will skip writing to disk 0

Output parameters

Name Unit Description Default
E_N - Array of x.ray counts  
E_p - Array of x-ray weight counts  
E_p2 - Array of second moments  


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

Generated automatically by McDoc, Peter Willendrup <> / Tue Apr 28 09:59:35 2020

Last Modified: Tuesday, 28-Apr-2020 11:59:35 CEST
Search website mailinglist archive SVN repos McCode Trac