Mantid
Loading...
Searching...
No Matches
MaxMin.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 {
43class MANTID_ALGORITHMS_DLL MaxMin final : public API::Algorithm {
44public:
46 const std::string name() const override { return "MaxMin"; }
48 const std::string summary() const override {
49 return "Takes a 2D workspace as input and find the maximum (minimum) in "
50 "each 1D spectrum.";
51 }
53 int version() const override { return (1); }
54 const std::vector<std::string> seeAlso() const override { return {"Max", "Min"}; }
56 const std::string category() const override { return "Arithmetic"; }
57
58private:
59 // Overridden Algorithm methods
60 void init() override;
61 void exec() override;
62};
63
64} // namespace Algorithms
65} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Takes a 2D workspace as input and find the maximum(minimum) in each 1D spectrum.
Definition: MaxMin.h:43
int version() const override
Algorithm's version for identification overriding a virtual method.
Definition: MaxMin.h:53
const std::string summary() const override
Summary of algorithms purpose.
Definition: MaxMin.h:48
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Definition: MaxMin.h:54
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
Definition: MaxMin.h:46
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
Definition: MaxMin.h:56
Helper class which provides the Collimation Length for SANS instruments.