Mantid
Loading...
Searching...
No Matches
TOFSANSResolution.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "MantidAPI/Algorithm.h"
14#include "MantidAlgorithms/DllConfig.h"
15
16namespace Mantid {
17namespace Algorithms {
42class MANTID_ALGORITHMS_DLL TOFSANSResolution : public API::Algorithm {
43public:
47 virtual ~TOFSANSResolution() = default;
49 const std::string name() const override { return "TOFSANSResolution"; }
51 const std::string summary() const override { return "Calculate the Q resolution for TOF SANS data."; }
52
54 int version() const override { return (1); }
55 const std::vector<std::string> seeAlso() const override { return {"TOFSANSResolutionByPixel"}; }
57 const std::string category() const override { return "SANS"; }
58
59private:
61 void init() override;
63 void exec() override;
65 virtual double getTOFResolution(double wl);
67 virtual double getEffectiveXPixelSize();
69 virtual double getEffectiveYPixelSize();
72};
73
74} // namespace Algorithms
75} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Computes the resolution on TOF SANS data Required Properties:
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
double m_wl_resolution
Wavelength resolution (constant for all wavelengths)
int version() const override
Algorithm's version.
virtual ~TOFSANSResolution()=default
Default destructor.
const std::string category() const override
Algorithm's category for identification.
const std::string name() const override
Algorithm's name.
const std::string summary() const override
Summary of algorithms purpose.
Helper class which provides the Collimation Length for SANS instruments.