Mantid
Loading...
Searching...
No Matches
MaskBins.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2009 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"
13#include "MantidIndexing/SpectrumIndexSet.h"
14
15namespace Mantid {
16
17namespace Histogram {
18class BinEdges;
19}
20namespace Algorithms {
41class MANTID_ALGORITHMS_DLL MaskBins : public API::DistributedAlgorithm {
42public:
44 const std::string name() const override { return "MaskBins"; }
46 const std::string summary() const override { return "Marks bins in a workspace as being masked."; }
47
49 int version() const override { return (1); }
50 const std::vector<std::string> seeAlso() const override {
51 return {"MaskBinsIf", "MaskBinsFromTable", "MaskNonOverlappingBins"};
52 }
54 const std::string category() const override { return "Transforms\\Masking"; }
55
56private:
58 void init() override;
60 void exec() override;
61 void execEvent();
62
63 void findIndices(const HistogramData::BinEdges &X, MantidVec::difference_type &startBin,
64 MantidVec::difference_type &endBin);
65
66 double m_startX{0.0};
67 double m_endX{0.0};
68 Indexing::SpectrumIndexSet indexSet;
69};
70
71} // namespace Algorithms
72} // namespace Mantid
Base class for algorithms that treat all spectra independently, i.e., we can trivially parallelize ov...
Masks bins in a workspace.
Definition: MaskBins.h:41
const std::string summary() const override
Summary of algorithms purpose.
Definition: MaskBins.h:46
Indexing::SpectrumIndexSet indexSet
the list of Spectra (workspace index) to load
Definition: MaskBins.h:68
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Definition: MaskBins.h:50
int version() const override
Algorithm's version.
Definition: MaskBins.h:49
const std::string category() const override
Algorithm's category for identification.
Definition: MaskBins.h:54
const std::string name() const override
Algorithm's name.
Definition: MaskBins.h:44
Helper class which provides the Collimation Length for SANS instruments.