Mantid
Loading...
Searching...
No Matches
MultipleScatteringCylinderAbsorption.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2010 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
10#include <vector>
11
12namespace Mantid {
13namespace HistogramData {
14class HistogramX;
15class HistogramY;
16class HistogramE;
17} // namespace HistogramData
18namespace Algorithms {
28public:
30 const std::string name() const override;
31
33 int version() const override;
34 const std::vector<std::string> seeAlso() const override {
35 return {"MonteCarloAbsorption", "MayersSampleCorrection", "PearlMCAbsorption", "VesuvioCalculateMS"};
36 }
37
39 const std::string category() const override;
40
42 const std::string summary() const override {
43 return "Multiple scattering absorption correction, originally used to "
44 "correct vanadium spectrum at IPNS.";
45 }
46
47private:
48 // Overridden Algorithm methods
49 void init() override;
50 void exec() override;
51
53 void apply_msa_correction(const double angle_deg, const double radius, const double coeff1, const double coeff2,
54 const double coeff3, const HistogramData::HistogramX &wavelength,
55 HistogramData::HistogramY &y_val, HistogramData::HistogramE &errors);
56};
57
58} // namespace Algorithms
59} // namespace Mantid
double radius
Definition: Rasterize.cpp:31
Base class for algorithms that treat all spectra independently, i.e., we can trivially parallelize ov...
Multiple scattering absorption correction, originally used to correct vanadium spectrum at IPNS.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
void exec() override
Virtual method - must be overridden by concrete algorithm.
int version() const override
Algorithm's version for identification overriding a virtual method.
void apply_msa_correction(const double angle_deg, const double radius, const double coeff1, const double coeff2, const double coeff3, const HistogramData::HistogramX &wavelength, HistogramData::HistogramY &y_val, HistogramData::HistogramE &errors)
MultipleScatteringCylinderAbsorption correction calculation.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
void init() override
Virtual method - must be overridden by concrete algorithm.
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
Helper class which provides the Collimation Length for SANS instruments.