Mantid
Loading...
Searching...
No Matches
LoadMuonNexusV2NexusHelper.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 & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
13
14#include <vector>
15
16namespace Mantid {
17namespace DataHandling {
18namespace MuonNexus {
20 double magneticField = -1;
21 double temperature = -1;
22};
23} // namespace MuonNexus
24
26public:
28
29 // Loads the good frame data from the nexus file
30 NeXus::NXInt loadGoodFramesDataFromNexus(bool isFileMultiPeriod);
31 // Loads the grouping data from the nexus file
32 std::vector<detid_t> loadDetectorGroupingFromNexus(const std::vector<detid_t> &loadedDetectors,
33 bool isFileMultiPeriod, int periodNumber);
34 // Load the orientation from the nexus entry
36 // Load deadtime information
37 std::vector<double> loadDeadTimesFromNexus(const std::vector<detid_t> &loadedDetectors, bool isFileMultiPeriod,
38 int periodNumber);
39 // Load first good data from the nexus entry
41 // Load last good data from the nexus entry
43 // Load time zero from the nexus entry
45 // Load time zero from nexus entry into a vector
46 std::vector<double> loadTimeZeroListFromNexusFile(size_t numSpectra);
47 // Load Muon sample information from the nexus file
49 // Number of periods in the nexus file
50 int getNumberOfPeriods() const;
51 std::string getPeriodLabels() const;
52 std::vector<int> getIntVector(const int &numPeriods, const std::string &name) const;
53 std::string getPeriodSequenceString(const int &numPeriods) const;
54 std::string getPeriodTypes(const int &numPeriods) const;
55 std::string getPeriodFramesRequested(const int &numPeriods) const;
56 std::string getPeriodRawFrames(const int &numPeriods) const;
57 std::string getPeriodOutput(const int &numPeriods) const;
58 std::string getPeriodTotalCounts(const int &numPeriods) const;
59
60private:
62};
63} // namespace DataHandling
64} // namespace Mantid
std::string getPeriodTotalCounts(const int &numPeriods) const
std::string getPeriodTypes(const int &numPeriods) const
std::vector< int > getIntVector(const int &numPeriods, const std::string &name) const
std::vector< double > loadDeadTimesFromNexus(const std::vector< detid_t > &loadedDetectors, bool isFileMultiPeriod, int periodNumber)
std::string getPeriodFramesRequested(const int &numPeriods) const
std::string getPeriodSequenceString(const int &numPeriods) const
std::string getPeriodRawFrames(const int &numPeriods) const
std::vector< detid_t > loadDetectorGroupingFromNexus(const std::vector< detid_t > &loadedDetectors, bool isFileMultiPeriod, int periodNumber)
std::vector< double > loadTimeZeroListFromNexusFile(size_t numSpectra)
NeXus::NXInt loadGoodFramesDataFromNexus(bool isFileMultiPeriod)
std::string getPeriodOutput(const int &numPeriods) const
Templated class implementation of NXDataSet.
Definition: NexusClasses.h:203
Implements NXentry Nexus class.
Definition: NexusClasses.h:898
Helper class which provides the Collimation Length for SANS instruments.