Mantid
Loading...
Searching...
No Matches
MaskBinsFromWorkspace.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2019 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
10#include "MantidAlgorithms/DllConfig.h"
11#include "MantidIndexing/SpectrumIndexSet.h"
12
13namespace Mantid {
14
15namespace Histogram {
16class BinEdges;
17}
18namespace Algorithms {
19class MANTID_ALGORITHMS_DLL MaskBinsFromWorkspace : public API::DistributedAlgorithm {
20public:
22 const std::string name() const override { return "MaskBinsFromWorkspace"; }
24 const std::string summary() const override {
25 return "Copies over masked bins from a workspace to another workspace.";
26 }
27
29 int version() const override { return (1); }
30 const std::vector<std::string> seeAlso() const override { return {"MaskBinsFromTable"}; }
32 const std::string category() const override { return "Transforms\\Masking"; }
33
34private:
36 void init() override;
38 void exec() override;
39 Indexing::SpectrumIndexSet m_indexSet;
40};
41
42} // namespace Algorithms
43} // namespace Mantid
Base class for algorithms that treat all spectra independently, i.e., we can trivially parallelize ov...
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string category() const override
Algorithm's category for identification.
const std::string summary() const override
Summary of algorithms purpose.
Indexing::SpectrumIndexSet m_indexSet
the list of Spectra (workspace index) to load
const std::string name() const override
Algorithm's name.
int version() const override
Algorithm's version.
Helper class which provides the Collimation Length for SANS instruments.