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