Mantid
Loading...
Searching...
No Matches
PolarizerEfficiency.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2024 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
8#pragma once
9
10#include "MantidAPI/Algorithm.h"
13#include "MantidAlgorithms/DllConfig.h"
14#include <map>
15#include <string>
16
17namespace Mantid {
18namespace Algorithms {
19using namespace API;
20
21class MANTID_ALGORITHMS_DLL PolarizerEfficiency final : public API::Algorithm {
22public:
24 const std::string name() const override { return "PolarizerEfficiency"; }
26 const std::string summary() const override { return "Calculates the efficiency of a polarizer."; }
28 int version() const override { return 1; }
30 const std::string category() const override { return "SANS\\PolarizationCorrections"; }
32 std::map<std::string, std::string> validateInputs() override;
33
34private:
35 // Implement abstract Algorithm methods
36 void init() override;
37 void exec() override;
38 void calculatePolarizerEfficiency();
39 void calculateErrors(const MatrixWorkspace_sptr &t00Ws, const MatrixWorkspace_sptr &t01Ws,
40 const MatrixWorkspace_sptr &effCellWs, const MatrixWorkspace_sptr &effPolarizerWs);
41 void saveToFile(MatrixWorkspace_sptr const &workspace, std::string const &filePathStr);
42};
43
44} // namespace Algorithms
45} // namespace Mantid
IPeaksWorkspace_sptr workspace
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.