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