Mantid
Loading...
Searching...
No Matches
SpectralMomentMD.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2025 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
12#include "MantidMDAlgorithms/DllConfig.h"
13
14namespace Mantid {
15namespace MDAlgorithms {
16
21class MANTID_MDALGORITHMS_DLL SpectralMomentMD final : public API::Algorithm {
22public:
23 SpectralMomentMD() : mDeltaEIndex(999) {}
24 const std::string name() const override;
25 int version() const override;
26 const std::string category() const override;
27 const std::string summary() const override;
28
29private:
30 void init() override;
31 void exec() override;
33 std::map<std::string, std::string> validateInputs() override;
34
36 template <typename MDE, size_t nd>
37 void applyScaling(typename Mantid::DataObjects::MDEventWorkspace<MDE, nd>::sptr ws);
38
41
44};
45
46} // namespace MDAlgorithms
47} // namespace Mantid
std::string name
Definition Run.cpp:60
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
SpectralMomentMD : Multiply MD events by DeltaE^n.
size_t mDeltaEIndex
index of the MD dimension index for DeltaE
Helper class which provides the Collimation Length for SANS instruments.