Mantid
Loading...
Searching...
No Matches
AddAbsorptionWeightedPathLengths.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2020 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 "MantidAlgorithms/DllConfig.h"
12
13namespace Mantid {
14namespace API {
15class Sample;
16}
17namespace Geometry {
18class Instrument;
19}
20namespace Algorithms {
21
28class MANTID_ALGORITHMS_DLL AddAbsorptionWeightedPathLengths final : public API::Algorithm {
29public:
31 const std::string name() const override { return "AddAbsorptionWeightedPathLengths"; };
33 const std::string summary() const override {
34 return "Add absorption weighted path lengths to each peak in a peaks "
35 "workspace.";
36 }
37
39 int version() const override { return 1; };
40 const std::vector<std::string> seeAlso() const override {
41 return {"MonteCarloAbsorption", "SetSample", "SaveReflections"};
42 }
44 const std::string category() const override { return "Crystal\\Peaks"; }
45
46private:
48 void init() override;
50 void exec() override;
51 std::map<std::string, std::string> validateInputs() override;
52 std::unique_ptr<IBeamProfile> createBeamProfile(const Geometry::Instrument &instrument,
53 const API::Sample &sample) const;
54};
55
56} // namespace Algorithms
57} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
This class stores information about the sample used in particular run.
Definition: Sample.h:33
Calculates the absorption weighted path length for each peak in a peaks workspace and saves it to the...
const std::string name() const override
Algorithm's name for identification.
const std::string category() const override
Algorithm's category for identification.
const std::string summary() const override
Summary of algorithms purpose.
std::unique_ptr< IBeamProfile > createBeamProfile(const Geometry::Instrument &instrument, const API::Sample &sample) const
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 for identification.
Base Instrument Class.
Definition: Instrument.h:47
Helper class which provides the Collimation Length for SANS instruments.