Mantid
Loading...
Searching...
No Matches
ReplicateMD.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 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 "MantidMDAlgorithms/DllConfig.h"
11#include <map>
12#include <memory>
13#include <string>
14
15namespace Mantid {
16namespace API {
17class IMDHistoWorkspace;
18}
19namespace DataObjects {
20class MDHistoWorkspace;
21}
22namespace MDAlgorithms {
23
28class MANTID_MDALGORITHMS_DLL ReplicateMD final : public API::Algorithm {
29public:
30 const std::string name() const override;
31 int version() const override;
32 const std::vector<std::string> seeAlso() const override { return {"CreateMDWorkspace", "MergeMD"}; }
33 const std::string category() const override;
34 const std::string summary() const override;
36 std::map<std::string, std::string> validateInputs() override;
37
38private:
39 std::shared_ptr<const Mantid::DataObjects::MDHistoWorkspace>
40 transposeMD(std::shared_ptr<Mantid::DataObjects::MDHistoWorkspace> &toTranspose, const std::vector<int> &axes);
41 std::shared_ptr<Mantid::DataObjects::MDHistoWorkspace> getDataWorkspace() const;
42 std::shared_ptr<Mantid::DataObjects::MDHistoWorkspace> getShapeWorkspace() const;
43 void init() override;
44 void exec() override;
45};
46
47} // namespace MDAlgorithms
48} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
ReplicateMD : Algorithm header for ReplicateMD.
Definition: ReplicateMD.h:28
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Definition: ReplicateMD.h:32
Helper class which provides the Collimation Length for SANS instruments.