Mantid
Loading...
Searching...
No Matches
RemoveLowResTOF.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
10#include "MantidAlgorithms/DllConfig.h"
13
14namespace Mantid {
15
16namespace Algorithms {
17class MANTID_ALGORITHMS_DLL RemoveLowResTOF : public API::DistributedAlgorithm {
18public:
20 const std::string name() const override;
21 int version() const override;
22 const std::string category() const override;
24 const std::string summary() const override { return "Removes low resolution Time of Flight data."; }
25
26private:
27 void init() override;
28 void exec() override;
29 void execEvent(const API::SpectrumInfo &spectrumInfo);
30
35 double calcTofMin(const std::size_t, const API::SpectrumInfo &spectrumInfo);
36 void getTminData(const bool);
38 double m_DIFCref;
40 double m_K;
42 double m_Tmin;
46 std::size_t m_numberOfSpectra;
48 std::unique_ptr<API::Progress> m_progress = nullptr;
51};
52
53} // namespace Algorithms
54} // namespace Mantid
Base class for algorithms that treat all spectra independently, i.e., we can trivially parallelize ov...
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
Definition: SpectrumInfo.h:53
API::MatrixWorkspace_const_sptr m_inputWS
Pointer to the input workspace.
const std::string summary() const override
Summary of algorithms purpose.
double m_wavelengthMin
The minimum wavelength accessible in the frame.
double m_DIFCref
The reference value for DIFC to filter with.
std::size_t m_numberOfSpectra
The number of spectra in the workspace.
double m_Tmin
The start of the time-of-flight frame.
DataObjects::EventWorkspace_const_sptr m_inputEvWS
Pointer to the input event workspace.
double m_K
Mystery variable that I'm not sure what it is for.
bool m_outputLowResTOF
Flag to generate low resolution TOF workspace.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< const EventWorkspace > EventWorkspace_const_sptr
shared pointer to a const Workspace2D
Helper class which provides the Collimation Length for SANS instruments.