Mantid
Loading...
Searching...
No Matches
MergeMD.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
13#include "MantidMDAlgorithms/DllConfig.h"
14
15namespace Mantid {
16namespace MDAlgorithms {
17
22class MANTID_MDALGORITHMS_DLL MergeMD : public API::BoxControllerSettingsAlgorithm {
23public:
24 const std::string name() const override;
26 const std::string summary() const override { return "Merge several MDWorkspaces into one."; }
27
28 int version() const override;
29 const std::vector<std::string> seeAlso() const override { return {"MergeMDFiles", "AccumulateMD"}; }
30 const std::string category() const override;
31
32private:
33 void init() override;
34 void exec() override;
35 void createOutputWorkspace(std::vector<std::string> &inputs);
36
37 template <typename MDE, size_t nd> void doPlus(typename Mantid::DataObjects::MDEventWorkspace<MDE, nd>::sptr ws);
38
40 std::vector<Mantid::API::IMDEventWorkspace_sptr> m_workspaces;
41
43 std::vector<uint16_t> experimentInfoNo = {0};
44
47};
48
49} // namespace MDAlgorithms
50} // namespace Mantid
An abstract algorithm sub-class for algorithms that define properties for BoxController settings.
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
Merge several MDWorkspaces into one.
Definition: MergeMD.h:22
const std::string summary() const override
Summary of algorithms purpose.
Definition: MergeMD.h:26
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: MergeMD.h:29
std::vector< Mantid::API::IMDEventWorkspace_sptr > m_workspaces
Vector of input MDWorkspaces.
Definition: MergeMD.h:40
Mantid::API::IMDEventWorkspace_sptr out
Output MDEventWorkspace.
Definition: MergeMD.h:46
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
Helper class which provides the Collimation Length for SANS instruments.