Mantid
Loading...
Searching...
No Matches
NormaliseByDetector.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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"
13#include <memory>
14
15namespace Mantid {
16
17namespace API {
19class MatrixWorkspace;
20class Progress;
21} // namespace API
22namespace Algorithms {
31class MANTID_ALGORITHMS_DLL NormaliseByDetector final : public API::Algorithm {
32public:
33 NormaliseByDetector(bool parallelExecution = true);
34
35 const std::string name() const override;
37 const std::string summary() const override { return "Normalise the input workspace by the detector efficiency."; }
38
39 int version() const override;
40 const std::vector<std::string> seeAlso() const override { return {"Divide"}; }
41 const std::string category() const override;
42
43private:
49 tryParseFunctionParameter(const std::shared_ptr<const Mantid::Geometry::Parameter> &parameter,
50 const std::string &detectorName);
52 std::shared_ptr<Mantid::API::MatrixWorkspace>
53 processHistograms(const std::shared_ptr<Mantid::API::MatrixWorkspace> &inWS);
55 void processHistogram(size_t wsIndex, const std::shared_ptr<const Mantid::API::MatrixWorkspace> &inWS,
56 const std::shared_ptr<Mantid::API::MatrixWorkspace> &denominatorWS,
58
59 void init() override;
60 void exec() override;
61};
62
63} // namespace Algorithms
64} // namespace Mantid
std::string name
Definition Run.cpp:60
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
Helper class for reporting progress from algorithms.
Definition Progress.h:25
NormaliseByDetector : Normalises a workspace with respect to the detector efficiency function stored ...
const std::string summary() const override
Summary of algorithms purpose.
const bool m_parallelExecution
Flag to indicate that the histograms should be processed in parallel.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
Store information about a fitting parameter such as its value if it is constrained or tied.
Helper class which provides the Collimation Length for SANS instruments.