Mantid
Loading...
Searching...
No Matches
PDFFourierTransform.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
11#include "MantidAlgorithms/DllConfig.h"
12
13namespace Mantid {
14namespace Algorithms {
15
18class MANTID_ALGORITHMS_DLL PDFFourierTransform final : public API::Algorithm {
19public:
21 const std::string name() const override;
23 const std::string summary() const override {
24 return "Fourier transform from S(Q) to G(r), which is paired distribution "
25 "function (PDF). G(r) will be stored in another named workspace.";
26 }
27
29 int version() const override;
30 const std::vector<std::string> seeAlso() const override { return {"FFT"}; }
32 const std::string category() const override;
34 std::map<std::string, std::string> validateInputs() override;
35
36private:
38 void init() override;
40 void exec() override;
41
42 size_t determineQminIndex(const std::vector<double> &Q, const std::vector<double> &FofQ);
43 size_t determineQmaxIndex(const std::vector<double> &Q, const std::vector<double> &FofQ);
44 double determineRho0();
45};
46
47} // namespace Algorithms
48} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
PDFFourierTransform : TODO: DESCRIPTION.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string summary() const override
Summary of algorithms purpose.
Helper class which provides the Collimation Length for SANS instruments.