Mantid
Loading...
Searching...
No Matches
AppendSpectra.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
13
14namespace Mantid {
15namespace Algorithms {
16
29class MANTID_ALGORITHMS_DLL AppendSpectra : public WorkspaceJoiners {
30public:
31 const std::string name() const override;
32 int version() const override;
33 const std::vector<std::string> seeAlso() const override { return {"ConjoinSpectra"}; }
34 std::map<std::string, std::string> validateInputs() override;
35
36private:
37 // Overridden Algorithm methods
38 void init() override;
39 void exec() override;
40
41 void fixSpectrumNumbers(const API::MatrixWorkspace &ws1, const API::MatrixWorkspace &ws2,
42 API::MatrixWorkspace &output) override;
43 void combineLogs(const API::Run &lhs, const API::Run &rhs, API::Run &ans);
44 void appendYAxisLabels(const API::MatrixWorkspace &ws1, const API::MatrixWorkspace &ws2,
45 const API::MatrixWorkspace &output);
46 void rewriteSpectraMap(const API::MatrixWorkspace_const_sptr &ws1, const API::MatrixWorkspace_const_sptr &ws2,
47 const API::MatrixWorkspace_sptr &output);
48};
49
50} // namespace Algorithms
51} // namespace Mantid
std::string name
Definition Run.cpp:60
const std::vector< double > & rhs
Base MatrixWorkspace Abstract Class.
This class stores information regarding an experimental run as a series of log entries.
Definition Run.h:36
Joins two partial, non-overlapping workspaces into one.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
A base class to hold code common to two algorithms that bolt two workspaces together spectra-wise - C...
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.