Mantid
Loading...
Searching...
No Matches
FlipperEfficiency.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#pragma once
8
11#include "MantidAlgorithms/DllConfig.h"
12
13namespace Mantid::Algorithms {
14
15class MANTID_ALGORITHMS_DLL FlipperEfficiency : public API::Algorithm {
16public:
18 std::string const name() const override { return "FlipperEfficiency"; }
19
21 std::string const summary() const override;
22
24 std::string const category() const override { return "SANS\\PolarizationCorrections"; }
25
27 int version() const override { return 1; }
28
29private:
31 void init() override;
32
34 void exec() override;
35
37 std::map<std::string, std::string> validateInputs() override;
38
40 void saveToFile(API::MatrixWorkspace_sptr const &workspace, std::string const &filePathStr);
41
43 API::MatrixWorkspace_sptr calculateEfficiency(API::WorkspaceGroup_sptr const &groupWs,
44 bool const isFlipperAnalyser = false);
45};
46} // namespace Mantid::Algorithms
IPeaksWorkspace_sptr workspace
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
int version() const override
The version number of the algorithm.
std::string const name() const override
The string identifier for the algorithm.
std::string const category() const override
The category of the 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