Mantid
Loading...
Searching...
No Matches
DirectILLTubeBackground.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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
12namespace Mantid {
13namespace Geometry {
14class Instrument;
15}
16namespace Algorithms {
17
21class MANTID_ALGORITHMS_DLL DirectILLTubeBackground final : public API::Algorithm {
22public:
23 const std::string name() const override;
24 int version() const override;
25 const std::string category() const override;
26 const std::vector<std::string> seeAlso() const override;
27 const std::string summary() const override;
28
29private:
30 void init() override;
31 std::map<std::string, std::string> validateInputs() override;
32 void exec() override;
34 std::vector<std::string> components(Geometry::Instrument const &instrument);
35 API::MatrixWorkspace_sptr cropToComponent(API::MatrixWorkspace_sptr &ws, std::string const &componentName);
36 API::MatrixWorkspace_sptr fitComponentBackground(API::MatrixWorkspace_sptr &ws, std::vector<double> const &xRanges);
37 API::MatrixWorkspace_sptr peakExcludingAverage(const API::MatrixWorkspace &ws, std::vector<double> const &peakStarts,
38 std::vector<double> const &peakEnds);
39};
40
41} // namespace Algorithms
42} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Base MatrixWorkspace Abstract Class.
DirectILLTubeBackground : Fits polynomial backgrounds over the pixels of position sensitive tubes.
Base Instrument Class.
Definition: Instrument.h:47
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.