Mantid
Loading...
Searching...
No Matches
CentroidPeaksMD.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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
14#include "MantidMDAlgorithms/DllConfig.h"
15
16namespace Mantid {
17namespace MDAlgorithms {
18
25class MANTID_MDALGORITHMS_DLL CentroidPeaksMD final : public API::Algorithm, public API::DeprecatedAlgorithm {
26public:
29
31 const std::string name() const override { return "CentroidPeaksMD"; };
33 const std::string summary() const override {
34 return "Find the centroid of single-crystal peaks in a MDEventWorkspace, "
35 "in order to refine their positions.";
36 }
37
39 int version() const override { return 1; };
41 const std::string category() const override { return "MDAlgorithms\\Peaks"; }
42
43private:
45 void init() override;
47 void exec() override;
48
49 template <typename MDE, size_t nd> void integrate(typename DataObjects::MDEventWorkspace<MDE, nd>::sptr ws);
50
53};
54
55} // namespace MDAlgorithms
56} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Class for marking algorithms as deprecated.
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
Find the centroid of single-crystal peaks in a MDEventWorkspace, in order to refine their positions.
Mantid::API::IMDEventWorkspace_sptr inWS
Input MDEventWorkspace.
const std::string name() const override
Algorithm's name for identification.
const std::string summary() const override
Summary of algorithms purpose.
int version() const override
Algorithm's version for identification.
const std::string category() const override
Algorithm's category for identification.
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
Helper class which provides the Collimation Length for SANS instruments.