Mantid
Loading...
Searching...
No Matches
LoadMcStas.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
12#include "MantidDataHandling/DllConfig.h"
14
16
17namespace Mantid {
18namespace DataHandling {
19
22class MANTID_DATAHANDLING_DLL LoadMcStas : public API::IFileLoader<Kernel::NexusDescriptor> {
23public:
24 const std::string name() const override;
26 const std::string summary() const override { return "Loads a McStas NeXus file into an workspace."; }
27
28 int version() const override;
29 const std::vector<std::string> seeAlso() const override { return {"LoadMcStasNexus", "LoadNexus"}; }
30 const std::string category() const override;
31
33 int confidence(Kernel::NexusDescriptor &descriptor) const override;
34
35private:
36 void init() override;
37 void exec() override;
38
39 API::WorkspaceGroup_sptr groupWorkspaces(const std::vector<std::string> &workspaces) const;
40
41 std::vector<std::string> readEventData(const std::map<std::string, std::string> &eventEntries, ::NeXus::File &nxFile);
42 std::vector<std::string> readHistogramData(const std::map<std::string, std::string> &histogramEntries,
43 ::NeXus::File &nxFile);
44};
45
46} // namespace DataHandling
47} // namespace Mantid
Defines an interface to an algorithm that loads a file so that it can take part in the automatic sele...
Definition: IFileLoader.h:19
LoadMcStas : TODO: DESCRIPTION.
Definition: LoadMcStas.h:22
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Definition: LoadMcStas.h:29
const std::string summary() const override
Summary of algorithms purpose.
Definition: LoadMcStas.h:26
Defines a wrapper around a file whose internal structure can be accessed using the NeXus API.
std::shared_ptr< WorkspaceGroup > WorkspaceGroup_sptr
shared pointer to Mantid::API::WorkspaceGroup
Helper class which provides the Collimation Length for SANS instruments.