Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
Filename | Input | string | Mandatory | The name of the Nexus file to load. Allowed extensions: [‘.h5’, ‘.nxs’] |
OutputWorkspace | Output | Workspace | Mandatory | An output workspace. |
ErrorBarsSetTo1 | Input | boolean | False | When this property is set to false errors are set equal to data values, and when set to true all errors are set equal to one. This property defaults to false |
Reads a McStas Nexus file into a Mantid WorkspaceGroup with a user-supplied name. Data generated by McStas monitor components are stored in workspaces of type Workspace2D or Event.
For further information about Mcstas and Mantid see here.
LoadMcStas replaces LoadMcStasEventNexus. LoadMcStas can be used for reading McStas 2.1 histogram and event data. LoadMcStasNexus can be used for reading McStas 2.0 histogram data.
McStas 2.1 event data and the corresponding IDF for Mantid are generated as follows using these commands from an xterm:
The templateSANS_Mantid.instr file used in the above example can be found in McStas neutron suite.
For McStas to auto generate an IDF the McStas instrument file must obey:
The McStas component monitor_nD must be called with the argument: options =”mantid square x limits=[-0.2 0.2] bins=128 y limits=[-0.2 0.2] bins=128, neutron pixel t, list all neutrons”. Number of bins and limits can be chosen freely.
The new features added to McStas has been tested on the following platforms:
For more information about McStas and its general usage for simulating neutron scattering instruments and experiments visit the McStas homepage http://www.mcstas.org.
Categories: Algorithms | DataHandling\Nexus