Mantid
Loading...
Searching...
No Matches
OptimizeLatticeForCellType.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 "MantidAPI/IFunction.h"
12#include "MantidCrystal/DllConfig.h"
15#include <gsl/gsl_blas.h>
16#include <gsl/gsl_multifit_nlin.h>
17#include <gsl/gsl_multimin.h>
18#include <gsl/gsl_statistics.h>
19
20namespace Mantid {
21namespace Crystal {
28class MANTID_CRYSTAL_DLL OptimizeLatticeForCellType final : public API::Algorithm {
29public:
31 const std::string name() const override { return "OptimizeLatticeForCellType"; }
33 const std::string summary() const override { return "Optimize lattice parameters for cell type."; }
34
36 int version() const override { return 1; }
37 const std::vector<std::string> seeAlso() const override {
38 return {"FindUBUsingFFT", "FindUBUsingIndexedPeaks", "FindUBUsingLatticeParameters"};
39 }
41 const std::string category() const override { return "Crystal\\Cell"; }
42
43 API::ILatticeFunction_sptr getLatticeFunction(const std::string &cellType, const Geometry::UnitCell &cell) const;
44
45private:
46 // Overridden Algorithm methods
47 void init() override;
48 void exec() override;
49};
50
51} // namespace Crystal
52} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
int version() const override
Algorithm's version for identification overriding a virtual method.
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 overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
Class to implement unit cell of crystals.
Definition: UnitCell.h:44
std::shared_ptr< ILatticeFunction > ILatticeFunction_sptr
Helper class which provides the Collimation Length for SANS instruments.