Mantid
Loading...
Searching...
No Matches
CarpenterSampleCorrection.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
10#include "MantidAlgorithms/DllConfig.h"
11#include <vector>
12
13namespace Mantid {
14namespace Algorithms {
21public:
23 const std::string name() const override;
24
26 int version() const override;
27 const std::vector<std::string> seeAlso() const override {
28 return {"CalculateCarpenterSampleCorrection",
29 "CylinderAbsorption",
30 "MonteCarloAbsorption",
31 "MayersSampleCorrection",
32 "PearlMCAbsorption",
33 "VesuvioCalculateMS"};
34 }
35
37 const std::string category() const override;
38
40 const std::string summary() const override {
41 return "Applies both absorption and multiple scattering corrections, "
42 "originally used to correct vanadium spectrum at IPNS.";
43 }
44
45 // Algorithm's alias for identification overriding a virtual method
46 const std::string alias() const override { return "MultipleScatteringCylinderAbsorption"; }
47
48private:
49 // Overridden Algorithm methods
50 void init() override;
51 void exec() override;
52
53 API::WorkspaceGroup_sptr calculateCorrection(API::MatrixWorkspace_sptr &inputWksp, double radius, double coeff1,
54 double coeff2, double coeff3, bool doAbs, bool doMS);
55
58};
59
60} // namespace Algorithms
61} // namespace Mantid
double radius
Definition: Rasterize.cpp:31
Data processor algorithm to be used as a parent to workflow algorithms.
Multiple scattering absorption correction, originally used to correct vanadium spectrum at IPNS.
const std::vector< std::string > seeAlso() const override
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< WorkspaceGroup > WorkspaceGroup_sptr
shared pointer to Mantid::API::WorkspaceGroup
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.