-
Notifications
You must be signed in to change notification settings - Fork 121
/
ConvertToDiffractionMDWorkspace3.h
48 lines (41 loc) · 1.64 KB
/
ConvertToDiffractionMDWorkspace3.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
#include "MantidMDAlgorithms/BaseConvertToDiffractionMDWorkspace.h"
namespace Mantid {
namespace MDAlgorithms {
/** ConvertToDiffractionMDWorkspace3 :
* Create a MDEventWorkspace with events in reciprocal space (Qx, Qy, Qz) from
* an input EventWorkspace.
*
* This is the wrapper for ConvertToMD algorithm transferring the properties of
* the old ConvertToDiffractionMDWorkspace into ConvertToMD properties
* and running ConvertToMD as a subalgorithm.
*
* @date 2013-05-20
*/
class DLLExport ConvertToDiffractionMDWorkspace3
: public MDAlgorithms::BaseConvertToDiffractionMDWorkspace {
public:
/// Algorithm's version for identification
int version() const override { return 3; }
const std::vector<std::string> seeAlso() const override {
return {"ConvertToMD", "SetSpecialCoordinates"};
}
private:
void init() override;
private:
// method to covnert extents to the properties of ConvertMD
void convertExtents(const std::vector<double> &Extents,
std::vector<double> &minVal,
std::vector<double> &maxVal) override;
// method to calculate the extents of the data from the input workspace
void calculateExtentsFromData(std::vector<double> &minVal,
std::vector<double> &maxVal);
};
} // namespace MDAlgorithms
} // namespace Mantid