24 "The name (including its full or relative path) of the NeXus file to "
25 "attempt to load. The file extension must either be .nxs or .NXS");
29 "The name of the output workspace in which to load the NeXus monitors.");
39 alg->setRethrows(
true);
43 alg->setPropertyValue(
"OutputWorkspace",
getPropertyValue(
"OutputWorkspace"));
57 auto ws_group = std::dynamic_pointer_cast<WorkspaceGroup>(ws);
59 auto child_count = ws_group->size();
60 for (
decltype(child_count) i = 0; i < child_count; ++i) {
62 std::stringstream ssWsName;
63 ssWsName <<
"_" << i + 1;
64 std::stringstream ssPropName;
65 ssPropName <<
"OutputWorkspace"
69 "Additional output workspace for multi period monitors.");
70 setProperty(ssPropName.str(), ws_group->getItem(i));
#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.
std::string getPropertyValue(const std::string &name) const override
Get the value of a property as a string.
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.
@ Load
allowed here which will be passed to the algorithm
Class to hold a set of workspaces.
A property class for workspaces.
DataHandling/LoadNexusMonitors.h.
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< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
@ Output
An output workspace.