Mantid
Loading...
Searching...
No Matches
Framework
DataHandling
inc
MantidDataHandling
LoadNexusProcessed2.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2019 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 "MantidDataHandling/DllConfig.h"
11
#include "
MantidDataHandling/LoadNexusProcessed.h
"
12
#include "
MantidGeometry/IDTypes.h
"
13
#include "MantidIndexing/SpectrumNumber.h"
14
#include "
MantidKernel/NexusDescriptor.h
"
15
#include <string>
16
17
namespace
Mantid
{
18
namespace
API
{
19
class
Workspace;
20
class
MatrixWorkspace;
21
}
// namespace API
22
namespace
NeXus
{
23
class
NXEntry;
24
}
25
namespace
DataHandling {
27
enum class
InstrumentLayout
{
Mantid
,
NexusFormat
,
NotRecognised
};
28
36
class
MANTID_DATAHANDLING_DLL
LoadNexusProcessed2
:
public
LoadNexusProcessed
{
37
public
:
38
const
std::string name()
const override
;
39
int
version()
const override
;
40
int
confidence(
Kernel::NexusDescriptor
&descriptor)
const override
;
41
42
private
:
43
void
readSpectraToDetectorMapping(
Mantid::NeXus::NXEntry
&mtd_entry,
Mantid::API::MatrixWorkspace
&ws)
override
;
44
bool
loadNexusGeometry(
Mantid::API::Workspace
&ws,
const
int
nWorkspaceEntries,
Kernel::Logger
&logger,
45
const
std::string &filename)
override
;
47
void
extractMappingInfoNew(
const
Mantid::NeXus::NXEntry
&mtd_entry);
50
InstrumentLayout
m_instrumentLayout = InstrumentLayout::Mantid;
51
std::vector<Indexing::SpectrumNumber>
m_spectrumNumbers
;
52
std::vector<Mantid::detid_t>
m_detectorIds
;
53
std::vector<int>
m_detectorCounts
;
54
};
55
56
}
// namespace DataHandling
57
}
// namespace Mantid
Algorithm.h
IDTypes.h
LoadNexusProcessed.h
NexusDescriptor.h
Mantid::API::MatrixWorkspace
Base MatrixWorkspace Abstract Class.
Definition:
MatrixWorkspace.h:52
Mantid::API::Workspace
Base Workspace Abstract Class.
Definition:
Workspace.h:30
Mantid::DataHandling::LoadNexusProcessed2
LoadNexusProcessed2 : Second variation of LoadNexusProcess, built to handle ESS file specifics in add...
Definition:
LoadNexusProcessed2.h:36
Mantid::DataHandling::LoadNexusProcessed2::m_detectorCounts
std::vector< int > m_detectorCounts
Definition:
LoadNexusProcessed2.h:53
Mantid::DataHandling::LoadNexusProcessed2::m_spectrumNumbers
std::vector< Indexing::SpectrumNumber > m_spectrumNumbers
Definition:
LoadNexusProcessed2.h:51
Mantid::DataHandling::LoadNexusProcessed2::m_detectorIds
std::vector< Mantid::detid_t > m_detectorIds
Definition:
LoadNexusProcessed2.h:52
Mantid::DataHandling::LoadNexusProcessed
Loads a workspace from a NeXus Processed entry in a NeXus file.
Definition:
LoadNexusProcessed.h:43
Mantid::Kernel::Logger
The Logger class is in charge of the publishing messages from the framework through various channels.
Definition:
Logger.h:52
Mantid::Kernel::NexusDescriptor
Defines a wrapper around a file whose internal structure can be accessed using the NeXus API.
Definition:
NexusDescriptor.h:31
Mantid::NeXus::NXEntry
Implements NXentry Nexus class.
Definition:
NexusClasses.h:898
API
Definition:
ChudleyElliotSQE.h:16
Mantid::DataHandling::InstrumentLayout
InstrumentLayout
Layout information relating to detector-spectra mappings.
Definition:
LoadNexusProcessed2.h:27
Mantid::DataHandling::InstrumentLayout::NexusFormat
@ NexusFormat
Mantid::DataHandling::InstrumentLayout::Mantid
@ Mantid
Mantid::DataHandling::InstrumentLayout::NotRecognised
@ NotRecognised
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition:
AbsorptionCorrection.h:18
NeXus
Definition:
LogManager.h:17
Generated on Tue Jan 3 2023 11:57:39 for Mantid by
1.9.5