Mantid
Loading...
Searching...
No Matches
LoadISISNexusHelper.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2020 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source
5// & Institut Laue - Langevin
6// SPDX - License - Identifier: GPL - 3.0 +
7
8#ifndef MANTID_DATAHANDLING_LOADISISNEXUSHELPER_H_
9#define MANTID_DATAHANDLING_LOADISISNEXUSHELPER_H_
10
13
14namespace Mantid {
15
16namespace API {
17class Run;
18class Sample;
19} // namespace API
20namespace DataHandling {
21
22namespace LoadISISNexusHelper {
23
25int64_t findNumberOfSpectra(const Nexus::NXEntry &entry, const bool hasVMSBlock);
26
28std::tuple<Nexus::NXInt, Nexus::NXInt> findDetectorIDsAndSpectrumNumber(const Nexus::NXEntry &entry,
29 const bool hasVMSBlock);
30
31// Load sample geometry into a workspace
32void loadSampleGeometry(API::Sample &sample, const Nexus::NXEntry &entry, const bool hasVMSBlock);
33
34// Load details about the run
35void loadRunDetails(API::Run &runDetails, const Nexus::NXEntry &entry, const bool hasVMSBlock);
36
37// Load time axis data
38std::shared_ptr<HistogramData::HistogramX> loadTimeData(const Nexus::NXEntry &entry);
39
40} // namespace LoadISISNexusHelper
41
42} // namespace DataHandling
43
44} // namespace Mantid
45
46#endif /*MANTID_DATAHANDLING_LOADISISNEXUSHELPER_H_*/
This class stores information regarding an experimental run as a series of log entries.
Definition Run.h:35
This class stores information about the sample used in particular run.
Definition Sample.h:33
Implements NXentry Nexus class.
void loadSampleGeometry(API::Sample &sample, const Nexus::NXEntry &entry, const bool hasVMSBlock)
Load geometrical data about the sample from the nexus entry into a workspace.
int64_t findNumberOfSpectra(const Nexus::NXEntry &entry, const bool hasVMSBlock)
find the number of spectra in the nexus file
std::shared_ptr< HistogramData::HistogramX > loadTimeData(const Nexus::NXEntry &entry)
Load the time data from nexus entry.
std::tuple< Nexus::NXInt, Nexus::NXInt > findDetectorIDsAndSpectrumNumber(const Nexus::NXEntry &entry, const bool hasVMSBlock)
find detector ids and spectrum numbers
void loadRunDetails(API::Run &runDetails, const Nexus::NXEntry &entry, const bool hasVMSBlock)
Load data about the run.
Helper class which provides the Collimation Length for SANS instruments.