Mantid
Loading...
Searching...
No Matches
SaveFullprofResolution.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
10#include "MantidDataHandling/DllConfig.h"
12
13namespace Mantid {
14namespace DataHandling {
15
18class MANTID_DATAHANDLING_DLL SaveFullprofResolution final : public API::Algorithm {
19public:
22 const std::string name() const override { return "SaveFullprofResolution"; }
24 const std::string summary() const override {
25 return "Save a Table workspace, which contains peak profile parameters' "
26 "values, to a Fullprof resolution (.irf) file.";
27 }
28
30 int version() const override { return (1); }
31 const std::vector<std::string> seeAlso() const override { return {"SaveFocusedXYE"}; }
33 const std::string category() const override { return "Diffraction\\DataHandling;DataHandling\\Text"; }
34
35private:
37 void init() override;
39 void exec() override;
40
42
44 void processProperties();
45
47 std::string toProf10IrfString();
48
50 std::string toProf9IrfString();
51
53 void parseTableWorkspace();
54
56 bool has_key(std::map<std::string, double> profmap, const std::string &key);
57
59 std::map<std::string, double> m_profileParamMap;
60
63
65 std::string m_outIrfFilename;
66
69
72
75};
76
77} // namespace DataHandling
78} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
SaveFullprofResolution : TODO: DESCRIPTION.
std::string m_outIrfFilename
Output Irf file name.
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
const std::string category() const override
Algorithm's category for identification.
DataObjects::TableWorkspace_sptr m_profileTableWS
Input table workspace.
const std::string name() const override
Algorithm's name.
std::map< std::string, double > m_profileParamMap
Map containing the name of value of each parameter required by .irf file.
std::shared_ptr< TableWorkspace > TableWorkspace_sptr
shared pointer to Mantid::DataObjects::TableWorkspace
Helper class which provides the Collimation Length for SANS instruments.