Mantid
Loading...
Searching...
No Matches
GoniometerAnglesFromPhiRotation.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/*
8 * GoniometerAnglesFromPhiRotation.h
9 *
10 * Created on: Apr 15, 2013
11 * Author: ruth
12 */
20#pragma once
21
22#include "MantidAPI/Algorithm.h"
23#include "MantidCrystal/DllConfig.h"
25
26namespace Mantid {
27namespace Crystal {
28class MANTID_CRYSTAL_DLL GoniometerAnglesFromPhiRotation final : public API::Algorithm {
29public:
31 const std::string name() const override { return "GoniometerAnglesFromPhiRotation"; }
32
34 const std::string summary() const override {
35 return "The 2nd PeaksWorkspace is set up with the correct sample "
36 "orientations and UB matrices";
37 }
38
40 int version() const override { return 1; }
41 const std::vector<std::string> seeAlso() const override { return {"SetGoniometer"}; }
42
44 const std::string category() const override { return "Crystal\\Goniometer"; }
45
46private:
48 void init() override;
50 const Kernel::Matrix<double> &GoniometerMatrix) const;
51
52 bool CheckForOneRun(const DataObjects::PeaksWorkspace_sptr &Peaks, Kernel::Matrix<double> &GoniometerMatrix) const;
53
54 void IndexRaw(const DataObjects::PeaksWorkspace_sptr &Peaks, const Kernel::Matrix<double> &UBraw, int &Nindexed,
55 double &AvErrIndexed, double &AvErrorAll, double tolerance) const;
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
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Algorithm's name 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 category() const override
Algorithm's category for identification.
int version() const override
Algorithm's version for identification.
Numerical Matrix class.
Definition: Matrix.h:42
std::shared_ptr< PeaksWorkspace > PeaksWorkspace_sptr
Typedef for a shared pointer to a peaks workspace.
Helper class which provides the Collimation Length for SANS instruments.