Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
InputWorkspace | Input | MatrixWorkspace | Mandatory | A data workspace that holds a monitor workspace within. |
MonitorWorkspace | Output | MatrixWorkspace | Mandatory | The workspace containing only monitor data relating to the main data in the InputWorkspace. |
ClearFromInputWorkspace | Input | boolean | True | Whether to hold onto the monitor workspace within the input workspace. The default is not to, but if you are running this algorithm in the post-processing step of a live data run then you will need this to be false. |
This algorithm looks for an internally-stored monitor workspace on the input workspace and sets it as the output workspace if found. The input workspace will no longer hold a reference to the monitor workspace after this algorithm has been run on it. If no monitor workspace is present the algorithm will fail.
This does not extract monitor data that is stored with the detector data in the workspace.
Example: Extracting an internally stored monitor workspace
#If no monitor workspace is present the algorithm will fail.
wsMonitor = ExtractMonitorWorkspace(ws)
Categories: Algorithms | Utility\Workspaces