Mantid
Loading...
Searching...
No Matches
VesuvioL1ThetaResolution.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"
13
14namespace Mantid {
15namespace Algorithms {
16
21class MANTID_ALGORITHMS_DLL VesuvioL1ThetaResolution final : public API::Algorithm {
22public:
23 const std::string name() const override;
24 int version() const override;
25 const std::string category() const override;
26 const std::string summary() const override;
27
28private:
29 void init() override;
30 void exec() override;
31 void loadInstrument();
32
33 void calculateDetector(const Mantid::Geometry::IDetector &detector, std::function<double()> &flatRandomVariateGen,
34 std::vector<double> &l1Values, std::vector<double> &thetaValues);
35 Mantid::API::MatrixWorkspace_sptr processDistribution(Mantid::API::MatrixWorkspace_sptr ws, const double binWidth);
36
42};
43
44} // namespace Algorithms
45} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Mantid::API::MatrixWorkspace_sptr m_l1DistributionWs
Mantid::API::MatrixWorkspace_sptr m_thetaDistributionWs
Mantid::API::MatrixWorkspace_sptr m_instWorkspace
Mantid::API::MatrixWorkspace_sptr m_outputWorkspace
Mantid::Geometry::IComponent_const_sptr m_sample
Interface class for detector objects.
Definition: IDetector.h:43
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< const IComponent > IComponent_const_sptr
Typdef of a shared pointer to a const IComponent.
Definition: IComponent.h:161
Helper class which provides the Collimation Length for SANS instruments.