Mantid
Loading...
Searching...
No Matches
Min.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 {
41class MANTID_ALGORITHMS_DLL Min final : public API::Algorithm {
42public:
44 const std::string name() const override { return "Min"; }
46 int version() const override { return (1); }
47 const std::vector<std::string> seeAlso() const override { return {"Max", "MaxMin"}; }
49 const std::string category() const override { return "Arithmetic"; }
51 const std::string summary() const override {
52 return "Takes a 2D workspace as input and find the minimum in each 1D "
53 "spectrum. "
54 "The algorithm creates a new 1D workspace containing all minima as "
55 "well as their X boundaries and error. "
56 "This is used in particular for single crystal as a quick way to "
57 "find strong peaks.";
58 }
59
60private:
61 // Overridden Algorithm methods
62 void init() override;
63 void exec() override;
64};
65
66} // namespace Algorithms
67} // 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 minimum in each 1D spectrum.
Definition: Min.h:41
int version() const override
Algorithm's version for identification overriding a virtual method.
Definition: Min.h:46
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
Definition: Min.h:49
const std::string summary() const override
Summary of algorithms purpose.
Definition: Min.h:51
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Definition: Min.h:47
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
Definition: Min.h:44
Helper class which provides the Collimation Length for SANS instruments.