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
35 std::map<std::string, std::string> validateInputs() override;
36
37private:
39 void init() override;
41 void exec() override;
42
44 double getWavelength();
45
47 void processAlgProperties();
48
50 void calcCentreVelocity();
51
53 void estimateDetectorResolution();
54
59
69
72
74 double m_centreVelocity = 0.0;
75
77 double m_deltaT = 0.0;
79 double m_deltaTOverTOF = 0.0;
80 double m_sourceDeltaLMetersSq = 0.;
81 double m_sourceDeltaThetaRadiansSq = 0.;
82};
83
84} // namespace Algorithms
85} // namespace Mantid
std::string name
Definition Run.cpp:60
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
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_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.