-
Notifications
You must be signed in to change notification settings - Fork 122
/
LoadPreNexus.h
49 lines (41 loc) · 1.75 KB
/
LoadPreNexus.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2012 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
#include "MantidAPI/IEventWorkspace_fwd.h"
#include "MantidAPI/IFileLoader.h"
#include "MantidKernel/FileDescriptor.h"
#include "MantidKernel/System.h"
#include <string>
#include <vector>
namespace Mantid {
namespace DataHandling {
/** LoadPreNexus : Workflow algorithm to load a collection of preNeXus files.
@date 2012-01-30
*/
class DLLExport LoadPreNexus : public API::IFileLoader<Kernel::FileDescriptor> {
public:
const std::string name() const override;
/// Summary of algorithms purpose
const std::string summary() const override { return "Load a collection of PreNexus files."; }
int version() const override;
const std::vector<std::string> seeAlso() const override {
return {"LoadEventPreNexus", "LoadPreNexusMonitors", "LoadNexus"};
}
const std::string category() const override;
void parseRuninfo(const std::string &runinfo, std::string &dataDir, std::vector<std::string> &eventFilenames);
/// Returns a confidence value that this algorithm can load a file
int confidence(Kernel::FileDescriptor &descriptor) const override;
private:
void init() override;
void exec() override;
void runLoadNexusLogs(const std::string &runinfo, const std::string &dataDir, const double prog_start,
const double prog_stop);
void runLoadMonitors(const double prog_start, const double prog_stop);
API::IEventWorkspace_sptr m_outputWorkspace;
};
} // namespace DataHandling
} // namespace Mantid