Mantid
Loading...
Searching...
No Matches
EstimateResolutionDiffraction.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2014 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
11#include "MantidAlgorithms/DllConfig.h"
12
13namespace Mantid {
14namespace Algorithms {
17class MANTID_ALGORITHMS_DLL EstimateResolutionDiffraction final : public API::Algorithm {
18public:
20 const std::string name() const override;
21
23 const std::string alias() const override;
24
26 const std::string summary() const override;
27
29 int version() const override;
30 const std::vector<std::string> seeAlso() const override { return {"EstimateDivergence"}; }
31
33 const std::string category() const override;
34
35private:
37 void init() override;
39 void exec() override;
40
42 double getWavelength();
43
45 void processAlgProperties();
46
48 void retrieveInstrumentParameters();
49
51 void estimateDetectorResolution();
52
57
67
70
72 double m_centreVelocity = 0.0;
73
75 double m_deltaT = 0.0;
76};
77
78} // namespace Algorithms
79} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
EstimateResolutionDiffraction : TODO: DESCRIPTION.
API::MatrixWorkspace_sptr m_resTof
workspace holding the term for just the time-of-flight portion of the resolution
API::MatrixWorkspace_sptr m_resAngle
workspace holding the term for just the angular/solid angle portion of the resolution
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
API::MatrixWorkspace_sptr m_outputWS
Output workspace.
API::MatrixWorkspace_sptr m_inputWS
Input workspace.
API::MatrixWorkspace_sptr m_divergenceWS
Workspace with custom divergence term.
API::MatrixWorkspace_sptr m_resPathLength
workspace holding the term for just the flight path portion of the resolution
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.