Mantid
Loading...
Searching...
No Matches
DgsScatteredTransmissionCorrectionMD.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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
11#include "MantidMDAlgorithms/DllConfig.h"
12
14
15namespace Mantid {
16namespace MDAlgorithms {
17
18class MANTID_MDALGORITHMS_DLL DgsScatteredTransmissionCorrectionMD final : public API::Algorithm {
19public:
21 const std::string name() const override { return "DgsScatteredTransmissionCorrectionMD"; }
22 int version() const override { return 1; }
23 const std::string category() const override { return "MDAlgorithms"; }
24 const std::string summary() const override {
25 return "Isotropic scattering transmission correction for Inelastic data";
26 }
27
28private:
30 std::vector<float> mEfixedValues;
32 void init() override;
34 void exec() override;
36 std::map<std::string, std::string> validateInputs() override;
42 std::string checkInputWorkspace();
44 std::string checkInputMDDimensions();
46 template <typename MDE, size_t nd> void correctForTransmission(typename MDEventWorkspace<MDE, nd>::sptr ws);
47};
48
49} // namespace MDAlgorithms
50} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Templated class for the multi-dimensional event workspace.
std::shared_ptr< MDEventWorkspace< MDE, nd > > sptr
Typedef for a shared pointer of this kind of event workspace.
int version() const override
function to return a version of the algorithm, must be overridden in all algorithms
const std::string category() const override
function to return a category of the algorithm.
const std::string name() const override
function to return a name of the algorithm, must be overridden in all algorithms
const std::string summary() const override
function returns a summary message that will be displayed in the default GUI, and in the help.
Helper class which provides the Collimation Length for SANS instruments.