11#include "MantidDataHandling/DllConfig.h"
13#include "MantidNexus/NexusFile.h"
21namespace DataHandling {
40 const std::string
name()
const override {
return "SaveNexusProcessed"; }
42 const std::string
summary()
const override {
43 return "The SaveNexusProcessed algorithm will write the given Mantid "
44 "workspace to a Nexus file. SaveNexusProcessed may be invoked by "
49 int version()
const override {
return 1; }
50 const std::vector<std::string>
seeAlso()
const override {
return {
"SaveNexus",
"LoadNexusProcessed"}; }
52 const std::string
category()
const override {
return "DataHandling\\Nexus"; }
54 void saveSpectraDetectorMapNexus(
const API::MatrixWorkspace &ws, Nexus::File *file,
const std::vector<int> &wsIndices,
57 void saveSpectrumNumbersNexus(
const API::MatrixWorkspace &ws, Nexus::File *file,
const std::vector<int> &wsIndices,
64 bool processGroups()
override;
75 static void appendEventListData(
const std::vector<T> &events,
size_t offset,
double *tofs,
float *weights,
76 float *errorSquareds, int64_t *pulsetimes);
79 const std::vector<int> &spec);
81 void setOtherProperties(
IAlgorithm *alg,
const std::string &propertyName,
const std::string &propertyValue,
82 int perioidNum)
override;
84 const bool keepFile =
false, std::optional<size_t> entryNumber = std::optional<size_t>());
91 double m_timeProgInit{0.0};
NXcompression
The available compression types:
Base class from which all concrete algorithm classes should be derived.
IAlgorithm is the interface implemented by the Algorithm base class.
Base MatrixWorkspace Abstract Class.
DataHandling/SaveNexusProcessed.h.
DataObjects::EventWorkspace_const_sptr m_eventWorkspace
Pointer to the local workspace, cast to EventWorkspace.
const std::string summary() const override
Summary of algorithms purpose.
virtual bool saveLegacyInstrument()
API::MatrixWorkspace_const_sptr m_inputWorkspace
Pointer to the local workspace.
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
int version() const override
Algorithm's version for identification overriding a virtual method.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
std::unique_ptr< API::Progress > m_progress
Progress bar.
Utility methods for saving Mantid Workspaces in NeXus format.
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
std::shared_ptr< const EventWorkspace > EventWorkspace_const_sptr
shared pointer to a const Workspace2D
Helper class which provides the Collimation Length for SANS instruments.