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 {
26 return {"PolarizationCorrectionWildes", "PolarizationCorrectionFredrikze"};
27 }
28 const std::string category() const override;
29 const std::string summary() const override;
30
31private:
32 void init() override;
33 void exec() override;
34 void execWildes();
35 void execFredrikze();
36
37 void checkWorkspaces() const;
38 void checkWildesProperties() const;
39 void checkFredrikzeProperties() const;
40
41 std::vector<std::string> getWorkspaceNameList() const;
42 API::WorkspaceGroup_sptr getWorkspaceGroup() const;
43 API::MatrixWorkspace_sptr getEfficiencies();
44 bool needInterpolation(API::MatrixWorkspace const &efficiencies, API::MatrixWorkspace const &inWS) const;
45 API::MatrixWorkspace_sptr convertToHistogram(API::MatrixWorkspace_sptr efficiencies);
46 API::MatrixWorkspace_sptr interpolate(const API::MatrixWorkspace_sptr &efficiencies,
47 const API::MatrixWorkspace_sptr &inWS);
48};
49
50} // namespace Algorithms
51} // namespace Mantid
std::string name
Definition Run.cpp:60
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
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.