11#include "MantidAlgorithms/DllConfig.h"
22 const std::string
name()
const override {
return "Stitch1DMany"; }
24 int version()
const override {
return 1; }
25 const std::vector<std::string>
seeAlso()
const override {
return {
"Rebin",
"Stitch1D"}; }
27 const std::string
category()
const override {
return "Reflectometry"; }
29 const std::string
summary()
const override {
return "Stitches histogram matrix workspaces together"; }
31 std::map<std::string, std::string> validateInputs()
override;
34 void doStitch1D(std::vector<API::MatrixWorkspace_sptr> &toStitch,
const std::vector<double> &manualScaleFactors,
38 void doStitch1DMany(
const size_t period,
const bool useManualScaleFactors, std::string &outName,
39 std::vector<double> &outScaleFactors,
const int indexOfReference,
const bool storeInADS =
true);
59 bool m_useManualScaleFactors =
false;
60 size_t m_scaleFactorFromPeriod = 1;
61 int m_indexOfReference = 0;
Base class from which all concrete algorithm classes should be derived.
Stitch1DMany : Stitches multiple Matrix Workspaces together into a single output.
bool checkGroups() override
Pass groups in as they are to this algorithm.
std::vector< double > m_scaleFactors
std::vector< std::vector< API::MatrixWorkspace_sptr > > m_inputWSMatrix
std::vector< double > m_params
int version() const override
Algorithm's version for identification.
API::Workspace_sptr m_outputWorkspace
std::vector< double > m_endOverlaps
const std::string name() const override
Algorithm's name for identification.
const std::string summary() const override
Summary of algorithm's purpose.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
std::vector< double > m_startOverlaps
std::vector< double > m_manualScaleFactors
const std::string category() const override
Algorithm's category for identification.
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
Helper class which provides the Collimation Length for SANS instruments.