Mantid
Loading...
Searching...
No Matches
ConjoinXRuns.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2017 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
11#include "MantidAlgorithms/DllConfig.h"
12
13#include <list>
14
15namespace Mantid {
16namespace Algorithms {
17
21class MANTID_ALGORITHMS_DLL ConjoinXRuns final : public API::Algorithm {
22public:
23 const std::string name() const override;
24 int version() const override;
25 const std::string category() const override;
26 const std::string summary() const override;
27 std::map<std::string, std::string> validateInputs() override;
28
30 static const std::string SUM_MERGE;
31 static const std::string TIME_SERIES_MERGE;
32 static const std::string LIST_MERGE;
33 static const std::string WARN_MERGE;
34 static const std::string WARN_MERGE_TOLERANCES;
35 static const std::string FAIL_MERGE;
36 static const std::string FAIL_MERGE_TOLERANCES;
37
38protected:
39 void fillHistory() override;
40
41private:
42 void init() override;
43 void exec() override;
44
45 std::string checkLogEntry(const API::MatrixWorkspace_sptr &) const;
46 std::vector<double> getXAxis(const API::MatrixWorkspace_sptr &, double &) const;
47 void joinSpectrum(int64_t);
48
50 std::string m_logEntry;
52 std::unique_ptr<API::Progress> m_progress;
54 std::list<API::MatrixWorkspace_sptr> m_inputWS;
58 std::map<std::string, std::vector<double>> m_axisCache;
59};
60
61} // namespace Algorithms
62} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
ConjoinXRuns : This algorithms joins the input workspaces horizontally, i.e.
Definition: ConjoinXRuns.h:21
static const std::string WARN_MERGE
Definition: ConjoinXRuns.h:33
static const std::string WARN_MERGE_TOLERANCES
Definition: ConjoinXRuns.h:34
std::unique_ptr< API::Progress > m_progress
Progress reporting.
Definition: ConjoinXRuns.h:52
static const std::string SUM_MERGE
ConjoinXRuns parameter names of the paramter file for sample log merging.
Definition: ConjoinXRuns.h:30
static const std::string TIME_SERIES_MERGE
Definition: ConjoinXRuns.h:31
std::string m_logEntry
Sample log entry name.
Definition: ConjoinXRuns.h:50
static const std::string FAIL_MERGE
Definition: ConjoinXRuns.h:35
std::list< API::MatrixWorkspace_sptr > m_inputWS
List of input matrix workspaces.
Definition: ConjoinXRuns.h:54
static const std::string LIST_MERGE
Definition: ConjoinXRuns.h:32
static const std::string FAIL_MERGE_TOLERANCES
Definition: ConjoinXRuns.h:36
API::MatrixWorkspace_sptr m_outWS
Output workspace.
Definition: ConjoinXRuns.h:56
std::map< std::string, std::vector< double > > m_axisCache
X-axis cache if sample log is given.
Definition: ConjoinXRuns.h:58
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.