21 "MaskWorkspace to be inverted. ");
25 "MaskWorkspace has inverted bits from input MaskWorkspace.");
32 throw std::invalid_argument(
"InputWorkspace is not a MaskWorkspace.");
37 invert->setPropertyValue(
"InputWorkspace1", inWS->getName());
38 invert->setProperty(
"OperationType",
"NOT");
39 invert->setProperty(
"OutputWorkspace",
"tempws");
43 if (!invert->isExecuted()) {
44 g_log.
error() <<
"ChildAlgorithm BinaryOperateMask() cannot be executed. \n";
45 throw std::runtime_error(
"ChildAlgorithm BinaryOperateMask() cannot be executed. ");
50 throw std::runtime_error(
"Output Workspace is not a MaskWorkspace. ");
#define DECLARE_ALGORITHM(classname)
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
virtual std::shared_ptr< Algorithm > createChildAlgorithm(const std::string &name, const double startProgress=-1., const double endProgress=-1., const bool enableLogging=true, const int &version=-1)
Create a Child Algorithm.
A property class for workspaces.
InvertMask : TODO: DESCRIPTION.
void exec() override
Virtual method - must be overridden by concrete algorithm.
IPropertyManager * setProperty(const std::string &name, const T &value)
Templated method to set the value of a PropertyWithValue.
void error(const std::string &msg)
Logs at error level.
std::shared_ptr< const MaskWorkspace > MaskWorkspace_const_sptr
shared pointer to a const MaskWorkspace
std::shared_ptr< MaskWorkspace > MaskWorkspace_sptr
shared pointer to the MaskWorkspace class
@ Input
An input workspace.
@ Output
An output workspace.