Mantid
Loading...
Searching...
No Matches
MaskNonOverlappingBins.h
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 +
7#pragma once
8
10#include "MantidAlgorithms/DllConfig.h"
11
12namespace Mantid {
13namespace Algorithms {
14
18class MANTID_ALGORITHMS_DLL MaskNonOverlappingBins final : public API::Algorithm {
19public:
20 std::string const name() const override;
21 int version() const override;
22 std::string const category() const override;
23 std::string const summary() const override;
24 std::vector<std::string> const seeAlso() const override;
25
26private:
27 void init() override;
28 void exec() override;
29 std::map<std::string, std::string> validateInputs() override;
30 void checkXSorting(API::MatrixWorkspace const &inputWS, API::MatrixWorkspace const &comparisonWS);
31 bool isCommonBins(API::MatrixWorkspace const &inputWS, API::MatrixWorkspace const &comparisonWS);
32 void processRagged(API::MatrixWorkspace const &inputWS, API::MatrixWorkspace const &comparisonWS,
33 API::MatrixWorkspace &outputWS);
34 void processNonRagged(API::MatrixWorkspace const &inputWS, API::MatrixWorkspace const &comparisonWS,
35 API::MatrixWorkspace &outputWS);
36};
37
38} // namespace Algorithms
39} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Base MatrixWorkspace Abstract Class.
MaskNonOverlappingBins : Compares the X ranges of two workspace and masks the non-overlapping bins in...
Helper class which provides the Collimation Length for SANS instruments.