Mantid
Loading...
Searching...
No Matches
CopySample.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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 "MantidAPI/Sample.h"
11#include "MantidAlgorithms/DllConfig.h"
12
13namespace Mantid {
14namespace Algorithms {
15
32class MANTID_ALGORITHMS_DLL CopySample final : public API::Algorithm {
33public:
35 const std::string name() const override { return "CopySample"; };
37 const std::string summary() const override {
38 return "Copy some/all the sample information from one workspace to "
39 "another.";
40 }
41
43 int version() const override { return 1; };
44 const std::vector<std::string> seeAlso() const override {
45 return {"CompareSampleLogs", "CopyLogs", "CheckForSampleLogs"};
46 }
48 const std::string category() const override { return "Sample;Utility\\Workspaces"; }
49 std::map<std::string, std::string> validateInputs() override;
50
51private:
53 void init() override;
55 void exec() override;
57 void copyParameters(API::Sample &from, API::Sample &to, bool nameFlag, bool materialFlag, bool environmentFlag,
58 bool shapeFlag, bool latticeFlag, bool orientationOnlyFlag,
59 const Kernel::Matrix<double> &rotationMatrix);
60};
61
62} // namespace Algorithms
63} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
This class stores information about the sample used in particular run.
Definition: Sample.h:33
CopySample : The algorithm copies some/all the sample information from one workspace to another.
Definition: CopySample.h:32
int version() const override
Algorithm's version for identification.
Definition: CopySample.h:43
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Definition: CopySample.h:44
const std::string summary() const override
Summary of algorithms purpose.
Definition: CopySample.h:37
const std::string name() const override
Algorithm's name for identification.
Definition: CopySample.h:35
const std::string category() const override
Algorithm's category for identification.
Definition: CopySample.h:48
Numerical Matrix class.
Definition: Matrix.h:42
Helper class which provides the Collimation Length for SANS instruments.