30class DetectorGridDefinition;
31class MCInteractionVolume;
40 const std::string
name()
const override {
return "XrayAbsorptionCorrection"; }
42 int version()
const override {
return 1; }
44 const std::string
category()
const override {
return "CorrectionFunctions\\AbsorptionCorrections"; }
46 const std::string
summary()
const override {
47 return "Calculates attenuation of xrays produced by negative muons due"
48 " to absorption in a sample for elemental analysis ";
50 const std::vector<std::string>
seeAlso()
const override {
return {
"SetSample",
"SetSampleMaterial"}; }
53 double degreesToRadians(
double degrees);
55 Kernel::V3D calculateDetectorPos(
double const detectorAngle,
double detectorDistance);
60 std::vector<double> normaliseMuonIntensity(std::span<double const> muonIntensity);
65 std::map<std::string, std::string> validateInputs()
override;
Base class from which all concrete algorithm classes should be derived.
Calculates attenuation of xrays due to absorption in a sample.
int version() const override
Algorithm's version.
const std::string category() const override
Algorithm's category for identification.
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
Algorithm's name.
~XrayAbsorptionCorrection() override=default
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.