Mantid
Loading...
Searching...
No Matches
InstrumentSpectraMapping.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2026 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 "MantidDataHandling/DllConfig.h"
10
11#include <string>
12
13namespace Mantid {
14namespace API {
15class Algorithm;
16class MatrixWorkspace;
17} // namespace API
18namespace Kernel {
19class Logger;
20}
21namespace DataHandling {
22
24MANTID_DATAHANDLING_DLL extern const std::string SPECTRA_MAP_SOURCE;
25MANTID_DATAHANDLING_DLL extern const std::string SPECTRA_MAP_FROM_INSTRUMENT;
26
43MANTID_DATAHANDLING_DLL bool correctSpectraMapping(API::MatrixWorkspace &workspace, Kernel::Logger &log);
44
52MANTID_DATAHANDLING_DLL void correctLoadedWorkspaces(const API::Algorithm &loader, Kernel::Logger &log);
53
54} // namespace DataHandling
55} // namespace Mantid
IPeaksWorkspace_sptr workspace
MANTID_DATAHANDLING_DLL void correctLoadedWorkspaces(const API::Algorithm &loader, Kernel::Logger &log)
Applies correctSpectraMapping to whichever workspaces a loader declared: its output,...
MANTID_DATAHANDLING_DLL bool correctSpectraMapping(API::MatrixWorkspace &workspace, Kernel::Logger &log)
Corrects spectrum-to-detector mappings for files that use detector IDs not recognized by the instrume...
MANTID_DATAHANDLING_DLL const std::string SPECTRA_MAP_SOURCE
The specific instrument parameter and target value that enables the correction.
MANTID_DATAHANDLING_DLL const std::string SPECTRA_MAP_FROM_INSTRUMENT
Helper class which provides the Collimation Length for SANS instruments.