18using namespace Kernel;
24 "Name of the output workspace");
27 "An X value that is within the first "
28 "(lowest X value) bin that will be "
30 "(default: workspace min)");
32 "An X value that is in the highest X "
33 "value bin to be retained (default: max "
35 auto mustBePositive = std::make_shared<BoundedValidator<int>>();
36 mustBePositive->setLower(0);
38 "The index number of the first entry in the Workspace that "
40 "(default: first entry in the Workspace)");
45 "The index number of the last entry in the Workspace to be loaded\n"
46 "(default: last entry in the Workspace)");
56 extract->initialize();
57 extract->setRethrows(
true);
60 extract->setProperty(
"InputWorkspace", inputWorkspace);
63 extract->setProperty(
"OutputWorkspace", outputWorkspace);
66 extract->setProperty(
"XMin", xmin);
69 extract->setProperty(
"XMax", xmax);
72 extract->setProperty(
"StartWorkspaceIndex", start);
75 extract->setProperty(
"EndWorkspaceIndex", end);
79 outputWorkspace = extract->getProperty(
"OutputWorkspace");
#define DECLARE_ALGORITHM(classname)
void declareProperty(std::unique_ptr< Kernel::Property > p, const std::string &doc="") override
Add a property to the list of managed properties.
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.
void init() override
Initialisation code.
void exec() override
Execution code.
IPropertyManager * setProperty(const std::string &name, const T &value)
Templated method to set the value of a PropertyWithValue.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
constexpr int EMPTY_INT() noexcept
Returns what we consider an "empty" integer within a property.
constexpr double EMPTY_DBL() noexcept
Returns what we consider an "empty" double within a property.
@ Input
An input workspace.
@ Output
An output workspace.