Mantid
Loading...
Searching...
No Matches
AndMD.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 +
8
9using namespace Mantid::Kernel;
10using namespace Mantid::API;
11
12namespace Mantid::MDAlgorithms {
13
14// Register the algorithm into the AlgorithmFactory
16
17//----------------------------------------------------------------------------------------------
19const std::string AndMD::name() const { return "AndMD"; }
20
22int AndMD::version() const { return 1; }
23
24//----------------------------------------------------------------------------------------------
28 out->operator&=(*operand);
29}
30
31} // namespace Mantid::MDAlgorithms
#define DECLARE_ALGORITHM(classname)
Definition: Algorithm.h:576
AndMD : Perform the And boolean operation on two MDHistoWorkspaces.
Definition: AndMD.h:20
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: AndMD.cpp:26
int version() const override
Algorithm's version for identification.
Definition: AndMD.cpp:22
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.