Mantid
Loading...
Searching...
No Matches
LoadPreNexus.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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
11#include "MantidDataHandling/DllConfig.h"
13#include <string>
14#include <vector>
15
16namespace Mantid {
17namespace DataHandling {
18
23class MANTID_DATAHANDLING_DLL LoadPreNexus : public API::IFileLoader<Kernel::FileDescriptor> {
24public:
25 const std::string name() const override;
27 const std::string summary() const override { return "Load a collection of PreNexus files."; }
28
29 int version() const override;
30 const std::vector<std::string> seeAlso() const override {
31 return {"LoadEventPreNexus", "LoadPreNexusMonitors", "LoadNexus"};
32 }
33 const std::string category() const override;
34 void parseRuninfo(const std::string &runinfo, std::string &dataDir, std::vector<std::string> &eventFilenames);
36 int confidence(Kernel::FileDescriptor &descriptor) const override;
37
38private:
39 void init() override;
40 void exec() override;
41 void runLoadNexusLogs(const std::string &runinfo, const std::string &dataDir, const double prog_start,
42 const double prog_stop);
43 void runLoadMonitors(const double prog_start, const double prog_stop);
44
46};
47
48} // namespace DataHandling
49} // namespace Mantid
Defines an interface to an algorithm that loads a file so that it can take part in the automatic sele...
Definition: IFileLoader.h:19
LoadPreNexus : Workflow algorithm to load a collection of preNeXus files.
Definition: LoadPreNexus.h:23
API::IEventWorkspace_sptr m_outputWorkspace
Definition: LoadPreNexus.h:45
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Definition: LoadPreNexus.h:30
const std::string summary() const override
Summary of algorithms purpose.
Definition: LoadPreNexus.h:27
Defines a wrapper around an open file.
std::shared_ptr< IEventWorkspace > IEventWorkspace_sptr
shared pointer to Mantid::API::IEventWorkspace
Helper class which provides the Collimation Length for SANS instruments.