Mantid
Loading...
Searching...
No Matches
PDLoadCharacterizations.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2013 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
9#include <iosfwd>
10
13#include "MantidDataHandling/DllConfig.h"
14
15namespace Mantid {
16namespace DataHandling {
17
21class MANTID_DATAHANDLING_DLL PDLoadCharacterizations : public API::ParallelAlgorithm {
22public:
23 const std::string name() const override;
24 int version() const override;
25 const std::string category() const override;
27 const std::string summary() const override {
28 return "Load a characterization file used in Powder Diffraction Reduction.";
29 }
30
31private:
32 void init() override;
33 void exec() override;
34 std::vector<std::string> getFilenames();
35 int readFocusInfo(std::ifstream &file, const std::string &filename);
36 void readCharInfo(std::ifstream &file, API::ITableWorkspace_sptr &wksp, const std::string &filename, int linenum);
37 void readVersion0(const std::string &filename, API::ITableWorkspace_sptr &wksp);
38 void readVersion1(const std::string &filename, API::ITableWorkspace_sptr &wksp);
39 void readExpIni(const std::string &filename, API::ITableWorkspace_sptr &wksp);
40};
41
42} // namespace DataHandling
43} // namespace Mantid
Base class for algorithms that can run in parallel on all MPI ranks but not in a distributed fashion.
LoadPDCharacterizations : Load a characterization file used in Powder Diffraction Reduction.
const std::string summary() const override
Summary of algorithms purpose.
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace
Helper class which provides the Collimation Length for SANS instruments.