Mantid
Loading...
Searching...
No Matches
SaveNexusESS.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
10#include "MantidDataHandling/DllConfig.h"
12
13namespace Mantid {
14namespace DataHandling {
15
23class MANTID_DATAHANDLING_DLL SaveNexusESS : public Mantid::DataHandling::SaveNexusProcessed {
24public:
25 const std::string name() const override;
26 // cppcheck-suppress uselessOverride Should have its own version, even if it matches parent
27 int version() const override;
28 // cppcheck-suppress uselessOverride Should have its own category, even if it matches parent
29 const std::string category() const override;
30 const std::string summary() const override;
31
32protected:
33 bool processGroups() override;
34
35private:
36 void saveNexusGeometry(const Mantid::API::MatrixWorkspace &ws, const std::string &filename,
37 std::optional<size_t> entryNumber = std::optional<size_t>());
38
39 virtual bool saveLegacyInstrument() override;
40
41 void init() override;
42
43 void exec() override;
44};
45
46} // namespace DataHandling
47} // namespace Mantid
std::string name
Definition Run.cpp:60
Base MatrixWorkspace Abstract Class.
SaveNexusESS : Save algorithm to save a NeXus organised hdf5 file containing data and geometry from r...
DataHandling/SaveNexusProcessed.h.
Helper class which provides the Collimation Length for SANS instruments.