Mantid
Loading...
Searching...
No Matches
MultiplyMD.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
12
13namespace Mantid {
14namespace MDAlgorithms {
15
20class MANTID_MDALGORITHMS_DLL MultiplyMD : public BinaryOperationMD {
21public:
22 const std::string name() const override;
24 const std::string summary() const override { return "Multiply a MDHistoWorkspace by another one or a scalar."; }
25
26 int version() const override;
27 const std::vector<std::string> seeAlso() const override { return {"MinusMD", "PlusMD", "DivideMD", "PowerMD"}; }
28
29private:
31 bool commutative() const override;
32
34 void checkInputs() override;
35
37 void execEvent() override;
38
40 void execHistoHisto(Mantid::DataObjects::MDHistoWorkspace_sptr out,
42
44 void execHistoScalar(Mantid::DataObjects::MDHistoWorkspace_sptr out,
46
47 template <typename MDE, size_t nd>
48 void execEventScalar(typename Mantid::DataObjects::MDEventWorkspace<MDE, nd>::sptr ws);
49};
50
51} // namespace MDAlgorithms
52} // namespace Mantid
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
Abstract base class for binary operations on IMDWorkspaces, e.g.
MultiplyMD : multiplication operation for MDWorkspaces.
Definition: MultiplyMD.h:20
const std::string summary() const override
Summary of algorithms purpose.
Definition: MultiplyMD.h:24
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: MultiplyMD.h:27
std::shared_ptr< const WorkspaceSingleValue > WorkspaceSingleValue_const_sptr
std::shared_ptr< MDHistoWorkspace > MDHistoWorkspace_sptr
A shared pointer to a MDHistoWorkspace.
std::shared_ptr< const MDHistoWorkspace > MDHistoWorkspace_const_sptr
A shared pointer to a const MDHistoWorkspace.
Helper class which provides the Collimation Length for SANS instruments.