Mantid
Loading...
Searching...
No Matches
CalculatePlaczek.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2021 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 Algorithms {
14
17class MANTID_ALGORITHMS_DLL CalculatePlaczek final : public API::Algorithm {
18public:
19 const std::string name() const override;
20 int version() const override;
21 // Category for quick search and doc page
22 const std::string category() const override;
23 // Documentation
24 const std::string summary() const override;
25 // seeAlso (documentation purpose)
26 const std::vector<std::string> seeAlso() const override;
27
28private:
29 void init() override;
30 void exec() override;
31
32 // validator for input parameters
33 std::map<std::string, std::string> validateInputs() override;
34
35 double getPackingFraction(const API::MatrixWorkspace_const_sptr &ws);
36
37 double getSampleTemperature();
38
39 std::vector<double> getFluxCoefficient1();
40 std::vector<double> getFluxCoefficient2();
41 std::vector<double> getEfficiencyCoefficient1();
42 std::vector<double> getEfficiencyCoefficient2();
43};
44
45} // namespace Algorithms
46} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
CalculatePlaczek : Placzek 1st&2nd order correction for inelastic scattering.
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.