Mantid
Loading...
Searching...
No Matches
GeneralisedSecondDifference.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2008 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 {
41class MANTID_ALGORITHMS_DLL GeneralisedSecondDifference final : public API::Algorithm {
42public:
44 const std::string name() const override { return "GeneralisedSecondDifference"; }
46 const std::string summary() const override {
47 return "Computes the generalised second difference of a spectrum or "
48 "several spectra.";
49 }
50
52 int version() const override { return (1); }
54 const std::string category() const override { return "Arithmetic"; }
55
56private:
58 void init() override;
60 void exec() override;
62 void computePrefactors();
65 std::vector<double> m_Cij;
68 std::vector<double> m_Cij2;
70 int m_z = 0;
72 int m_m = 0;
74};
75
76} // Namespace Algorithms
77} // Namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Compute the generalised second difference of a spectrum or several spectra based on the method descri...
const std::string summary() const override
Summary of algorithms purpose.
const std::string category() const override
Algorithm's category for identification.
std::vector< double > m_Cij2
Vector that contains the prefactor coefficients Cij^2 in the range [-zm-1,zm+1].
std::vector< double > m_Cij
Vector that contains the prefactor coefficients Cij in the range [-zm-1,zm+1].
const std::string name() const override
Algorithm's name.
int version() const override
Algorithm's version.
Helper class which provides the Collimation Length for SANS instruments.