Mantid
Loading...
Searching...
No Matches
RebinRagged2.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2023 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
11namespace Mantid {
12namespace Algorithms {
13
16class MANTID_ALGORITHMS_DLL RebinRagged : public Rebin {
17public:
18 const std::string name() const override;
19 int version() const override;
20 const std::string category() const override;
21 const std::string summary() const override;
22 const std::vector<std::string> seeAlso() const override { return {"Rebin", "ResampleX"}; }
24 const std::string alias() const override { return ""; }
25
26private:
27 void init() override;
28 void exec() override;
29 std::map<std::string, std::string> validateInputs() override;
30 static bool use_simple_rebin(std::vector<double> xmins, std::vector<double> xmaxs, std::vector<double> deltas);
31 static void extend_value(int numSpec, std::vector<double> &array);
32 const std::string workspaceMethodName() const override { return ""; } // Override the one from Rebin to ignore us
33};
34
35} // namespace Algorithms
36} // namespace Mantid
std::string name
Definition Run.cpp:60
RebinRagged : TODO: DESCRIPTION.
const std::vector< std::string > seeAlso() const override
Algorithm's seeAlso.
const std::string workspaceMethodName() const override
const std::string alias() const override
Alias for the algorithm. Must override so it doesn't get parent class's.
Takes a workspace as input and rebins the data according to the input rebin parameters.
Definition Rebin.h:39
Helper class which provides the Collimation Length for SANS instruments.