Mantid
Loading...
Searching...
No Matches
DetermineSpinStateOrder.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2025 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
11#include "MantidAlgorithms/DllConfig.h"
13
14namespace Mantid {
15namespace Algorithms {
16
20class MANTID_ALGORITHMS_DLL DetermineSpinStateOrder : public API::Algorithm {
21public:
22 const std::string name() const override;
23 int version() const override;
24 const std::string category() const override;
25 const std::string summary() const override;
26 const std::vector<std::string> seeAlso() const override;
27 std::map<std::string, std::string> validateInputs() override;
28
29protected:
30 double averageTransmission(Mantid::API::WorkspaceGroup_const_sptr const &wsGroup) const;
31
32private:
33 void init() override;
34 void exec() override;
35
36 std::string m_spinFlipperLogName = "";
37 double m_rfStateCondition = EMPTY_DBL();
38};
39
40} // namespace Algorithms
41} // namespace Mantid
std::string name
Definition Run.cpp:60
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
DetermineSpinStateOrder : Takes a workspace group of Polarised SANS run periods and returns a string ...
std::shared_ptr< const WorkspaceGroup > WorkspaceGroup_const_sptr
shared pointer to Mantid::API::WorkspaceGroup, pointer to const version
Helper class which provides the Collimation Length for SANS instruments.
constexpr double EMPTY_DBL() noexcept
Returns what we consider an "empty" double within a property.
Definition EmptyValues.h:42