Mantid
Loading...
Searching...
No Matches
GreaterThanMD.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 GreaterThanMD : public BooleanBinaryOperationMD {
20public:
21 const std::string name() const override;
23 const std::string summary() const override {
24 return "Perform the GreaterThan boolean operation on two "
25 "MDHistoWorkspaces.";
26 }
27
28 int version() const override;
29 const std::vector<std::string> seeAlso() const override { return {"LessThanMD", "EqualToMD"}; }
30
31private:
32 bool acceptScalar() const override { return true; }
33 bool commutative() const override { return false; }
34
35 void execHistoHisto(Mantid::DataObjects::MDHistoWorkspace_sptr out,
37 void execHistoScalar(Mantid::DataObjects::MDHistoWorkspace_sptr out,
39};
40
41} // namespace MDAlgorithms
42} // namespace Mantid
BooleanBinaryOperationMD : base class for boolean-type operations on MDHistoWorkspaces.
GreaterThanMD : boolean operation on MDHistoWorkspaces.
Definition: GreaterThanMD.h:19
bool acceptScalar() const override
Return true if the algorithm can operate on a scalar.
Definition: GreaterThanMD.h:32
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: GreaterThanMD.h:29
bool commutative() const override
Is the operation commutative?
Definition: GreaterThanMD.h:33
const std::string summary() const override
Summary of algorithms purpose.
Definition: GreaterThanMD.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.