Mantid
Loading...
Searching...
No Matches
LoadInstrumentFromRaw.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 {
51class MANTID_DATAHANDLING_DLL LoadInstrumentFromRaw final : public API::Algorithm {
52public:
55
57 const std::string name() const override { return "LoadInstrumentFromRaw"; };
59 const std::string summary() const override {
60 return "Attempts to load information about the instrument from a ISIS raw "
61 "file. In particular attempt to read L2 and 2-theta detector "
62 "position values and add detectors which are positioned relative to "
63 "the sample in spherical coordinates as "
64 "(r,theta,phi)=(L2,2-theta,0.0). Also adds dummy source and "
65 "samplepos components to instrument. If the L1 source - sample "
66 "distance is not available in the file then it may be read from the "
67 "mantid properties file using the key instrument.L1, as a final "
68 "fallback a default distance of 10m will be used.";
69 }
70
72 int version() const override { return 1; };
73 const std::vector<std::string> seeAlso() const override { return {"LoadInstrument"}; }
74
76 const std::string category() const override { return "DataHandling\\Instrument;DataHandling\\Raw"; }
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/LoadInstrumentFromRaw.h.
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.
int version() const override
Algorithm's version for identification overriding a virtual method.
std::string m_filename
The name and path of the input file.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
const std::string summary() const override
Summary of algorithms purpose.
Helper class which provides the Collimation Length for SANS instruments.