Mantid
Loading...
Searching...
No Matches
TimeAtSampleStrategy.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
9#include "MantidAlgorithms/DllConfig.h"
10#include "MantidKernel/System.h"
11
12namespace Mantid {
13namespace Algorithms {
14
20struct Correction {
21 Correction(double tOffset, double tFactor) : offset(tOffset), factor(tFactor) {}
22 double offset;
23 double factor;
24};
25
31class MANTID_ALGORITHMS_DLL TimeAtSampleStrategy {
32public:
33 virtual Correction calculate(const size_t &workspace_index) const = 0;
34 virtual ~TimeAtSampleStrategy() = default;
35};
36
37} // namespace Algorithms
38} // namespace Mantid
TimeAtSampleStrategy : Strategy (technique dependent) for determining Time At Sample.
virtual Correction calculate(const size_t &workspace_index) const =0
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...
Correction(double tOffset, double tFactor)