-
Notifications
You must be signed in to change notification settings - Fork 122
/
ConvertToDiffractionMDWorkspace2.h
41 lines (35 loc) · 1.41 KB
/
ConvertToDiffractionMDWorkspace2.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
// 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 {
/** ConvertToDiffractionMDWorkspace2 :
* 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 ConvertToDiffractionMDWorkspace2 : public MDAlgorithms::BaseConvertToDiffractionMDWorkspace {
public:
/// Algorithm's version for identification
int version() const override { return 2; }
private:
void init() override;
protected: // for testing
// method to convert the extents specified for the
// ConvertToDiffractionMDWorksapce into the min-max properties names of the
// ConvertToMD
void convertExtents(const std::vector<double> &Extents, std::vector<double> &minVal,
std::vector<double> &maxVal) override;
};
} // namespace MDAlgorithms
} // namespace Mantid