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
12#include "MantidDataHandling/DllConfig.h"
14#include <string>
15#include <vector>
16
17namespace Mantid {
18namespace DataHandling {
19
24class MANTID_DATAHANDLING_DLL LoadPreNexus : public API::IFileLoader<Kernel::FileDescriptor>,
26public:
29
30 const std::string name() const override;
32 const std::string summary() const override { return "Load a collection of PreNexus files."; }
33
34 int version() const override;
35 const std::vector<std::string> seeAlso() const override {
36 return {"LoadEventPreNexus", "LoadPreNexusMonitors", "LoadNexus"};
37 }
38 const std::string category() const override;
39 void parseRuninfo(const std::string &runinfo, std::string &dataDir, std::vector<std::string> &eventFilenames);
41 int confidence(Kernel::FileDescriptor &descriptor) const override;
42
43private:
44 void init() override;
45 void exec() override;
46 void runLoadNexusLogs(const std::string &runinfo, const std::string &dataDir, const double prog_start,
47 const double prog_stop);
48 void runLoadMonitors(const double prog_start, const double prog_stop);
49
51};
52
53} // namespace DataHandling
54} // namespace Mantid
std::string name
Definition Run.cpp:60
Class for marking algorithms as deprecated.
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.
API::IEventWorkspace_sptr m_outputWorkspace
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 summary() const override
Summary of algorithms purpose.
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.