Mantid
Loading...
Searching...
No Matches
GetEiMonDet3.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2019 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
12#include "MantidAlgorithms/DllConfig.h"
13
14namespace Mantid {
15namespace Indexing {
16class SpectrumIndexSet;
17}
18namespace Algorithms {
19
23class MANTID_ALGORITHMS_DLL GetEiMonDet3 final : public API::Algorithm {
24public:
25 const std::string name() const override;
26 const std::string summary() const override;
27 int version() const override;
28 const std::vector<std::string> seeAlso() const override;
29 const std::string category() const override;
30
31private:
32 void init() override;
33 void exec() override;
34 double computeTOF(const API::MatrixWorkspace &detectorWs, const double detectorEPP, const double monitorEPP,
35 const double minTOF);
36 API::MatrixWorkspace_sptr groupSpectra(API::MatrixWorkspace_sptr &ws, const std::vector<size_t> &wsIndices);
37 double minimumTOF(const API::MatrixWorkspace &ws, const double sampleToDetectorDistance);
38 double monitorPeakPosition(const size_t monitorIndex);
39 double peakPosition(API::MatrixWorkspace_sptr &ws);
40};
41
42} // namespace Algorithms
43} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Base MatrixWorkspace Abstract Class.
Estimates the incident neutron energy from the time of flight between a monitor and a set of detector...
Definition: GetEiMonDet3.h:23
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.