Mantid
Loading...
Searching...
No Matches
LoadInstrumentFromNexus.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2007 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
9//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "MantidAPI/Algorithm.h"
13#include "MantidDataHandling/DllConfig.h"
14
15namespace Mantid {
16
17namespace Geometry {
18class CompAssembly;
19class Component;
20class Instrument;
21} // namespace Geometry
22
23namespace DataHandling {
54class MANTID_DATAHANDLING_DLL LoadInstrumentFromNexus final : public API::Algorithm {
55public:
58
60 const std::string name() const override { return "LoadInstrumentFromNexus"; };
62 const std::string summary() const override {
63 return "Attempts to load some information about the instrument from a "
64 "Nexus file. It adds dummy source and samplepos components to "
65 "instrument. If the L1 source - sample distance is not available in "
66 "the file then it may be read from the mantid properties file using "
67 "the key instrument.L1, as a final fallback a default distance of "
68 "10m will be used.";
69 }
70
72 int version() const override { return 1; };
73 const std::vector<std::string> seeAlso() const override { return {"LoadInstrument", "Load"}; }
74
76 const std::string category() const override { return "DataHandling\\Instrument"; }
77
78private:
80 void init() override;
81
83 void exec() override;
84
86 std::string m_filename;
87};
88
89} // namespace DataHandling
90} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
DataHandling/LoadInstrumentFromNexus.h.
std::string m_filename
The name and path of the input file.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
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
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
int version() const override
Algorithm's version for identification overriding a virtual method.
Helper class which provides the Collimation Length for SANS instruments.