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: Histogrammer

[ Identification | Description | Input parameters | Links ]

The Histogrammer Instrument

Takes eventfile input (Virtual_input/Vitess/MCNP/Tripoli4/MCPL formats) and applies Monitor_nD to generate histograms. Histograms can be chosen freely using the options string, see mcdoc Monitor_nD.comp


  • Site: Tools
  • Author: Peter Willendrup (
  • Origin: Risoe
  • Date: 2007-03-19


Takes any possible  McStas eventfile inputs (Virtual_input/Vitess/MCNP/Tripoli4 formats) 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 MODE=0
- Gives information on the input parameters

Example: mcrun Histogrammer.instr filename="events.dat" MODE=1 options="sphere theta phi outgoing previous"
- Reads a Virtual_output generated event file and applies a spherical PSD

Input parameters

Parameters in boldface are required; the others are optional.
filenamestringSpecifies input event file0
MODEintInput file mode/format - 0 for help on usage 1=McStas,2=Vitess,3=MCNP,4=Tripoli4,5=MCPL0
optionsstringSpecifies the histogramming rules used by Monitor_nD."sphere theta phi outgoing previous"
bufsizeintVitess_input 'buffersize' parameter - see mcdoc Vitess_input10000
xwidthmHorizontal width of detector, or diameter for banana,cylinder and shpere geometry0.1
yheightmVertical height of detector, for plate, cylinder, banana shape0.1


[ Identification | Description | Input parameters | Links ]

Generated on 2023-09-19 20:01:36

Last Modified: Wednesday, 03-Jan-2024 19:59:10 CET
Search website mailinglist archive GitHub repos