Mantid
Loading...
Searching...
No Matches
SumNeighbours.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
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "MantidAPI/Algorithm.h"
13#include "MantidAlgorithms/DllConfig.h"
14
15namespace Mantid {
16namespace Algorithms {
28class MANTID_ALGORITHMS_DLL SumNeighbours final : public API::Algorithm {
29public:
31 const std::string name() const override { return "SumNeighbours"; }
33 const std::string summary() const override {
34 return "Sum event lists from neighboring pixels in rectangular area "
35 "detectors - e.g. to reduce the signal-to-noise of individual "
36 "spectra. Each spectrum in the output workspace is a sum of a block "
37 "of SumX*SumY pixels. Only works on EventWorkspaces and for "
38 "instruments with RectangularDetector's.";
39 }
40
42 int version() const override { return (1); }
43 const std::vector<std::string> seeAlso() const override { return {"SumSpectra", "SumRowColumn"}; }
45 const std::string category() const override { return "Transforms\\Grouping"; }
46
47private:
48 // Overridden Algorithm methods
49 void init() override;
50 void exec() override;
51};
52
53} // namespace Algorithms
54} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Sums neighboring pixels on rectangular detectors.
Definition: SumNeighbours.h:28
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
Definition: SumNeighbours.h:45
const std::string summary() const override
Summary of algorithms purpose.
Definition: SumNeighbours.h:33
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Definition: SumNeighbours.h:43
int version() const override
Algorithm's version for identification overriding a virtual method.
Definition: SumNeighbours.h:42
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
Definition: SumNeighbours.h:31
Helper class which provides the Collimation Length for SANS instruments.