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 "
MantidKernel/V3D.h
"
16
#include "MantidMDAlgorithms/DllConfig.h"
17
18
namespace
Mantid
{
19
namespace
MDAlgorithms {
20
26
class
MANTID_MDALGORITHMS_DLL
BaseConvertToDiffractionMDWorkspace
:
public
API::BoxControllerSettingsAlgorithm
{
27
28
public
:
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
40
private
:
41
void
exec()
override
;
42
43
protected
:
// 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
Algorithm.h
BoxControllerSettingsAlgorithm.h
EventWorkspace.h
IMDEventWorkspace_fwd.h
MDEventFactory.h
MDEventWorkspace.h
V3D.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:26
Mantid::MDAlgorithms::BaseConvertToDiffractionMDWorkspace::name
const std::string name() const override
Algorithm's name for identification.
Definition
BaseConvertToDiffractionMDWorkspace.h:30
Mantid::MDAlgorithms::BaseConvertToDiffractionMDWorkspace::category
const std::string category() const override
Algorithm's category for identification.
Definition
BaseConvertToDiffractionMDWorkspace.h:38
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:48
Mantid::MDAlgorithms::BaseConvertToDiffractionMDWorkspace::summary
const std::string summary() const override
Summary of algorithms purpose.
Definition
BaseConvertToDiffractionMDWorkspace.h:32
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
Generated by
1.9.8