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 PolLambda_monitor McStas Component

10.12  The PolLambda_monitor McStas Component

Polarisation and wavelength sensitive monitor.

Identification

  • Author: Peter Christiansen

  • Origin: Risoe

  • Date: July 2006

Description

A square single monitor that measures the projection of the polarisation along a given normalized m-vector (mx, my, mz) as a function of wavelength.

Example: Pollambda_monitor(Lmin=1, Lmax=20, nL=20, xwidth=0.1, yheight=0.1, npol=11, mx=0, my=1, mz=0, filename="pollambdaMon.data")

Input parameters

Parameters in boldface are required; the others are optional.

Name

Unit

Description

Default

xwidth

m

Width of detector

0.1

yheight

m

Height of detector

0.1

nL

1

Number of bins in wavelength

20

npol

1

Number of bins in Pol

21

restore_neutron

1

If set, the monitor does not influence the neutron state

0

filename

string

Name of file in which to store the data

0

nowritefile

1

If set, monitor will skip writing to disk

0

mx

1

X-component of monitor vector (can be negative)

0

my

1

Y-component of monitor vector (can be negative)

0

mz

1

Z-component of monitor vector (can be negative)

0

Lmin

Å

Minimum wavelength detected

Lmax

Å

Maximum wavelength detected

Links

  • Component source code found in file PolLambda_monitor.comp.


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