35 const std::string
name()
const override {
return "Plus"; }
37 const std::string
summary()
const override {
38 return "The Plus algorithm will add the data values and calculate the "
39 "corresponding error values in two compatible workspaces. ";
43 int version()
const override {
return 1; }
44 const std::vector<std::string>
seeAlso()
const override {
return {
"Divide",
"Minus",
"Multiply"}; }
48 void performBinaryOperation(
const HistogramData::Histogram &lhs,
const HistogramData::Histogram &
rhs,
49 HistogramData::HistogramY &YOut, HistogramData::HistogramE &EOut)
override;
50 void performBinaryOperation(
const HistogramData::Histogram &lhs,
const double rhsY,
const double rhsE,
51 HistogramData::HistogramY &YOut, HistogramData::HistogramE &EOut)
override;
53 void performEventBinaryOperation(
DataObjects::EventList &lhs,
const MantidVec &rhsX,
const MantidVec &rhsY,
54 const MantidVec &rhsE)
override;
55 void performEventBinaryOperation(
DataObjects::EventList &lhs,
const double &rhsY,
const double &rhsE)
override;
57 void checkRequirements()
override;
const std::vector< double > & rhs
This class stores information regarding an experimental run as a series of log entries.
CommutativeBinaryOperation supports commutative binary operations on two input workspaces.
Plus performs the addition of two input workspaces.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
Helper class which provides the Collimation Length for SANS instruments.