Mantid
Loading...
Searching...
No Matches
EqualToMD.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 EqualToMD : 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", "LessThanMD", "NotMD"}; }
24
25private:
26 void initExtraProperties() override;
27 bool acceptScalar() const override { return true; }
28 void execHistoHisto(Mantid::DataObjects::MDHistoWorkspace_sptr out,
30 void execHistoScalar(Mantid::DataObjects::MDHistoWorkspace_sptr out,
32};
33
34} // namespace MDAlgorithms
35} // namespace Mantid
BooleanBinaryOperationMD : base class for boolean-type operations on MDHistoWorkspaces.
EqualToMD : boolean operation on MDHistoWorkspaces.
Definition: EqualToMD.h:19
bool acceptScalar() const override
Return true if the algorithm can operate on a scalar.
Definition: EqualToMD.h:27
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: EqualToMD.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.