15namespace MDAlgorithms {
24 const std::string
name()
const override {
return "PlusMD"; };
26 const std::string
summary()
const override {
27 return "Sum two MDHistoWorkspaces or merges two MDEventWorkspaces together "
28 "by combining their events together in one workspace.";
32 int version()
const override {
return 1; };
33 const std::vector<std::string>
seeAlso()
const override {
return {
"MinusMD",
"MultiplyMD",
"DivideMD",
"PowerMD"}; }
37 bool commutative()
const override;
40 void checkInputs()
override;
43 void execEvent()
override;
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
Abstract base class for binary operations on IMDWorkspaces, e.g.
Sum two MDWorkspaces together.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Mantid::API::IMDEventWorkspace_sptr iws1
Workspace into which stuff will get added.
const std::string summary() const override
Summary of algorithms purpose.
Mantid::API::IMDEventWorkspace_sptr iws2
Workspace that will be added into ws1.
const std::string name() const override
Algorithm's name for identification.
int version() const override
Algorithm's version for identification.
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
std::shared_ptr< const WorkspaceSingleValue > WorkspaceSingleValue_const_sptr
std::shared_ptr< MDHistoWorkspace > MDHistoWorkspace_sptr
A shared pointer to a MDHistoWorkspace.
std::shared_ptr< const MDHistoWorkspace > MDHistoWorkspace_const_sptr
A shared pointer to a const MDHistoWorkspace.
Helper class which provides the Collimation Length for SANS instruments.