Mantid
Loading...
Searching...
No Matches
NormaliseByCurrent.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2008 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
10#include "MantidAlgorithms/DllConfig.h"
11#include <memory>
12namespace Mantid {
13namespace API {
14// Forward declare
15class MatrixWorkspace;
16} // namespace API
17namespace Algorithms {
35class MANTID_ALGORITHMS_DLL NormaliseByCurrent : public API::DistributedAlgorithm {
36public:
38 const std::string name() const override { return "NormaliseByCurrent"; }
40 const std::string summary() const override { return "Normalises a workspace by the proton charge."; }
41
43 int version() const override { return 1; }
44 const std::vector<std::string> seeAlso() const override { return {"Divide"}; }
46 const std::string category() const override { return "CorrectionFunctions\\NormalisationCorrections"; }
47
48private:
49 // Overridden Algorithm methods
50 void init() override;
51 void exec() override;
52 // Extract the charge value from the logs.
53 double extractCharge(const std::shared_ptr<Mantid::API::MatrixWorkspace> &inputWS, const bool integratePCharge) const;
54};
55
56} // namespace Algorithms
57} // namespace Mantid
Base class for algorithms that treat all spectra independently, i.e., we can trivially parallelize ov...
Normalises a workspace according to the good proton charge figure taken from the raw file (and stored...
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.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
Helper class which provides the Collimation Length for SANS instruments.