Mantid
Loading...
Searching...
No Matches
ScalarUtils.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/* File: Scalar_Utils.h */
8
9#pragma once
10
11//----------------------------------------------------------------------
12// Includes
13//----------------------------------------------------------------------
15#include "MantidGeometry/DllConfig.h"
16#include "MantidKernel/Matrix.h"
17
18namespace Mantid {
19namespace Geometry {
31class MANTID_GEOMETRY_DLL ScalarUtils {
32public:
36 static std::vector<ConventionalCell> GetCells(const Kernel::DblMatrix &UB, bool best_only,
37 bool allowPermutations = false);
38
42 static std::vector<ConventionalCell> GetCells(const Kernel::DblMatrix &UB, const std::string &cell_type,
43 const std::string &centering, bool allowPermutations = false);
44
47 static std::vector<ConventionalCell> GetCellsUBOnly(const Kernel::DblMatrix &UB, const std::string &cell_type,
48 const std::string &centering, bool allowPermutations = false);
49
53 static ConventionalCell GetCellForForm(const Kernel::DblMatrix &UB, size_t form_num, bool allowPermutations = false);
55 static void RemoveHighErrorForms(std::vector<ConventionalCell> &list, double level);
56
59 static ConventionalCell GetCellBestError(const std::vector<ConventionalCell> &list, bool use_triclinic);
60
63 static std::vector<Kernel::DblMatrix> GetRelatedUBs(const Kernel::DblMatrix &UB, double factor,
64 double angle_tolerance);
65
66private:
68 static void AddIfBest(std::vector<ConventionalCell> &list, ConventionalCell &info);
69};
70
71} // namespace Geometry
72} // namespace Mantid
Instances of this class represent information about a selected conventional cell based on a specified...
This class contains static utility methods for determining an orientation matrix corresponding to a c...
Definition ScalarUtils.h:31
Helper class which provides the Collimation Length for SANS instruments.