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)


McStas: TOF_PSDmonitor_toQ

[ Identification | Description | Input parameters | Links ]

The TOF_PSDmonitor_toQ Component

Position-sensitive, linear Q monitor.

Identification

  • Site:
  • Author: Robert Dalgliesh
  • Origin: ISIS
  • Date: September 2021

Description

One-dimensional Q-monitor. Calculates Q from "measured" time-of-flight,
i.e. not from particle velocity parameters.

Adapted from Kim Lefmann's TOF_cylPSDmonitor and PSD_monitors
An n pixel Q-monitor based on measured Time of Flight detection.
This component may also be used as a beam
detector.

Example: TOF_PSDmonitor_toQ(xmin=-0.1, xmax=0.1, ymin=-0.1, ymax=0.1,
ny=90, nqbin=100, TOFmin=0.0, TOFmax=20000.0, filename="Output.psd")

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
ny1Number of y bins (for discretisation of vertical detector dimension into "bins")90
nqbin1number of q bins500
xwidthmwidth of detector opening0.1
xminmLower x bound of detector opening0
xmaxmUpper x bound of detector opening0
yheightmheight of detector opening0.1
yminmLower y bound of detector opening0
ymaxmUpper y bound of detector opening0
tminmu-sBeginning TOF window0.0
tmaxmu-sEnd TO window100000.0
qminAA^-1Start of q window0.005
qmaxAA^-1End of q window0.5
L1mdistance from source to sample (m)23.0
L2mdistance from sample to detector (m)3.0
detThetadegNominal detector theta0.91
filenamestrName of file in which to store the detector image0
nowritefile1If set, detector will skip writing to disk0
AT ( , , ) RELATIVE
ROTATED ( , , ) RELATIVE

Links


[ Identification | Description | Input parameters | Links ]

Generated on mcstas 3.6.1


Last Modified: Friday, 12-Dec-2025 12:58:06 CET
Search website mailinglist archive GitHub repos