28 return "Retrieves a workspace of monitor data held within the input "
29 "workspace, if present.";
36 "A data workspace that holds a monitor workspace within.");
38 "The workspace containing only monitor data relating to the main data in "
39 "the InputWorkspace.");
41 "Whether to hold onto the monitor workspace within "
42 "the input workspace. The default is not to, but if you are running this "
43 "algorithm in the post-processing "
44 "step of a live data run then you will need this to be false.");
51 auto monitorWS = inputWS->monitorWorkspace();
54 throw std::invalid_argument(
"The input workspace does not hold a monitor workspace");
59 const bool clearPointer =
getProperty(
"ClearFromInputWorkspace");
#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.
A property class for workspaces.
const std::string category() const override
Algorithm's category for identification.
int version() const override
Algorithm's version for identification.
void init() override
Initialize the algorithm's properties.
const std::string name() const override
Algorithm's name for identification.
const std::string summary() const override
Algorithm's summary for use in the GUI and help.
void exec() override
Execute 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
@ Input
An input workspace.
@ Output
An output workspace.