Mantid
Loading...
Searching...
No Matches
CalculatePlaczekSelfScattering.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2019 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
19class MANTID_ALGORITHMS_DLL CalculatePlaczekSelfScattering final : public API::Algorithm {
20public:
23 virtual const std::string name() const override { return "CalculatePlaczekSelfScattering"; }
24 virtual int version() const override { return (1); }
25 const std::vector<std::string> seeAlso() const override { return {"FitIncidentSpectrum"}; }
26 const std::string category() const override { return "CorrectionFunctions"; };
27 const std::string summary() const override {
28 return "Calculates the Placzek self scattering correction of an incident "
29 "spectrum";
30 };
31 std::map<std::string, std::string> validateInputs() override;
32
33private:
34 void init() override;
35 void exec() override;
36 double getPackingFraction(const API::MatrixWorkspace_const_sptr &ws);
37};
38
39} // namespace Algorithms
40} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
CalculatePlaczekSelfScattering : This algorithm calculates a correction for an incident spectrum defr...
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
virtual const std::string name() const override
function to return a name of the algorithm, must be overridden in all algorithms
const std::string category() const override
function to return a category of the algorithm.
const std::string summary() const override
function returns a summary message that will be displayed in the default GUI, and in the help.
virtual int version() const override
function to return a version of the algorithm, must be overridden in all algorithms
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
Helper class which provides the Collimation Length for SANS instruments.