Mantid
Loading...
Searching...
No Matches
ConvertToMDMinMaxLocal.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
11
12namespace Mantid {
13namespace MDAlgorithms {
14
17class MANTID_MDALGORITHMS_DLL ConvertToMDMinMaxLocal : public ConvertToMDParent {
18public:
19 const std::string name() const override;
21 const std::string summary() const override {
22 return "Calculate limits of ConvertToMD transformation possible for this "
23 "particular workspace and the instrument, attached to it.";
24 }
25
26 int version() const override { return 1; }
27 const std::vector<std::string> seeAlso() const override { return {"ConvertToMD"}; }
28
29protected: // for testing
30 void findMinMaxValues(MDWSDescription &WSDescription, MDTransfInterface *const pQtransf,
31 Kernel::DeltaEMode::Type iEMode, std::vector<double> &MinValues,
32 std::vector<double> &MaxValues);
33
34private:
35 void exec() override;
36 void init() override;
39};
40
41} // namespace MDAlgorithms
42} // namespace Mantid
ConvertToMDMinMaxLocal : Algorithm to calculate limits for ConvertToMD.
Mantid::DataObjects::Workspace2D_sptr m_MinMaxWS2D
pointer to the input workspace;
int version() const override
Algorithm's version for identification.
const std::string summary() const override
Summary of algorithms purpose.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
ConvertToMDParent : Main part of two algorithms which use ConvertToMD factory to transform points fro...
Interface to set of sub-classes used by ConvertToMD algorithm and responsible for conversion of input...
helper class describes the properties of target MD workspace, which should be obtained as the result ...
std::shared_ptr< Workspace2D > Workspace2D_sptr
shared pointer to Mantid::DataObjects::Workspace2D
Helper class which provides the Collimation Length for SANS instruments.
Type
Define the available energy transfer modes It is important to assign enums proper numbers,...
Definition: DeltaEMode.h:29