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:
48 const Mantid::Geometry::FitParameter tryParseFunctionParameter(const Mantid::Geometry::Parameter_sptr &parameter,
49 const Geometry::IDetector &det);
51 std::shared_ptr<Mantid::API::MatrixWorkspace>
52 processHistograms(const std::shared_ptr<Mantid::API::MatrixWorkspace> &inWS);
54 void processHistogram(size_t wsIndex, const std::shared_ptr<const Mantid::API::MatrixWorkspace> &inWS,
55 const std::shared_ptr<Mantid::API::MatrixWorkspace> &denominatorWS,
57
58 void init() override;
59 void exec() override;
60};
61
62} // namespace Algorithms
63} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
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.
Definition: FitParameter.h:26
Interface class for detector objects.
Definition: IDetector.h:43
std::shared_ptr< Parameter > Parameter_sptr
Typedef for the shared pointer.
Definition: Parameter.h:195
Helper class which provides the Collimation Length for SANS instruments.