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
15#include "MantidMDAlgorithms/DllConfig.h"
16
17namespace Mantid {
18namespace MDAlgorithms {
19
25class MANTID_MDALGORITHMS_DLL IntegratePeaksMD final : public API::Algorithm {
26public:
28 const std::string name() const override { return "IntegratePeaksMD"; };
30 const std::string summary() const override {
31 return "Integrate single-crystal peaks in reciprocal space, for "
32 "MDEventWorkspaces.";
33 }
34
36 int version() const override { return 1; };
38 const std::string category() const override { return "MDAlgorithms\\Peaks;Crystal\\Integration"; }
39
40private:
42 void init() override;
44 void exec() override;
45
46 template <typename MDE, size_t nd> void integrate(typename DataObjects::MDEventWorkspace<MDE, nd>::sptr ws);
47
50
52 bool detectorQ(const Mantid::Kernel::V3D &QLabFrame, double r);
53
56};
57
58} // namespace MDAlgorithms
59} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
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.