\(\renewcommand\AA{\unicode{x212B}}\)
Table of Contents
Sum two MDHistoWorkspaces or merges two MDEventWorkspaces together by combining their events together in one workspace.
Name | Direction | Type | Default | Description |
---|---|---|---|---|
LHSWorkspace | Input | IMDWorkspace | Mandatory | An MDEventWorkspace, MDHistoWorkspace or WorkspaceSingleValue as the left-hand side of the operation. |
RHSWorkspace | Input | IMDWorkspace | Mandatory | An MDEventWorkspace, MDHistoWorkspace or WorkspaceSingleValue as the right-hand side of the operation. |
OutputWorkspace | Output | IMDWorkspace | Mandatory | Name of the output MDEventWorkspace or MDHistoWorkspace. |
This algorithm sums two MDHistoWorkspaces or merges two MDEventWorkspaces together.
This algorithm operates similarly to calling Plus on two EventWorkspaces: it combines the events from the two workspaces together to form one large workspace.
The algorithm uses CloneMDWorkspace v1 to create the output workspace, except when adding in place (e.g. \(A = A + B\) ). See CloneMDWorkspace v1 for details, but note that a file-backed MDEventWorkspace will have its file copied.
Also, be aware that events added to a MDEventWorkspace are currently added in memory and are not cached to file until SaveMD v2 or another algorithm requiring it is called. The workspace is marked as ‘requiring file update’.
Categories: AlgorithmIndex | MDAlgorithms\MDArithmetic