-
Notifications
You must be signed in to change notification settings - Fork 122
/
MaskNonOverlappingBins.h
43 lines (38 loc) · 1.63 KB
/
MaskNonOverlappingBins.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
#include "MantidAPI/Algorithm.h"
#include "MantidAlgorithms/DllConfig.h"
namespace Mantid {
namespace Algorithms {
/** MaskNonOverlappingBins : Compares the X ranges of two workspace and
* masks the non-overlapping bins in the first workspace.
*/
class MANTID_ALGORITHMS_DLL MaskNonOverlappingBins : public API::Algorithm {
public:
std::string const name() const override;
int version() const override;
std::string const category() const override;
std::string const summary() const override;
std::vector<std::string> const seeAlso() const override;
private:
void init() override;
void exec() override;
std::map<std::string, std::string> validateInputs() override;
void checkXSorting(API::MatrixWorkspace const &inputWS,
API::MatrixWorkspace const &comparisonWS);
bool isCommonBins(API::MatrixWorkspace const &inputWS,
API::MatrixWorkspace const &comparisonWS);
void processRagged(API::MatrixWorkspace const &inputWS,
API::MatrixWorkspace const &comparisonWS,
API::MatrixWorkspace &outputWS);
void processNonRagged(API::MatrixWorkspace const &inputWS,
API::MatrixWorkspace const &comparisonWS,
API::MatrixWorkspace &outputWS);
};
} // namespace Algorithms
} // namespace Mantid