Position-sensitive monitor.
Author: Erik B Knudsen
Origin: Risoe
Date: June 22, 2009
Based on neutron component written by Kim Lefmann An (nx times ny) pixel PSD monitor. This component may also be used as a beam detector. If instead of xwidth, yheight a radius is given, the component has a circular footprint and integrates circularly (caking).
Example: PSD_monitor(xwidth=0.1, yheight=0.1, nx=90, ny=90, filename=”Output.psd”)
Parameters in boldface are required; the others are optional.
|
Name |
Unit |
Description |
Default |
|
|
|||
|
filename |
str |
Name of file in which to store the detector image. |
0 |
|
xwidth |
m |
Width of detector. |
0.05 |
|
yheight |
m |
Height of detector. |
0.05 |
|
radius |
m |
Radius of circular detetor. |
0 |
|
restore_xray |
1 |
If set, the monitor does not influence the xray state. |
1 |
|
nowritefile |
1 |
If set, monitor will skip writing to disk |
0 |
|
nx |
1 |
Number of pixel columns. |
90 |
|
ny |
1 |
Number of pixel rows. |
90 |
|
nr |
1 |
Number of radial pixels. |
0 |
|
|
|||
|
|
|||
|
|
|||
Component source code found in file PSD_monitor.comp.
The component PSD_monitor resembles other monitors, e.g. Monitor, and also propagates the photon ray to the detector surface in the \((x,y)\)-plane, where the detector window is set by the \(x\) and \(y\) input coordinates. The PSD monitor is sensitive to the arrival position of the of the photon ray. The rectangular monitor window, given by the \(x\) and \(y\) limits is divided into \(n_x \times n_y\) pixels.
The output from PSD_monitor is the integrated counts, \(n, I, M_2\), as well as three two-dimensional arrays of counts: \(n(x,y), I(x,y), M_2(x,y)\). The arrays are written to a file, filename, and can be read e.g. by the tool mxplot, see the system manual.