Mantid
Loading...
Searching...
No Matches
PolarizationEfficiencyCor.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
11#include "MantidAlgorithms/DllConfig.h"
12
13namespace Mantid {
14namespace Algorithms {
15
21class MANTID_ALGORITHMS_DLL PolarizationEfficiencyCor final : public API::Algorithm {
22public:
23 const std::string name() const override;
24 int version() const override;
25 const std::vector<std::string> seeAlso() const override { return {"PolarizationCorrectionFredrikze"}; }
26 const std::string category() const override;
27 const std::string summary() const override;
28
29private:
30 void init() override;
31 void exec() override;
32 void execWildes();
33 void execFredrikze();
34
35 void checkWorkspaces() const;
36 void checkWildesProperties() const;
37 void checkFredrikzeProperties() const;
38
39 std::vector<std::string> getWorkspaceNameList() const;
40 API::WorkspaceGroup_sptr getWorkspaceGroup() const;
41 API::MatrixWorkspace_sptr getEfficiencies();
42 bool needInterpolation(API::MatrixWorkspace const &efficiencies, API::MatrixWorkspace const &inWS) const;
43 API::MatrixWorkspace_sptr convertToHistogram(API::MatrixWorkspace_sptr efficiencies);
44 API::MatrixWorkspace_sptr interpolate(const API::MatrixWorkspace_sptr &efficiencies,
45 const API::MatrixWorkspace_sptr &inWS);
46};
47
48} // namespace Algorithms
49} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Base MatrixWorkspace Abstract Class.
PolarizationEfficiencyCor: a generalised polarization correction algorithm.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
std::shared_ptr< WorkspaceGroup > WorkspaceGroup_sptr
shared pointer to Mantid::API::WorkspaceGroup
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.