Mantid
Loading...
Searching...
No Matches
PolarizationCorrectionFredrikze.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2014 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
10#include "MantidAlgorithms/DllConfig.h"
11#include <boost/optional.hpp>
12#include <memory>
13
14namespace Mantid {
15namespace API {
16class WorkspaceGroup;
17class MatrixWorkspace;
18} // namespace API
19namespace Algorithms {
20
27class MANTID_ALGORITHMS_DLL PolarizationCorrectionFredrikze final : public API::Algorithm {
28public:
29 const std::string name() const override;
30 int version() const override;
31 const std::vector<std::string> seeAlso() const override { return {"PolarizationEfficiencyCor"}; }
32 const std::string category() const override;
33 const std::string summary() const override;
34
35private:
36 void init() override;
37 void exec() override;
38 std::shared_ptr<Mantid::API::MatrixWorkspace> getEfficiencyWorkspace(const std::string &label);
39 std::shared_ptr<Mantid::API::WorkspaceGroup> execPA(const std::shared_ptr<Mantid::API::WorkspaceGroup> &inWS);
40 std::shared_ptr<Mantid::API::WorkspaceGroup> execPNR(const std::shared_ptr<Mantid::API::WorkspaceGroup> &inWS);
41 std::shared_ptr<Mantid::API::MatrixWorkspace> add(std::shared_ptr<Mantid::API::MatrixWorkspace> &lhsWS,
42 const double &rhs);
43 std::shared_ptr<Mantid::API::MatrixWorkspace> multiply(std::shared_ptr<Mantid::API::MatrixWorkspace> &lhsWS,
44 const double &rhs);
45};
46
47} // namespace Algorithms
48} // namespace Mantid
const std::vector< double > & rhs
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
PolarizationCorrectionFredrikze : Algorithm to perform polarisation corrections on multi-period group...
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Helper class which provides the Collimation Length for SANS instruments.