McXtrace logo

McXtrace - An X-ray ray-trace simulation package

ESRF; SAXSLAB Niels Bohr Institute DTU Physics



Project Status
 Project Partners
 Project People

Mailing list



Minutes of Meetings

McXtrace Art

About McXtrace



McXtrace: Detector_pn Component

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

The Detector_pn Component

Block of a attenuating material


  • Author: Maria Thomsen (
  • Origin: NBI, KU
  • Date: Jan 24, 2011
  • Version: 1.0


A scintillator detector model taking photoabsorption efficiency into account. As such it consitututes a
more physical version of the PSD_monitor. Only direct absorption is taken into account.

WARNING: This is a contributed Component.

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
material_datafile Be.txt file where the material parameters for the scintillator may be found. Format is similar to what may be found off the NISP website. "Be.txt"
nx 1 Number of pixel columns 90
ny 1 Number of pixel rows 90
filename text Name of file in which to store the detector image 0
restore_xray 1 If set, the monitor does not influence the xray state 0
xwidth m Width of block.  
yheight m Height of block.  
zdepth m Thickness of block.  

Output parameters

Name Unit Description Default
PSD_N - Array of xray counts  
PSD_p - Array of xray weight counts  
PSD_p2 - Array of second moments  


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

Generated automatically by McDoc, Peter Willendrup <> / Mon Aug 16 15:54:47 2021

Last Modified: Monday, 16-Aug-2021 17:54:47 CEST
Search website mailinglist archive SVN repos McCode Trac