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
16namespace Mantid {
17namespace WorkflowAlgorithms {
22public:
24 const std::string name() const override { return "SANSBeamFinder"; }
26 const std::string summary() const override { return "Beam finder workflow algorithm for SANS instruments."; }
28 int version() const override { return (1); }
30 const std::string category() const override { return "Workflow\\SANS\\UsesPropertyManager"; }
31
32private:
34 void init() override;
36 void exec() override;
37 API::MatrixWorkspace_sptr loadBeamFinderFile(const std::string &beamCenterFile);
38 void maskEdges(const API::MatrixWorkspace_sptr &beamCenterWS, int high, int low, int left, int right,
39 const std::string &componentName = "detector1");
40
41 std::shared_ptr<Kernel::PropertyManager> m_reductionManager;
42 std::string m_output_message;
43};
44
45} // namespace WorkflowAlgorithms
46} // namespace Mantid
double left
Definition: LineProfile.cpp:80
double right
Definition: LineProfile.cpp:81
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition: System.h:53
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
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.