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
14#include "MantidDataHandling/DllConfig.h"
15
16#include <H5Cpp.h>
17
18namespace Mantid {
19namespace DataHandling {
20
21class MANTID_DATAHANDLING_DLL LoadMcStas : public API::NexusFileLoader {
22public:
23 const std::string name() const override;
25 const std::string summary() const override { return "Loads a McStas NeXus file into an workspace."; }
26
27 int version() const override;
28 const std::vector<std::string> seeAlso() const override { return {"LoadMcStasNexus", "LoadNexus"}; }
29 const std::string category() const override;
30
32 int confidence(Nexus::NexusDescriptor &descriptor) const override;
33
34private:
35 void init() override;
36 void execLoader() override;
37
38 API::WorkspaceGroup_sptr groupWorkspaces(const std::vector<std::string> &workspaces) const;
39
40 std::vector<std::string> readEventData(const std::vector<std::string> &eventEntries, const H5::H5File &file);
41 std::vector<std::string> readHistogramData(const std::map<std::string, std::vector<std::string>> &histogramEntries,
42 const H5::H5File &file);
43};
44
45} // namespace DataHandling
46} // namespace Mantid
std::string name
Definition Run.cpp:60
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:28
const std::string summary() const override
Summary of algorithms purpose.
Definition LoadMcStas.h:25
std::shared_ptr< WorkspaceGroup > WorkspaceGroup_sptr
shared pointer to Mantid::API::WorkspaceGroup
Helper class which provides the Collimation Length for SANS instruments.