17using namespace Kernel;
25 return "Clears all the parameters associated with a workspace's instrument.";
39 "Workspace whose instrument parameters are to be cleared.");
51 const auto instrument = ws->getInstrument();
52 ws->setInstrument(instrument->baseInstrument());
#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 name() const override
Algorithm's name for identification.
const std::string summary() const override
Summary of the algorithm's purpose.
void init() override
Initialize the algorithm's properties.
const std::string category() const override
Algorithm's category for identification.
void exec() override
Execute the algorithm.
int version() const override
Algorithm's version for identification.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
@ InOut
Both an input & output workspace.