Mantid
Loading...
Searching...
No Matches
Framework
DataHandling
inc
MantidDataHandling
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
9
#include "
MantidAPI/Algorithm.h
"
10
#include "
MantidAPI/IEventWorkspace.h
"
11
#include "
MantidAPI/IFileLoader.h
"
12
#include "
MantidAPI/NexusFileLoader.h
"
13
#include "
MantidAPI/WorkspaceGroup_fwd.h
"
14
#include "MantidDataHandling/DllConfig.h"
15
16
#include <H5Cpp.h>
17
18
namespace
Mantid
{
19
namespace
DataHandling {
20
21
class
MANTID_DATAHANDLING_DLL
LoadMcStas
:
public
API::NexusFileLoader
{
22
public
:
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
34
private
:
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
name
std::string name
Definition
Run.cpp:60
Algorithm.h
IEventWorkspace.h
IFileLoader.h
NexusFileLoader.h
WorkspaceGroup_fwd.h
Mantid::API::NexusFileLoader
Definition
NexusFileLoader.h:15
Mantid::DataHandling::LoadMcStas
Definition
LoadMcStas.h:21
Mantid::DataHandling::LoadMcStas::seeAlso
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
Mantid::DataHandling::LoadMcStas::summary
const std::string summary() const override
Summary of algorithms purpose.
Definition
LoadMcStas.h:25
Mantid::Nexus::NexusDescriptor
Definition
NexusDescriptor.h:23
Mantid::API::WorkspaceGroup_sptr
std::shared_ptr< WorkspaceGroup > WorkspaceGroup_sptr
shared pointer to Mantid::API::WorkspaceGroup
Definition
WorkspaceGroup_fwd.h:20
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
Generated by
1.9.8