19using namespace Kernel;
27 std::make_shared<HistogramValidator>()),
28 "The name of the Workspace2D to take as input");
30 "The name of the workspace in which to store the result");
34 auto mustBePositive = std::make_shared<BoundedValidator<int>>();
35 mustBePositive->setLower(0);
36 declareProperty(
"StartWorkspaceIndex", 0, mustBePositive,
"Start spectrum number (default 0)");
57 minAlgo->setProperty(
"InputWorkspace", inworkspace);
58 minAlgo->setProperty(
"RangeLower", m_MinRange);
59 minAlgo->setProperty(
"RangeUpper", m_MaxRange);
60 minAlgo->setProperty(
"StartWorkspaceIndex", m_MinSpec);
61 minAlgo->setProperty(
"EndWorkspaceIndex", m_MaxSpec);
62 minAlgo->setProperty(
"ShowMin",
true);
#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 method.
void exec() override
Executes the algorithm.
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.