Mantid
Loading...
Searching...
No Matches
SumRowColumn.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2009 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 {
49class MANTID_ALGORITHMS_DLL SumRowColumn final : public API::Algorithm {
50public:
52 const std::string name() const override { return "SumRowColumn"; }
54 const std::string summary() const override {
55 return "SANS-specific algorithm which gives a single spectrum containing "
56 "the total counts in either each row or each column of pixels in a "
57 "square LOQ or SANS2D detector bank.";
58 }
59
61 int version() const override { return (1); }
62 const std::vector<std::string> seeAlso() const override { return {"SumSpectra", "SumNeighbours"}; }
64 const std::string category() const override { return "SANS;Transforms\\Grouping"; }
65
66private:
68 void init() override;
70 void exec() override;
71
72 API::MatrixWorkspace_sptr integrateWorkspace();
73};
74
75} // namespace Algorithms
76} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
This algorithm is the equivalent of the COLETTE "DISPLAY H/V" command.
Definition: SumRowColumn.h:49
int version() const override
Algorithm's version.
Definition: SumRowColumn.h:61
const std::string category() const override
Algorithm's category for identification.
Definition: SumRowColumn.h:64
const std::string summary() const override
Summary of algorithms purpose.
Definition: SumRowColumn.h:54
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Definition: SumRowColumn.h:62
const std::string name() const override
Algorithm's name.
Definition: SumRowColumn.h:52
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.