Mantid
Loading...
Searching...
No Matches
NormaliseToUnity.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 {
42class MANTID_ALGORITHMS_DLL NormaliseToUnity final : public API::Algorithm {
43public:
45 const std::string name() const override { return "NormaliseToUnity"; }
47 const std::string summary() const override {
48 return "NormaliseToUnity takes a 2D workspace or an EventWorkspace as "
49 "input and normalises it to 1. Optionally, the range summed can be "
50 "restricted in either dimension.";
51 }
52
54 int version() const override { return (1); }
55 const std::vector<std::string> seeAlso() const override { return {"Divide"}; }
57 const std::string category() const override { return "CorrectionFunctions\\NormalisationCorrections"; }
58
59private:
60 // Overridden Algorithm methods
61 void init() override;
62 void exec() override;
63};
64
65} // namespace Algorithms
66} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Takes a workspace as input and normalises it to 1.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
int version() const override
Algorithm's version for identification overriding a virtual method.
Helper class which provides the Collimation Length for SANS instruments.