10#include "MantidAlgorithms/DllConfig.h"
36 const std::string
category()
const override {
return "Arithmetic"; }
38 const std::string
summary()
const override {
39 return "Supports the implementation of a Unary operation on an input "
47 virtual void execEvent();
48 template <
class T>
void unaryOperationEventHelper(std::vector<T> &wevector);
50 virtual const std::string
inputPropName()
const {
return "InputWorkspace"; }
52 virtual const std::string
outputPropName()
const {
return "OutputWorkspace"; }
76 bool useHistogram{
false};
Base class for algorithms that treat all spectra independently, i.e., we can trivially parallelize ov...
UnaryOperation supports the implementation of a Unary operation on an input workspace.
virtual void defineProperties()
A virtual function in which additional properties of an algorithm should be declared.
virtual const std::string outputPropName() const
The name of the output workspace property.
const std::string summary() const override
Summary of algorithms purpose.
virtual void performUnaryOperation(const double XIn, const double YIn, const double EIn, double &YOut, double &EOut)=0
Carries out the Unary operation on the current 'cell'.
virtual const std::string inputPropName() const
The name of the input workspace property.
const std::string category() const override
Algorithm's category for identification.
virtual void retrieveProperties()
A virtual function in which additional properties should be retrieved into member variables.
Helper class which provides the Collimation Length for SANS instruments.