40 "An input MDEventWorkspace or MDHistoWorkspace.");
48 std::string convention = ws->getConvention();
53 transform_alg->setProperty(
"InputWorkspace", std::dynamic_pointer_cast<IMDWorkspace>(ws));
54 transform_alg->setProperty(
"Scaling",
"-1.0");
55 transform_alg->executeAsChildAlg();
56 ws = transform_alg->getProperty(
"OutputWorkspace");
57 ws->setConvention(convention);
58 ws->changeQConvention();
#define DECLARE_ALGORITHM(classname)
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
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.
A property class for workspaces.
IPropertyManager * setProperty(const std::string &name, const T &value)
Templated method to set the value of a PropertyWithValue.
void information(const std::string &msg)
Logs at information level.
Save a MDEventWorkspace to a .nxs file.
void exec() override
Run the algorithm.
std::shared_ptr< IMDWorkspace > IMDWorkspace_sptr
Shared pointer to the IMDWorkspace base class.
std::shared_ptr< Algorithm > Algorithm_sptr
Typedef for a shared pointer to an Algorithm.
@ InOut
Both an input & output workspace.