Mantid
Loading...
Searching...
No Matches
SaveIsawUB.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2009 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"
12
13namespace Mantid {
14namespace Crystal {
15
26class MANTID_CRYSTAL_DLL SaveIsawUB final : public API::Algorithm {
27public:
29 const std::string name() const override { return "SaveIsawUB"; };
31 const std::string summary() const override {
32 return "Save a UB matrix and lattice parameters from a workspace to an "
33 "ISAW-style ASCII file.";
34 }
35
37 int version() const override { return 1; };
38 const std::vector<std::string> seeAlso() const override { return {"LoadIsawUB"}; }
40 const std::string category() const override { return "Crystal\\DataHandling;DataHandling\\Isaw"; }
41
42private:
44 void init() override;
46 void exec() override;
47
48 // Calculates the error in the volume
49 double getErrorVolume(const Geometry::OrientedLattice &lattice);
50};
51
52} // namespace Crystal
53} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Algorithm to save a UB matrix and lattice parameters to an ISAW-style ASCII file.
Definition: SaveIsawUB.h:26
const std::string summary() const override
Summary of algorithms purpose.
Definition: SaveIsawUB.h:31
const std::string category() const override
Algorithm's category for identification.
Definition: SaveIsawUB.h:40
int version() const override
Algorithm's version for identification.
Definition: SaveIsawUB.h:37
const std::string name() const override
Algorithm's name for identification.
Definition: SaveIsawUB.h:29
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: SaveIsawUB.h:38
Class to implement UB matrix.
Helper class which provides the Collimation Length for SANS instruments.