Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
RunInfoFilename | Input | string | Mandatory | The filename of the runinfo file for a particular run. Allowed Values are: _runinfo.xml. Allowed extensions: [‘_runinfo.xml’] |
OutputWorkspace | Output | MatrixWorkspace | Mandatory | The workspace to load the monitors into. |
This algorithm reads in the filenames of the monitors from the runinfo file. It will only work with histogram monitors and assumes that all monitors are on the same time axis. It also assumes that the beam monitor files are in the same directory as the runinfo file.
Example - Loading PreNexus Monitors
# CNCS_7860_runinfo.xml references 3 beam monitor files.
monitor_ws = LoadPreNexusMonitors("CNCS_7860_runinfo.xml")
print("The resulting workspace contains {} spectra -- one for each monitor.".format(monitor_ws.getNumberHistograms()))
Output:
The resulting workspace contains 3 spectra -- one for each monitor.
Categories: Algorithms | DataHandling\PreNexus
C++ source: LoadPreNexusMonitors.cpp (last modified: 2017-01-30)
C++ header: LoadPreNexusMonitors.h (last modified: 2016-06-07)