Mantid
Loading...
Searching...
No Matches
HFIRDarkCurrentSubtraction.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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"
14#include "MantidWorkflowAlgorithms/DllConfig.h"
15
16namespace Mantid {
17namespace WorkflowAlgorithms {
41class MANTID_WORKFLOWALGORITHMS_DLL HFIRDarkCurrentSubtraction final : public API::Algorithm {
42public:
44 const std::string name() const override { return "HFIRDarkCurrentSubtraction"; }
46 const std::string summary() const override { return "Perform HFIR SANS dark current subtraction."; }
48 int version() const override { return (1); }
50 const std::string category() const override { return "Workflow\\SANS\\UsesPropertyManager"; }
51
52private:
54 void init() override;
56 void exec() override;
57 double getCountingTime(const API::MatrixWorkspace_sptr &inputWS) const;
58
59 static const int DEFAULT_MONITOR_ID = 0;
60 static const int DEFAULT_TIMER_ID = 1;
61};
62
63} // namespace WorkflowAlgorithms
64} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
const std::string name() const override
Algorithm's name.
const std::string category() const override
Algorithm's category for identification.
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.