Mantid
Loading...
Searching...
No Matches
Framework
MDAlgorithms
inc
MantidMDAlgorithms
PolarizationAngleCorrectionMD.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2011 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/IMDEventWorkspace_fwd.h
"
11
#include "
MantidDataObjects/MDEventWorkspace.h
"
12
#include "
MantidKernel/Matrix.h
"
13
#include "MantidMDAlgorithms/DllConfig.h"
14
15
namespace
Mantid
{
16
namespace
MDAlgorithms {
17
22
class
MANTID_MDALGORITHMS_DLL
PolarizationAngleCorrectionMD
final :
public
API::Algorithm
{
23
public
:
24
PolarizationAngleCorrectionMD
()
25
: mIsQSample(false), mQxIndex(4), mQzIndex(4), mPolarizationAngle(0.), mPrecision(1.) {}
26
const
std::string
name
()
const override
;
27
int
version()
const override
;
28
const
std::string category()
const override
;
29
const
std::string summary()
const override
;
30
31
private
:
33
void
init()
override
;
35
void
exec()
override
;
37
std::map<std::string, std::string> validateInputs()
override
;
38
40
template
<
typename
MDE,
size_t
nd>
41
void
applyPolarizationAngleCorrection(
typename
Mantid::DataObjects::MDEventWorkspace<MDE, nd>::sptr
ws);
42
44
std::string checkInputMDDimension();
45
47
std::string checkEi(
const
API::IMDEventWorkspace_sptr
&mdws);
48
50
bool
mIsQSample
;
51
53
std::map<uint16_t, Mantid::Kernel::Matrix<double>>
mRotationMatrixMap
;
54
56
size_t
mQxIndex
;
57
size_t
mQzIndex
;
58
60
double
mPolarizationAngle
;
61
63
double
mPrecision
;
64
};
65
66
}
// namespace MDAlgorithms
67
}
// namespace Mantid
name
std::string name
Definition
Run.cpp:60
Algorithm.h
IMDEventWorkspace_fwd.h
MDEventWorkspace.h
Matrix.h
Mantid::API::Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition
Algorithm.h:76
Mantid::DataObjects::MDEventWorkspace::sptr
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
Definition
MDEventWorkspace.h:41
Mantid::MDAlgorithms::PolarizationAngleCorrectionMD
PolarizationAngleCorrection : Perform polarization angle correction to an MDEventWorkspace.
Definition
PolarizationAngleCorrectionMD.h:22
Mantid::MDAlgorithms::PolarizationAngleCorrectionMD::mQxIndex
size_t mQxIndex
Qx and Qz indexes.
Definition
PolarizationAngleCorrectionMD.h:56
Mantid::MDAlgorithms::PolarizationAngleCorrectionMD::mPolarizationAngle
double mPolarizationAngle
Polarization angle.
Definition
PolarizationAngleCorrectionMD.h:60
Mantid::MDAlgorithms::PolarizationAngleCorrectionMD::mPrecision
double mPrecision
Precision.
Definition
PolarizationAngleCorrectionMD.h:63
Mantid::MDAlgorithms::PolarizationAngleCorrectionMD::mQzIndex
size_t mQzIndex
Definition
PolarizationAngleCorrectionMD.h:57
Mantid::MDAlgorithms::PolarizationAngleCorrectionMD::PolarizationAngleCorrectionMD
PolarizationAngleCorrectionMD()
Definition
PolarizationAngleCorrectionMD.h:24
Mantid::MDAlgorithms::PolarizationAngleCorrectionMD::mIsQSample
bool mIsQSample
coordinate system
Definition
PolarizationAngleCorrectionMD.h:50
Mantid::MDAlgorithms::PolarizationAngleCorrectionMD::mRotationMatrixMap
std::map< uint16_t, Mantid::Kernel::Matrix< double > > mRotationMatrixMap
Map.
Definition
PolarizationAngleCorrectionMD.h:53
Mantid::API::IMDEventWorkspace_sptr
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
Definition
IMDEventWorkspace_fwd.h:21
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
Generated by
1.9.8