Mantid
Loading...
Searching...
No Matches
SetSampleMaterial.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2009 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 "MantidDataHandling/DllConfig.h"
13namespace Mantid {
14namespace DataHandling {
15
24class MANTID_DATAHANDLING_DLL SetSampleMaterial : public Mantid::API::DistributedAlgorithm {
25public:
27 const std::string name() const override;
29 const std::string summary() const override { return "Sets the neutrons information in the sample."; }
30
32 int version() const override;
33 const std::vector<std::string> seeAlso() const override {
34 return {"SetSample", "AbsorptionCorrection", "CreateSampleShape", "CalculateSampleTransmission"};
35 }
37 const std::string category() const override;
38 std::map<std::string, std::string> validateInputs() override;
39
40private:
42 void init() override;
44 void exec() override;
46 void fixNeutron(PhysicalConstants::NeutronAtom &neutron, double coh_xs, double inc_xs, double abs_xs, double tot_xs);
47
49};
50} // namespace DataHandling
51} // namespace Mantid
Base class for algorithms that treat all spectra independently, i.e., we can trivially parallelize ov...
This class allows the shape of the sample to be defined by using the allowed XML expressions.
ReadMaterial::MaterialParameters params
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 (these are not validated) algorithms related to this algorithm....
Helper class which provides the Collimation Length for SANS instruments.
This struct contains the parameters for constructing a material, and gives them a default value for e...
Definition: ReadMaterial.h:32
Structure to store neutronic scattering information for the various elements.
Definition: NeutronAtom.h:22