Component Manual for the Neutron Ray-Tracing Package McStas, version 3.9

14.102  The PSD_monitor_Filter McStas Component

Position-sensitive monitor with filter-option, used in Radiography_Sword instrument.

Identification

Description

An (n times m) pixel PSD monitor with filter-option, adapted from PSD_monitor from Kim Lefmann.

Example: PSD_monitor_Filter(xmin=-0.1, xmax=0.1, ymin=-0.1, ymax=0.1, nx=90, ny=90, filename="Output.psd")

Input parameters

Parameters in boldface are required; the others are optional.

Name

Unit

Description

Default

nx

1

Number of pixel columns

90

ny

1

Number of pixel rows

90

filter_pixels

1

Number of filter pixels (in both x and y)

600

filename

str

Filename for storing 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

restore_neutron

1

If set, the monitor does not influence the neutron state

0

nowritefile

1

If set, monitor will skip writing to disk

0

TwoD_filename

str

Filter inputfile

0

apply_xy_filter

1

Flag to apply filter or not.

1

filter_xmin

m

Lower x bound of filter dimensions

-0.8

filter_xmax

m

Upper x bound of filter dimensions

0.8

filter_ymin

m

Lower y bound of filter dimensions

-0.8

filter_ymax

m

Upper y bound of filter dimensions

0.8

pinhole_filter_distance

m

Distance between upstream pinhole and the filter

25

pinhole_detector_distance

m

Distance between upstream pinhole and the detector

25

smoothing

1

Level of smoothing to apply (0-1)*rand_norm()*(pinhole_filter_distance / pinhole_detector_distance)

0.0

zoom

1

Level of detector-zoom

1.0

Links