Mantid
Loading...
Searching...
No Matches
LoadIsawUB.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 "MantidCrystal/DllConfig.h"
11#include "MantidKernel/Matrix.h"
12
13namespace Mantid {
14namespace Crystal {
15
23class MANTID_CRYSTAL_DLL LoadIsawUB final : public API::Algorithm {
24public:
26 const std::string name() const override { return "LoadIsawUB"; };
28 const std::string summary() const override {
29 return "Load an ISAW-style ASCII UB matrix and lattice parameters file, "
30 "and place its information into a workspace.";
31 }
32
34 int version() const override { return 1; };
35 const std::vector<std::string> seeAlso() const override { return {"SaveIsawUB"}; }
37 const std::string category() const override { return "Crystal\\DataHandling;DataHandling\\Isaw"; }
38
39private:
41 void init() override;
43 void exec() override;
45 void readModulatedUB(std::ifstream &in, Kernel::DblMatrix &ub);
46};
47
48} // namespace Crystal
49} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Algorithm to load an ISAW-style ASCII UB matrix and lattice parameters file, and place its informatio...
Definition: LoadIsawUB.h:23
const std::string summary() const override
Summary of algorithms purpose.
Definition: LoadIsawUB.h:28
int version() const override
Algorithm's version for identification.
Definition: LoadIsawUB.h:34
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Definition: LoadIsawUB.h:35
const std::string category() const override
Algorithm's category for identification.
Definition: LoadIsawUB.h:37
const std::string name() const override
Algorithm's name for identification.
Definition: LoadIsawUB.h:26
Helper class which provides the Collimation Length for SANS instruments.