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 Instrument at Tools

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

The Histogrammer Instrument

Takes eventfile input (Virtual_input/Vitess/MCNP/Tripoli4 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
  • Version:(Unknown)


Takes any possible  McStas eventfile inputs (Virtual_input/Vitess/MCNP/Tripoli4 formats) and applies
Monitor_nD to generate user-selectable neutron histograms.

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" type="text"
  - Reads a Virtual_output generated event file and applies a spherical PSD

Input parameters

Parameters in boldface are required; the others are optional.
Name Unit Description Default
filename string Specifies input event file 0
MODE int Input file mode/format - 0 for help on usage 1=McStas,2=Vitess,3=MCNP,4=Tripoli4 0
options string Specifies the histogramming rules used by Monitor_nD. It MUST contain the 'previous' word - see mcdoc page "sphere theta phi outgoing previous"
type string Virtual_input event files, 'type' parameter(text/float/double) - see mcdoc page "text"
bufsize int Vitess_input 'buffersize' parameter - see mcdoc page 10000
xwidth m Horizontal width of detector, or diameter for banana,cylinder and shpere geometry 0.1
yheight m Vertical height of detector, for plate, cylinder, banana shape 0.1


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

Generated automatically by McDoc, Peter Willendrup <> / Fri Sep 23 18:47:27 2022

Last Modified: Friday, 23-Sep-2022 20:47:27 CEST
Search website mailinglist archive GitHub repos