Mantid
Loading...
Searching...
No Matches
QueryMDWorkspace.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
11#include "MantidMDAlgorithms/DllConfig.h"
12
13namespace Mantid {
14namespace MDAlgorithms {
15
22class MANTID_MDALGORITHMS_DLL QueryMDWorkspace : public Mantid::API::Algorithm {
23public:
25 const std::string name() const override { return "QueryMDWorkspace"; }
27 const std::string summary() const override {
28 return "Query the IMDWorkspace in order to extract summary information.";
29 }
30
32 int version() const override { return 1; }
34 const std::string category() const override { return "MDAlgorithms\\Utility\\Workspace"; }
35
36private:
38 void init() override;
40 void exec() override;
41
42 template <typename MDE, size_t nd> void getBoxData(typename DataObjects::MDEventWorkspace<MDE, nd>::sptr ws);
43};
44
45} // namespace MDAlgorithms
46} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
QueryMDWorkspace : Query an MDWorkspace in order to extract overview information as a table workspace...
const std::string category() const override
Algorithm's category for identification.
const std::string name() const override
Algorithm's name for identification.
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version for identification.
Helper class which provides the Collimation Length for SANS instruments.