Mantid
Loading...
Searching...
No Matches
DiffractionEventCalibrateDetectors.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2010 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 "MantidAlgorithms/DllConfig.h"
13#include <gsl/gsl_blas.h>
14#include <gsl/gsl_multifit_nlin.h>
15#include <gsl/gsl_multimin.h>
16#include <gsl/gsl_statistics.h>
17
18namespace Mantid {
19namespace Algorithms {
26class MANTID_ALGORITHMS_DLL DiffractionEventCalibrateDetectors final : public API::Algorithm {
27public:
29 const std::string name() const override { return "DiffractionEventCalibrateDetectors"; }
31 const std::string summary() const override {
32 return "This algorithm optimizes the position and angles of all of the "
33 "detector panels. The target instruments for this feature are SNAP "
34 "and TOPAZ.";
35 }
36
38 int version() const override { return 1; }
39 const std::vector<std::string> seeAlso() const override { return {"AlignComponents"}; }
41 const std::string category() const override {
42 return "Diffraction\\Calibration;"
43 "CorrectionFunctions\\InstrumentCorrections";
44 }
46 double intensity(double x, double y, double z, double rotx, double roty, double rotz, const std::string &detname,
47 const std::string &inname, const std::string &outname, const std::string &peakOpt,
48 const std::string &rb_param, const std::string &groupWSName);
49 void movedetector(double x, double y, double z, double rotx, double roty, double rotz, const std::string &detname,
51
52private:
53 // Overridden Algorithm methods
54 void init() override;
55 void exec() override;
56 // Event workspace pointer
57 // API::EventWorkspace_sptr inputW;
58};
59
60} // namespace Algorithms
61} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
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::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
std::shared_ptr< EventWorkspace > EventWorkspace_sptr
shared pointer to the EventWorkspace class
Helper class which provides the Collimation Length for SANS instruments.