Mantid
Loading...
Searching...
No Matches
IntegratePeaksMD.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
16#include "MantidMDAlgorithms/DllConfig.h"
17
18namespace Mantid {
19namespace MDAlgorithms {
20
26class MANTID_MDALGORITHMS_DLL IntegratePeaksMD final : public API::Algorithm, public API::DeprecatedAlgorithm {
27public:
31 const std::string name() const override { return "IntegratePeaksMD"; };
33 const std::string summary() const override {
34 return "Integrate single-crystal peaks in reciprocal space, for "
35 "MDEventWorkspaces.";
36 }
37
39 int version() const override { return 1; };
41 const std::string category() const override { return "MDAlgorithms\\Peaks;Crystal\\Integration"; }
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
55 bool detectorQ(const Mantid::Kernel::V3D &QLabFrame, double r);
56
59};
60
61} // namespace MDAlgorithms
62} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
Class for marking algorithms as deprecated.
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
Class for 3D vectors.
Definition V3D.h:34
Integrate single-crystal peaks in reciprocal-space.
int version() const override
Algorithm's version for identification.
const std::string category() const override
Algorithm's category for identification.
const std::string summary() const override
Summary of algorithms purpose.
Mantid::API::IMDEventWorkspace_sptr inWS
Input MDEventWorkspace.
Geometry::Instrument_const_sptr inst
Instrument reference.
const std::string name() const override
Algorithm's name for identification.
std::shared_ptr< IMDEventWorkspace > IMDEventWorkspace_sptr
Shared pointer to Mantid::API::IMDEventWorkspace.
std::shared_ptr< const Instrument > Instrument_const_sptr
Shared pointer to an const instrument object.
Helper class which provides the Collimation Length for SANS instruments.