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


About McStas
 Conditions of use
 Project funding

 Other Downloads (share)

Mailing list

Search web/mailinglist

 Wiki (GitHub)
 McStas manual


Report bugs (GitHub)

Code-repository (GitHub)

McStas: NPI_tof_theta_monitor Component

[ Identification | Description | Input parameters | Output parameters | Links ]

The NPI_tof_theta_monitor Component

Cylindrical (2pi) PSD Time-of-flight monitor.


  • Author: Kim Lefmann
  • Origin: Risoe
  • Date: October 2000
  • Version: 1.1
  • Modification history:
    • Kim Lefmann, October 9, 2001
    • J Navrátil (NPI Řež), December 10, 2015


Derived from TOF_cylPSD_monitor.
Code is extended by the option allowing to define range of scattering angles, therefore creating only a part of the cylinder surface.
The plot is transposed when compared to TOF_cylPSD_monitor: scattering angles are on the horizontal axis.

Example:	TOF_cylPSD_monitor_NPI(nt = 1024, nphi = 960, filename = "Output.dat",
			radius = 2, yheight = 1.0, tmin = 3e4, tmax = 12e4, amin = 75, amax = 105, restore_neutron = 1)

WARNING: This is a contributed Component.

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
nt 1 Number of time bins 128
na 90
filename text Name of file in which to store the detector image 0
radius m Cylinder radius 1
yheight m Cylinder height 0.3
tmin mu-s Beginning of time window  
tmax mu-s End of time window  
amin deg minimum of scattering angle to be detected  
amax deg maximum of scattering angle to be detected  
restore_neutron 1 If set, the monitor does not influence the neutron state 1
verbose 0

Output parameters

Name Unit Description Default
TOF_N - Array of neutron counts  
TOF_p - Array of neutron weight counts  
TOF_p2 - Array of second moments  


[ Identification | Description | Input parameters | Output parameters | Links ]

Generated automatically by McDoc, Peter Willendrup <> / Wed Jan 12 15:13:31 2022

Last Modified: Wednesday, 12-Jan-2022 16:13:31 CET
Search website mailinglist archive GitHub repos