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 maxAlgo->setProperty(
"InputWorkspace", inworkspace);
58 maxAlgo->setProperty(
"RangeLower", m_MinRange);
59 maxAlgo->setProperty(
"RangeUpper", m_MaxRange);
60 maxAlgo->setProperty(
"StartWorkspaceIndex", m_MinSpec);
61 maxAlgo->setProperty(
"EndWorkspaceIndex", m_MaxSpec);
62 maxAlgo->setProperty(
"ShowMin",
false);
#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 exec() override
Executes the algorithm.
void init() override
Initialisation method.
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.