Mantid
Loading...
Searching...
No Matches
DivideMD.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 DivideMD : public BinaryOperationMD {
20public:
21 const std::string name() const override;
23 const std::string summary() const override { return "Divide MDHistoWorkspace's"; }
24
25 int version() const override;
26 const std::vector<std::string> seeAlso() const override { return {"MinusMD", "MultiplyMD", "PlusMD", "PowerMD"}; }
27
28private:
30 bool commutative() const override;
31
33 void checkInputs() override;
34
36 void execEvent() override;
37
39 void execHistoHisto(Mantid::DataObjects::MDHistoWorkspace_sptr out,
41
43 void execHistoScalar(Mantid::DataObjects::MDHistoWorkspace_sptr out,
45
46 template <typename MDE, size_t nd>
47 void execEventScalar(typename Mantid::DataObjects::MDEventWorkspace<MDE, nd>::sptr ws);
48};
49
50} // namespace MDAlgorithms
51} // 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.
DivideMD : divide operation for MDWorkspaces.
Definition: DivideMD.h:19
const std::string summary() const override
Summary of algorithms purpose.
Definition: DivideMD.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: DivideMD.h:26
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.