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
11#include "MantidAlgorithms/DllConfig.h"
12#include <memory>
13#include <optional>
14
15namespace Mantid {
16namespace API {
17class WorkspaceGroup;
18class MatrixWorkspace;
19} // namespace API
20namespace Algorithms {
21
28class MANTID_ALGORITHMS_DLL PolarizationCorrectionFredrikze final : public API::Algorithm {
29public:
30 const std::string name() const override;
31 int version() const override;
32 const std::vector<std::string> seeAlso() const override { return {"PolarizationEfficiencyCor"}; }
33 const std::string category() const override;
34 const std::string summary() const override;
35
36private:
37 void init() override;
38 void exec() override;
39 std::shared_ptr<Mantid::API::MatrixWorkspace> getEfficiencyWorkspace(const std::string &label);
40 std::shared_ptr<Mantid::API::WorkspaceGroup> execPA(const std::shared_ptr<Mantid::API::WorkspaceGroup> &inWS,
41 const std::vector<std::string> &inputSpinStates,
42 const std::vector<std::string> &outputSpinStates,
43 const bool addSpinStateLog);
44
45 std::shared_ptr<Mantid::API::WorkspaceGroup> execPNR(const std::shared_ptr<Mantid::API::WorkspaceGroup> &inWS,
46 const std::vector<std::string> &inputSpinStates,
47 const std::vector<std::string> &outputSpinStates,
48 const bool addSpinStateLog);
49 std::shared_ptr<Mantid::API::MatrixWorkspace> add(const std::shared_ptr<Mantid::API::MatrixWorkspace> &lhsWS,
50 const double &rhs);
51 std::shared_ptr<Mantid::API::MatrixWorkspace> multiply(const std::shared_ptr<Mantid::API::MatrixWorkspace> &lhsWS,
52 const double &rhs);
53};
54
55} // namespace Algorithms
56} // namespace Mantid
std::string name
Definition Run.cpp:60
const std::vector< double > & rhs
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
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.