26 "The workspace with which to associate the defined gauge volume");
28 "The XML that describes the shape of the gauge volume");
36 const std::string shapeXML =
getProperty(
"ShapeXML");
39 if (!shape_sptr->hasValidShape()) {
40 g_log.
error(
"Invalid shape definition provided. Gauge Volume NOT added to "
42 throw std::invalid_argument(
"Invalid shape definition provided.");
54 workspace->mutableRun().addProperty(
"GaugeVolume", shapeXML,
true);
#define DECLARE_ALGORITHM(classname)
IPeaksWorkspace_sptr workspace
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
void progress(double p, const std::string &msg="", double estimatedTime=0.0, int progressPrecision=0)
Sends ProgressNotification.
A property class for workspaces.
This class allows the shape of the sample to be defined by using the allowed XML expressions.
void exec() override
Execution code.
Class originally intended to be used with the DataHandling 'LoadInstrument' algorithm.
std::shared_ptr< CSGObject > createShape(Poco::XML::Element *pElem)
Creates a geometric object from a DOM-element-node pointing to an element whose child nodes contain t...
void error(const std::string &msg)
Logs at error level.
Validator to check that a property is not left empty.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
@ InOut
Both an input & output workspace.