Mantid
Loading...
Searching...
No Matches
Framework
MDAlgorithms
inc
MantidMDAlgorithms
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
9
#include "
MantidAPI/Algorithm.h
"
10
#include "
MantidAPI/BoxControllerSettingsAlgorithm.h
"
11
#include "
MantidAPI/IMDEventWorkspace_fwd.h
"
12
#include "
MantidDataObjects/EventWorkspace.h
"
13
#include "
MantidDataObjects/MDEventFactory.h
"
14
#include "
MantidDataObjects/MDEventWorkspace.h
"
15
#include "MantidMDAlgorithms/DllConfig.h"
16
17
namespace
Mantid
{
18
namespace
MDAlgorithms {
19
25
class
MANTID_MDALGORITHMS_DLL
BaseConvertToDiffractionMDWorkspace
:
public
API::BoxControllerSettingsAlgorithm
{
26
27
public
:
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
39
private
:
40
void
exec()
override
;
41
42
protected
:
// 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
Algorithm.h
BoxControllerSettingsAlgorithm.h
EventWorkspace.h
IMDEventWorkspace_fwd.h
MDEventFactory.h
MDEventWorkspace.h
Mantid::API::BoxControllerSettingsAlgorithm
An abstract algorithm sub-class for algorithms that define properties for BoxController settings.
Definition
BoxControllerSettingsAlgorithm.h:25
Mantid::MDAlgorithms::BaseConvertToDiffractionMDWorkspace
BaseConvertToDiffractionMDWorkspace.
Definition
BaseConvertToDiffractionMDWorkspace.h:25
Mantid::MDAlgorithms::BaseConvertToDiffractionMDWorkspace::name
const std::string name() const override
Algorithm's name for identification.
Definition
BaseConvertToDiffractionMDWorkspace.h:29
Mantid::MDAlgorithms::BaseConvertToDiffractionMDWorkspace::category
const std::string category() const override
Algorithm's category for identification.
Definition
BaseConvertToDiffractionMDWorkspace.h:37
Mantid::MDAlgorithms::BaseConvertToDiffractionMDWorkspace::convertExtents
virtual void convertExtents(const std::vector< double > &Extents, std::vector< double > &minVal, std::vector< double > &maxVal)=0
Mantid::MDAlgorithms::BaseConvertToDiffractionMDWorkspace::frameOptions
std::vector< std::string > frameOptions
Definition
BaseConvertToDiffractionMDWorkspace.h:47
Mantid::MDAlgorithms::BaseConvertToDiffractionMDWorkspace::summary
const std::string summary() const override
Summary of algorithms purpose.
Definition
BaseConvertToDiffractionMDWorkspace.h:31
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
Generated by
1.9.8