Skip to content
Snippets Groups Projects
CreatePolarizationEfficienciesBase.h 1.62 KiB
Newer Older
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2014 ISIS Rutherford Appleton Laboratory UKRI,
//   NScD Oak Ridge National Laboratory, European Spallation Source,
//   Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +

#include "MantidAPI/Algorithm.h"
#include "MantidAPI/MatrixWorkspace_fwd.h"
#include "MantidKernel/System.h"
#include <boost/optional.hpp>
#include <boost/shared_ptr.hpp>
namespace DataHandling {
/** CreatePolarizationEfficienciesBase - the base class for algorithms
 that create polarization efficiency workspaces:

   - CreatePolarizationEfficiencies
   - JoinISISPolarizationEfficiencies
   - LoadISISPolarizationEfficiencies
class DLLExport CreatePolarizationEfficienciesBase : public API::Algorithm {
public:
  const std::string category() const override;

protected:
  void initOutputWorkspace();
  std::vector<std::string>
  getNonDefaultProperties(std::vector<std::string> const &props) const;

  /// Names of the efficiency properties
  static std::string const Pp;
  static std::string const Ap;
  static std::string const Rho;
  static std::string const Alpha;
  static std::string const P1;
  static std::string const P2;
  static std::string const F1;
  static std::string const F2;
  /// Create the output workspace with efficiencies
  /// @param labels :: Names of the efficiencies to create
  virtual API::MatrixWorkspace_sptr
  createEfficiencies(std::vector<std::string> const &labels) = 0;
} // namespace DataHandling