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
23using PixelType = int;
25using DasTofType = int;
26
28#pragma pack(push, 4) // Make sure the structure is 8 bytes.
35#pragma pack(pop)
37
44
45class MANTID_DATAHANDLING_DLL DetermineChunking : public API::Algorithm {
46public:
47 const std::string name() const override;
49 const std::string summary() const override {
50 return "Workflow algorithm to determine chunking strategy for event nexus, "
51 "runinfo.xml, raw, or histo nexus files.";
52 }
53
54 int version() const override;
55 const std::string category() const override;
56
57private:
58 void init() override;
59 void exec() override;
60 std::string setTopEntryName(const std::string &filename);
61 FileType getFileType(const std::string &filename);
62 bool filenameHasExtension(const std::string &filename, const std::vector<std::string> &fileExtensions);
63};
64
65} // namespace DataHandling
66} // 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.
int DasTofType
Type for the DAS time of flight (data file)
FileType
Allowed file types.
@ RAW_FILE
ISIS raw files.
@ PRENEXUS_FILE
PreNeXus files.
@ HISTO_NEXUS_FILE
Histogram NeXus files.
@ EVENT_NEXUS_FILE
Event NeXus files.
int PixelType
DetermineChunking : Workflow algorithm to determine chunking.
Helper class which provides the Collimation Length for SANS instruments.
Structure that matches the form in the binary event list.
DasTofType tof
Time of flight.
PixelType pid
Pixel identifier as published by the DAS/DAE/DAQ.