Mantid
Loading...
Searching...
No Matches
CopyLogs.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2013 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#include "MantidAlgorithms/DllConfig.h"
11
12namespace Mantid {
13
14namespace API {
15class Run;
16}
17
18namespace Algorithms {
19
29class MANTID_ALGORITHMS_DLL CopyLogs final : public API::Algorithm {
30public:
31 const std::string name() const override;
33 const std::string summary() const override { return "Copies the sample logs from one workspace to another."; }
34
35 int version() const override;
36 const std::vector<std::string> seeAlso() const override {
37 return {"CreateLogPropertyTable", "CopyDetectorMapping", "CheckForSampleLogs", "CopySample"};
38 }
39 const std::string category() const override;
40
41private:
42 void init() override;
43 void exec() override;
44
46 void mergeReplaceExisting(const std::vector<Kernel::Property *> &inputLogs, API::Run &outputRun);
48 void mergeKeepExisting(const std::vector<Kernel::Property *> &inputLogs, API::Run &outputRun);
50 void wipeExisting(const std::vector<Kernel::Property *> &inputLogs, API::Run &outputRun);
51};
52
53} // namespace Algorithms
54} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
This class stores information regarding an experimental run as a series of log entries.
Definition: Run.h:38
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Definition: CopyLogs.h:36
const std::string summary() const override
Summary of algorithms purpose.
Definition: CopyLogs.h:33
Helper class which provides the Collimation Length for SANS instruments.