Mantid
Loading...
Searching...
No Matches
LoadSINQFocus.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2013 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//---------------------------------------------------
14#include "MantidDataHandling/DllConfig.h"
17
18namespace Mantid {
19namespace DataHandling {
20
30class MANTID_DATAHANDLING_DLL LoadSINQFocus : public API::IFileLoader<Nexus::NexusDescriptor>,
32public:
34 const std::string name() const override;
36 const std::string summary() const override { return "Loads a FOCUS nexus file from the PSI"; }
37
38 int version() const override;
39 const std::vector<std::string> seeAlso() const override { return {"LoadSINQ", "LoadSINQFile"}; }
40 const std::string category() const override;
41
43 int confidence(Nexus::NexusDescriptor &descriptor) const override;
44
45private:
46 void init() override;
47 void exec() override;
48 void setInstrumentName(const Nexus::NXEntry &entry);
49 void initWorkSpace(const Nexus::NXEntry &);
50 void loadDataIntoTheWorkSpace(Nexus::NXEntry &);
52 static double calculateError(double in) { return sqrt(in); }
53 void loadExperimentDetails(const Nexus::NXEntry &);
54 void loadRunDetails(const Nexus::NXEntry &);
55 void runLoadInstrument();
56
57 std::vector<std::string> m_supportedInstruments;
58 std::string m_instrumentName;
61 size_t m_numberOfTubes; // number of tubes - X
62 size_t m_numberOfPixelsPerTube; // number of pixels per tube - Y
63 size_t m_numberOfChannels; // time channels - Z
65};
66
67} // namespace DataHandling
68} // namespace Mantid
std::string name
Definition Run.cpp:60
Class for marking algorithms as deprecated.
Defines an interface to an algorithm that loads a file so that it can take part in the automatic sele...
Definition IFileLoader.h:19
Loads an PSI nexus file into a Mantid workspace.
API::MatrixWorkspace_sptr m_localWorkspace
static double calculateError(double in)
Calculate error for y.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
std::vector< std::string > m_supportedInstruments
const std::string summary() const override
Summary of algorithms purpose.
Implements NXentry Nexus class.
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.