Mantid
Loading...
Searching...
No Matches
NotMD.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 NotMD : public UnaryOperationMD {
20public:
21 const std::string name() const override;
23 const std::string summary() const override { return "Performs a boolean negation on a MDHistoWorkspace."; }
24
25 int version() const override;
26 const std::vector<std::string> seeAlso() const override { return {"AndMD", "OrMD", "XorMD"}; }
27
28private:
30 void checkInputs() override;
31
33 void execEvent(Mantid::API::IMDEventWorkspace_sptr out) override;
34
36 void execHisto(Mantid::DataObjects::MDHistoWorkspace_sptr out) override;
37};
38
39} // namespace MDAlgorithms
40} // namespace Mantid
NotMD : boolean negation of a MDHistoWorkspace.
Definition: NotMD.h:19
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: NotMD.h:26
const std::string summary() const override
Summary of algorithms purpose.
Definition: NotMD.h:23
Abstract base class for unary operations (e.g.
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
std::shared_ptr< MDHistoWorkspace > MDHistoWorkspace_sptr
A shared pointer to a MDHistoWorkspace.
Helper class which provides the Collimation Length for SANS instruments.