23 auto wsValidator = std::make_shared<Kernel::CompositeValidator>();
27 "The name of the workspace to convert.");
37 std::map<std::string, std::string> errors;
41 errors[
"Workspace"] =
"Event workspaces cannot be directly converted to "
#define DECLARE_ALGORITHM(classname)
IPeaksWorkspace_sptr workspace
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.
A validator which checks that a workspace contains histogram data (the default) or point data as requ...
A validator which checks that a workspace contains raw counts in its bins.
A property class for workspaces.
void exec() override
Execution code.
std::map< std::string, std::string > validateInputs() override
Validate inputs.
void init() override
Initialisation code.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
static void makeDistribution(const MatrixWorkspace_sptr &workspace, const bool forwards=true)
Divides the data in a workspace by the bin width to make it a distribution.
@ InOut
Both an input & output workspace.