Mantid
Loading...
Searching...
No Matches
SANSBeamFinder.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "MantidAPI/Algorithm.h"
15#include "MantidWorkflowAlgorithms/DllConfig.h"
16
17namespace Mantid {
18namespace WorkflowAlgorithms {
22class MANTID_WORKFLOWALGORITHMS_DLL SANSBeamFinder final : public API::Algorithm {
23public:
25 const std::string name() const override { return "SANSBeamFinder"; }
27 const std::string summary() const override { return "Beam finder workflow algorithm for SANS instruments."; }
29 int version() const override { return (1); }
31 const std::string category() const override { return "Workflow\\SANS\\UsesPropertyManager"; }
32
33private:
35 void init() override;
37 void exec() override;
38 API::MatrixWorkspace_sptr loadBeamFinderFile(const std::string &beamCenterFile);
39 void maskEdges(const API::MatrixWorkspace_sptr &beamCenterWS, int high, int low, int left, int right,
40 const std::string &componentName = "detector1");
41
42 std::shared_ptr<Kernel::PropertyManager> m_reductionManager;
43 std::string m_output_message;
44};
45
46} // namespace WorkflowAlgorithms
47} // namespace Mantid
double left
double right
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
Beam Finder for SANS instruments.
const std::string summary() const override
Summary of algorithms purpose.
const std::string category() const override
Algorithm's category for identification.
int version() const override
Algorithm's version.
const std::string name() const override
Algorithm's name.
std::shared_ptr< Kernel::PropertyManager > m_reductionManager
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.