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 "MantidKernel/V3D.h"
16#include "MantidMDAlgorithms/DllConfig.h"
17
18namespace Mantid {
19namespace MDAlgorithms {
20
27
28public:
30 const std::string name() const override { return "ConvertToDiffractionMDWorkspace"; }
32 const std::string summary() const override {
33 return "Create a MDEventWorkspace with events in reciprocal space (Qx, Qy, "
34 "Qz) for an elastic diffraction experiment.";
35 }
36
38 const std::string category() const override { return "MDAlgorithms\\Creation"; }
39
40private:
41 void exec() override;
42
43protected: // for testing
44 void init() override;
45
46 // the target frame names exposed as the algorithm properties and recognized
47 // by old convertToDiffractionWorkspace algorithm.
48 std::vector<std::string> frameOptions;
49
50 // method to convert the value of the target frame specified for the
51 // ConvertToDiffractionMDWorksapce into the properties names of the
52 // ConvertToMD
53 void convertFramePropertyNames(const std::string &TargFrame, std::string &TargFrameName, std::string &ScalingName);
54 // method to convert the extents specified for the
55 // ConvertToDiffractionMDWorksapce into the min-max properties names of the
56 // ConvertToMD
57 virtual void convertExtents(const std::vector<double> &Extents, std::vector<double> &minVal,
58 std::vector<double> &maxVal) = 0;
59};
60
61} // namespace MDAlgorithms
62} // 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.