McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; ESS Niels Bohr Institute DTU Physics

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding

Download
 Components
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)


The PSD_monitor_4PI_spin McStas Component

10.14  The PSD_monitor_4PI_spin McStas Component

Spherical position-sensitive detector with spin weighting

Identification

  • Author: Erik B Knudsen

  • Origin: DTU

  • Date: April 17, 2010

Description

An (n times m) pixel spherical PSD monitor using a cylindrical projection. Mostly for test and debugging purposes.

Example: PSD_monitor_4PI(radius=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

radius

m

Radius of detector

filename

str

Name of file in which to store the detector image

0

restore_neutron

1

If set, the monitor does not influence the neutron state x

0

mx

1

x-component of spin reference-vector

0

my

1

y-component of spin reference-vector

1

mz

1

z-component of spin reference-vector

0

Links

  • Component source code found in file PSD_monitor_4PI_spin.comp.


Last Modified: Tuesday, 06-Oct-2026 21:19:10 CEST
Search website mailinglist archive GitHub repos