31 "Some values in a workspace can normally be "
32 "zeros or may get negative values after "
34 "log(x) is not defined for such values, so "
35 "here is the value, that will be placed as "
36 "the result of log(x<=0) operation\n"
37 "Default value is 0");
39 "Switch to choose between natural or base "
40 "10 logarithm. Default true (natural).");
47 throw std::runtime_error(this->
name() +
" can only be run on a MDHistoWorkspace.");
53 throw std::runtime_error(this->
name() +
" can only be run on a MDHistoWorkspace.");
#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.
LogarithmMD : natural logarithm of a MDHistoWorkspace.
int version() const override
Algorithm's version for identification.
const std::string name() const override
Algorithm's name for identification.
void execHisto(Mantid::DataObjects::MDHistoWorkspace_sptr out) override
Run the algorithm with a MDHistoWorkspace.
void execEvent(Mantid::API::IMDEventWorkspace_sptr out) override
Run the algorithm on a MDEventWorkspace.
void checkInputs() override
Check the inputs and throw if the algorithm cannot be run.
void initExtraProperties() override
Optional method to be subclassed to add properties.
Mantid::DataObjects::MDHistoWorkspace_sptr m_in_histo
Input workspace (MDHisto)
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
std::shared_ptr< MDHistoWorkspace > MDHistoWorkspace_sptr
A shared pointer to a MDHistoWorkspace.