Mantid
Loading...
Searching...
No Matches
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
12#include "MantidKernel/Matrix.h"
13#include "MantidMDAlgorithms/DllConfig.h"
14
15namespace Mantid {
16namespace MDAlgorithms {
17
22class MANTID_MDALGORITHMS_DLL PolarizationAngleCorrectionMD final : public API::Algorithm {
23public:
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
31private:
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
51
53 std::map<uint16_t, Mantid::Kernel::Matrix<double>> mRotationMatrixMap;
54
56 size_t mQxIndex;
57 size_t mQzIndex;
58
61
63 double mPrecision;
64};
65
66} // namespace MDAlgorithms
67} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
PolarizationAngleCorrection : Perform polarization angle correction to an MDEventWorkspace.
std::map< uint16_t, Mantid::Kernel::Matrix< double > > mRotationMatrixMap
Map.
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
Helper class which provides the Collimation Length for SANS instruments.