Mantid
Loading...
Searching...
No Matches
CreateFloodWorkspace.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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
20class MANTID_ALGORITHMS_DLL CreateFloodWorkspace final : public API::Algorithm {
21public:
22 const std::string name() const override;
23 const std::string summary() const override;
24 int version() const override;
25 const std::vector<std::string> seeAlso() const override;
26 const std::string category() const override;
27
28private:
29 void init() override;
30 void exec() override;
31 API::MatrixWorkspace_sptr getInputWorkspace();
32 std::string getBackgroundFunction();
35 bool shouldRemoveBackground();
36 void collectExcludedSpectra();
37 bool isExcludedSpectrum(double spec) const;
40
41 std::vector<double> m_excludedSpectra;
42};
43
44} // namespace Algorithms
45} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Algorithm to create a flood correction workspace for reflectometry data reduction.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.