Mantid
Loading...
Searching...
No Matches
PoissonErrors.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2007 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
11namespace Mantid {
12namespace Algorithms {
32class MANTID_ALGORITHMS_DLL PoissonErrors : public BinaryOperation {
33public:
35 const std::string name() const override { return "PoissonErrors"; }
37 const std::string summary() const override {
38 return "Calculates the gaussian approxiamtion of Poisson error based on a "
39 "matching workspace containing the original counts.";
40 }
41
43 int version() const override { return (1); }
45 const std::string category() const override { return "SANS;Arithmetic\\Errors"; }
46
47private:
48 // Overridden BinaryOperation methods
49 void performBinaryOperation(const HistogramData::Histogram &lhs, const HistogramData::Histogram &rhs,
50 HistogramData::HistogramY &YOut, HistogramData::HistogramE &EOut) override;
51 void performBinaryOperation(const HistogramData::Histogram &lhs, const double rhsY, const double rhsE,
52 HistogramData::HistogramY &YOut, HistogramData::HistogramE &EOut) override;
53 std::string checkSizeCompatibility(const API::MatrixWorkspace_const_sptr lhs,
54 const API::MatrixWorkspace_const_sptr rhs) const override;
55
57 std::string inputPropName1() const override { return "InputWorkspace"; }
59 std::string inputPropName2() const override { return "CountsWorkspace"; }
61 std::string outputPropName() const override { return "OutputWorkspace"; }
62};
63
64} // namespace Algorithms
65} // namespace Mantid
const std::vector< double > & rhs
BinaryOperation supports the implementation of a binary operation on two input workspaces.
Takes a Data workspace and an original counts workspace input and updates the error values in the dat...
Definition: PoissonErrors.h:32
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
Definition: PoissonErrors.h:45
std::string inputPropName1() const override
The name of the first input workspace property for BinaryOperation.
Definition: PoissonErrors.h:57
const std::string summary() const override
Summary of algorithms purpose.
Definition: PoissonErrors.h:37
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
Definition: PoissonErrors.h:35
std::string outputPropName() const override
The name of the output workspace property for BinaryOperation.
Definition: PoissonErrors.h:61
std::string inputPropName2() const override
The name of the second input workspace property for BinaryOperation.
Definition: PoissonErrors.h:59
int version() const override
Algorithm's version for identification overriding a virtual method.
Definition: PoissonErrors.h:43
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.