Mantid
Loading...
Searching...
No Matches
Framework
MDAlgorithms
inc
MantidMDAlgorithms
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
9
#include "
MantidAPI/Algorithm.h
"
10
#include "
MantidAPI/IMDEventWorkspace_fwd.h
"
11
#include "
MantidDataObjects/MDEventWorkspace.h
"
12
#include "MantidMDAlgorithms/DllConfig.h"
13
14
namespace
Mantid
{
15
namespace
MDAlgorithms {
16
21
class
MANTID_MDALGORITHMS_DLL
SpectralMomentMD
final :
public
API::Algorithm
{
22
public
:
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
29
private
:
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
40
size_t
mDeltaEIndex
;
41
43
int
mExponent
;
44
};
45
46
}
// namespace MDAlgorithms
47
}
// namespace Mantid
name
std::string name
Definition
Run.cpp:60
Algorithm.h
IMDEventWorkspace_fwd.h
MDEventWorkspace.h
Mantid::API::Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition
Algorithm.h:76
Mantid::DataObjects::MDEventWorkspace::sptr
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
Definition
MDEventWorkspace.h:41
Mantid::MDAlgorithms::SpectralMomentMD
SpectralMomentMD : Multiply MD events by DeltaE^n.
Definition
SpectralMomentMD.h:21
Mantid::MDAlgorithms::SpectralMomentMD::SpectralMomentMD
SpectralMomentMD()
Definition
SpectralMomentMD.h:23
Mantid::MDAlgorithms::SpectralMomentMD::mDeltaEIndex
size_t mDeltaEIndex
index of the MD dimension index for DeltaE
Definition
SpectralMomentMD.h:40
Mantid::MDAlgorithms::SpectralMomentMD::mExponent
int mExponent
exponent
Definition
SpectralMomentMD.h:43
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
Generated by
1.9.8