Mantid
Loading...
Searching...
No Matches
SaveDspacemap.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
10#include "MantidDataHandling/DllConfig.h"
12
13namespace Mantid {
14namespace DataHandling {
15
21class MANTID_DATAHANDLING_DLL SaveDspacemap final : public API::Algorithm {
22public:
24 const std::string name() const override { return "SaveDspacemap"; };
26 const std::string summary() const override {
27 return "Saves an OffsetsWorkspace into a POWGEN-format binary dspace map "
28 "file.";
29 }
30
32 int version() const override { return 1; };
34 const std::string category() const override { return "DataHandling\\Text"; }
35
36private:
38 void init() override;
40 void exec() override;
41
42 void CalculateDspaceFromCal(const Mantid::DataObjects::OffsetsWorkspace_sptr &offsetsWS,
43 const std::string &DFileName);
44};
45
46} // namespace DataHandling
47} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Saves an OffsetsWorkspace into a POWGEN-format binary dspace map file.
Definition: SaveDspacemap.h:21
const std::string category() const override
Algorithm's category for identification.
Definition: SaveDspacemap.h:34
int version() const override
Algorithm's version for identification.
Definition: SaveDspacemap.h:32
const std::string name() const override
Algorithm's name for identification.
Definition: SaveDspacemap.h:24
const std::string summary() const override
Summary of algorithms purpose.
Definition: SaveDspacemap.h:26
std::shared_ptr< OffsetsWorkspace > OffsetsWorkspace_sptr
shared pointer to the OffsetsWorkspace class
Helper class which provides the Collimation Length for SANS instruments.