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

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)



McStas: Histogrammer

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

The Histogrammer Instrument

Takes MCPL eventfile input and applies Monitor_nD to generate histograms. Histograms can be chosen freely using the options string, see mcdoc Monitor_nD.comp

Identification

  • Site: Tools
  • Author: Peter Willendrup (peter.willendrup@risoe.dk)
  • Origin: Risoe
  • Date: 2007-03-19

Description

Takes MCPL eventfile input and applies
Monitor_nD to generate user-selectable neutron histograms.

The 'options' parameter allows to customize the type of histogram to generate.
We suggest:
"sphere theta phi outgoing previous" (this is the default)
"previous, multiple, auto, x, y, z, vx, vy, vz, hdiv, vdiv, tof, lambda"
"previous, auto, x, y"
"previous, auto, tof, lambda"

Example: mcrun Histogrammer.instr filename="events.mcpl.gz" options="sphere theta phi outgoing previous"
- Reads an MCPL event file and applies a spherical PSD

Examples

(Test cases in bold)

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
filenamestringInput MCPL event file0
optionsstringSpecifies the histogramming rules used by Monitor_nD. It MUST contain the 'previous' word - see mcdoc Monitor_nD"sphere theta phi outgoing previous"
xwidthmHorizontal width of detector, or diameter for banana,cylinder and sphere geometry0.1
yheightmVertical height of detector, for plate, cylinder, banana shape0.1

Links


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

Generated for mcstas 3.10.5


Last Modified: Wed Dec 2 00:25:28 2026
Search website mailinglist archive GitHub repos