Mantid
Loading...
Searching...
No Matches
DetermineChunking.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"
12#include <string>
13#include <vector>
14
15namespace Mantid {
16namespace DataHandling {
17
23
29
30class MANTID_DATAHANDLING_DLL DetermineChunking : public API::Algorithm {
31public:
32 const std::string name() const override;
34 const std::string summary() const override {
35 return "Workflow algorithm to determine chunking strategy for event nexus, "
36 "raw, or histo nexus files.";
37 }
38
39 int version() const override;
40 const std::string category() const override;
41
42private:
43 void init() override;
44 void exec() override;
45 std::string setTopEntryName(const std::string &filename);
46 FileType getFileType(const std::string &filename);
47 bool filenameHasExtension(const std::string &filename, const std::vector<std::string> &fileExtensions);
48};
49
50} // namespace DataHandling
51} // namespace Mantid
std::string name
Definition Run.cpp:60
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
const std::string summary() const override
Summary of algorithms purpose.
FileType
DetermineChunking : Workflow algorithm to determine chunking.
@ RAW_FILE
ISIS raw files.
@ HISTO_NEXUS_FILE
Histogram NeXus files.
@ EVENT_NEXUS_FILE
Event NeXus files.
Helper class which provides the Collimation Length for SANS instruments.