Mantid
Loading...
Searching...
No Matches
LessThanMD.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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 +
9
10using namespace Mantid::Kernel;
11using namespace Mantid::API;
12
13namespace Mantid::MDAlgorithms {
14
15// Register the algorithm into the AlgorithmFactory
16DECLARE_ALGORITHM(LessThanMD)
17
18//----------------------------------------------------------------------------------------------
20const std::string LessThanMD::name() const { return "LessThanMD"; }
21
23int LessThanMD::version() const { return 1; }
24
25//----------------------------------------------------------------------------------------------
29 out->lessThan(*operand);
30}
31
32//----------------------------------------------------------------------------------------------
36 out->lessThan(scalar->y(0)[0]);
37}
38
39} // namespace Mantid::MDAlgorithms
#define DECLARE_ALGORITHM(classname)
Definition: Algorithm.h:576
LessThanMD : boolean operation on MDHistoWorkspaces.
Definition: LessThanMD.h:19
void execHistoHisto(Mantid::DataObjects::MDHistoWorkspace_sptr out, Mantid::DataObjects::MDHistoWorkspace_const_sptr operand) override
Run the algorithm with a MDHisotWorkspace as output and operand.
Definition: LessThanMD.cpp:27
int version() const override
Algorithm's version for identification.
Definition: LessThanMD.cpp:23
void execHistoScalar(Mantid::DataObjects::MDHistoWorkspace_sptr out, Mantid::DataObjects::WorkspaceSingleValue_const_sptr scalar) override
Run the algorithm with a MDHisotWorkspace as output and a scalar on the RHS.
Definition: LessThanMD.cpp:34
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.
STL namespace.