Mantid
Loading...
Searching...
No Matches
SANSCollimationLengthEstimator.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 "MantidAlgorithms/DllConfig.h"
14namespace Mantid {
15namespace Algorithms {
16class MANTID_ALGORITHMS_DLL SANSCollimationLengthEstimator {
17public:
18 double provideCollimationLength(const Mantid::API::MatrixWorkspace_sptr &workspace);
19
20private:
21 double getCollimationLengthWithGuides(const Mantid::API::MatrixWorkspace_sptr &inOutWS, const double L1,
22 const double collimationLengthCorrection) const;
23 double getGuideValue(Mantid::Kernel::Property *prop) const;
24};
25} // namespace Algorithms
26} // namespace Mantid
IPeaksWorkspace_sptr workspace
Definition: IndexPeaks.cpp:114
Base class for properties.
Definition: Property.h:94
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.