Mantid
Loading...
Searching...
No Matches
TimeAtSampleStrategyIndirect.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 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 <memory>
11
12namespace Mantid {
13
14namespace API {
15class MatrixWorkspace;
16class SpectrumInfo;
17} // namespace API
18
19namespace Algorithms {
20
24class MANTID_ALGORITHMS_DLL TimeAtSampleStrategyIndirect : public TimeAtSampleStrategy {
25public:
26 TimeAtSampleStrategyIndirect(std::shared_ptr<const Mantid::API::MatrixWorkspace> ws);
27 Correction calculate(const size_t &workspace_index) const override;
28
29private:
31 std::shared_ptr<const Mantid::API::MatrixWorkspace> m_ws;
33};
34
35} // namespace Algorithms
36} // namespace Mantid
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
Definition: SpectrumInfo.h:53
TimeAtSampleStrategyIndirect : Determine Time At Sample for an indirect instrument setup.
std::shared_ptr< const Mantid::API::MatrixWorkspace > m_ws
Workspace to operate on.
TimeAtSampleStrategy : Strategy (technique dependent) for determining Time At Sample.
Helper class which provides the Collimation Length for SANS instruments.
The Correction struct to be applied as factor * TOF + offset offset:: TOF offset in unit of TOF facto...