Mantid
Loading...
Searching...
No Matches
LoadSampleEnvironment.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
8
10#include "MantidAPI/Run.h"
11#include "MantidAPI/Sample.h"
12#include "MeshFileIO.h"
13
14namespace Mantid {
15namespace Geometry {
16class MeshObject;
17}
18namespace DataHandling {
27class MANTID_DATAHANDLING_DLL LoadSampleEnvironment : public Mantid::API::Algorithm {
28public:
30 const std::string name() const override { return "LoadSampleEnvironment"; }
32 const std::string summary() const override {
33 return "The algorithm loads an Environment into the instrument of a "
34 "workspace "
35 "at the sample.";
36 }
37
39 int version() const override { return 1; }
41 const std::vector<std::string> seeAlso() const override {
42 return {"CopySample", "SetSampleMaterial", "LoadSampleShape"};
43 }
45 const std::string category() const override { return "DataHandling\\Instrument"; }
46 std::map<std::string, std::string> validateInputs() override;
47
48private:
49 // Implement abstract Algorithm methods
50 void init() override;
51 void exec() override;
52
53 void loadEnvironmentFromSTL(const std::string &filename, API::Sample &sample, const bool add,
54 std::string debugString);
55
56 void loadEnvironmentFrom3MF([[maybe_unused]] const API::MatrixWorkspace_const_sptr &inputWS,
57 [[maybe_unused]] const std::string &filename, [[maybe_unused]] API::Sample &sample,
58 [[maybe_unused]] const bool add, std::string &debugString);
59};
60
61} // end namespace DataHandling
62} // 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
Load Environment into the sample of a workspace, either replacing the current environment,...
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
const std::string summary() const override
Summary of algorithms purpose.
const std::vector< std::string > seeAlso() const override
Related algorithms.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
int version() const override
Algorithm's version for identification overriding a virtual method.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
Helper class which provides the Collimation Length for SANS instruments.