Mantid
Loading...
Searching...
No Matches
PowerMD.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
11
12namespace Mantid {
13namespace MDAlgorithms {
14
19class MANTID_MDALGORITHMS_DLL PowerMD : public UnaryOperationMD {
20public:
21 const std::string name() const override;
23 const std::string summary() const override { return "Raise a MDHistoWorkspace to a power"; }
24
25 int version() const override;
26 const std::vector<std::string> seeAlso() const override {
27 return {"MinusMD", "MultiplyMD", "DivideMD", "PlusMD", "LogarithmMD", "ExponentialMD"};
28 }
29
30private:
31 void initExtraProperties() override;
32
34 void checkInputs() override;
35
37 void execEvent(Mantid::API::IMDEventWorkspace_sptr out) override;
38
40 void execHisto(Mantid::DataObjects::MDHistoWorkspace_sptr out) override;
41};
42
43} // namespace MDAlgorithms
44} // namespace Mantid
PowerMD : raise a MDHistoWorkspace to a power.
Definition: PowerMD.h:19
const std::string summary() const override
Summary of algorithms purpose.
Definition: PowerMD.h:23
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Definition: PowerMD.h:26
Abstract base class for unary operations (e.g.
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
std::shared_ptr< MDHistoWorkspace > MDHistoWorkspace_sptr
A shared pointer to a MDHistoWorkspace.
Helper class which provides the Collimation Length for SANS instruments.