Mantid
Loading...
Searching...
No Matches
SelectCellWithForm.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
11#include "MantidCrystal/DllConfig.h"
14
15namespace Mantid {
16namespace Crystal {
25class MANTID_CRYSTAL_DLL SelectCellWithForm final : public API::Algorithm {
26public:
28 const std::string name() const override { return "SelectCellWithForm"; };
29
31 int version() const override { return 1; };
32 const std::vector<std::string> seeAlso() const override {
33 return {"FindUBUsingFFT", "FindUBUsingIndexedPeaks", "FindUBUsingLatticeParameters"};
34 }
35
37 const std::string category() const override { return "Crystal\\Cell"; }
38
40 const std::string summary() const override {
41 return "Select a conventional cell with a specific form number, "
42 "corresponding to the UB stored with the sample for this peaks "
43 "works space.";
44 }
45
46 static Kernel::Matrix<double> DetermineErrors(std::vector<double> &sigabc, const Kernel::Matrix<double> &UB,
47 const Kernel::Matrix<double> &modUB,
48 const API::IPeaksWorkspace_sptr &ws, double tolerance);
49
50 static void ApplyTransform(Kernel::Matrix<double> &newUB, API::IPeaksWorkspace_sptr &ws, double tolerance,
51 int &num_indexed, double &average_error);
52
53private:
55 void init() override;
56
58 void exec() override;
59};
60
61} // namespace Crystal
62} // namespace Mantid
double tolerance
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
ShowPossibleCells : Algorithm to display a list of possible conventional cells corresponding to the U...
const std::string summary() const override
Summary of algorithms purpose.
const std::string category() const override
Algorithm's category for identification.
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 name() const override
Algorithm's name for identification.
int version() const override
Algorithm's version for identification.
Numerical Matrix class.
Definition: Matrix.h:42
std::shared_ptr< IPeaksWorkspace > IPeaksWorkspace_sptr
shared pointer to Mantid::API::IPeaksWorkspace
Helper class which provides the Collimation Length for SANS instruments.