74 const std::string
name()
const override {
return "AbsorptionCorrection"; }
76 const std::vector<std::string>
seeAlso()
const override {
77 return {
"SetSampleMaterial",
"CreateSampleShape",
"DefineGaugeVolume",
"CylinderAbsorption",
78 "FlatPlateAbsorption",
"AnnularRingAbsorption",
"CuboidGaugeVolumeAbsorption"};
82 const std::string
summary()
const override {
83 return "Calculates an approximation of the attenuation due to absorption "
84 "and single scattering in a generic sample shape. The sample shape "
85 "can be defined by, e.g., the CreateSampleShape algorithm.\nNote "
86 "that if your sample is of cuboid or cylinder geometry, you will "
87 "get a more accurate result from the FlatPlateAbsorption or "
88 "CylinderAbsorption algorithms respectively.";
92 int version()
const override {
return (1); }
95 void defineProperties()
override;
96 void retrieveProperties()
override;
97 std::string sampleXML()
override;
98 void initialiseCachedDistances()
override;
100 std::shared_ptr<const Geometry::IObject> constructGaugeVolume();
A base class for absorption correction algorithms.
Calculates an approximation of the attenuation due to absorption and scattering in a generic sample s...
const std::string summary() const override
Summary of algorithms purpose.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
int version() const override
Algorithm's version.
double m_cubeSide
The length of the side of an element cube in m.
const std::string name() const override
Algorithm's name.
Helper class which provides the Collimation Length for SANS instruments.