Mantid
Loading...
Searching...
No Matches
BaseConvertToDiffractionMDWorkspace.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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
15#include "MantidMDAlgorithms/DllConfig.h"
16
17namespace Mantid {
18namespace MDAlgorithms {
19
26
27public:
29 const std::string name() const override { return "ConvertToDiffractionMDWorkspace"; }
31 const std::string summary() const override {
32 return "Create a MDEventWorkspace with events in reciprocal space (Qx, Qy, "
33 "Qz) for an elastic diffraction experiment.";
34 }
35
37 const std::string category() const override { return "MDAlgorithms\\Creation"; }
38
39private:
40 void exec() override;
41
42protected: // for testing
43 void init() override;
44
45 // the target frame names exposed as the algorithm properties and recognized
46 // by old convertToDiffractionWorkspace algorithm.
47 std::vector<std::string> frameOptions;
48
49 // method to convert the value of the target frame specified for the
50 // ConvertToDiffractionMDWorksapce into the properties names of the
51 // ConvertToMD
52 void convertFramePropertyNames(const std::string &TargFrame, std::string &TargFrameName, std::string &ScalingName);
53 // method to convert the extents specified for the
54 // ConvertToDiffractionMDWorksapce into the min-max properties names of the
55 // ConvertToMD
56 virtual void convertExtents(const std::vector<double> &Extents, std::vector<double> &minVal,
57 std::vector<double> &maxVal) = 0;
58};
59
60} // namespace MDAlgorithms
61} // namespace Mantid
An abstract algorithm sub-class for algorithms that define properties for BoxController settings.
const std::string name() const override
Algorithm's name for identification.
const std::string category() const override
Algorithm's category for identification.
virtual void convertExtents(const std::vector< double > &Extents, std::vector< double > &minVal, std::vector< double > &maxVal)=0
const std::string summary() const override
Summary of algorithms purpose.
Helper class which provides the Collimation Length for SANS instruments.