Mantid
Loading...
Searching...
No Matches
LoadDspacemap.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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"
14#include "MantidKernel/System.h"
15
16namespace Mantid {
17namespace DataHandling {
18
25class MANTID_DATAHANDLING_DLL LoadDspacemap final : public API::Algorithm {
26public:
28 const std::string name() const override { return "LoadDspacemap"; };
30 const std::string summary() const override {
31 return "Loads a Dspacemap file (POWGEN binary, VULCAN binary or ascii "
32 "format) into an OffsetsWorkspace.";
33 }
34
36 int version() const override { return 1; };
38 const std::string category() const override { return "DataHandling\\Text"; }
39
40private:
42 void init() override;
44 void exec() override;
45
46 void readVulcanAsciiFile(const std::string &fileName, std::map<detid_t, double> &vulcan);
47 void readVulcanBinaryFile(const std::string &fileName, std::map<detid_t, double> &vulcan);
48
49 void CalculateOffsetsFromDSpacemapFile(const std::string &DFileName,
51
52 void CalculateOffsetsFromVulcanFactors(std::map<detid_t, double> &vulcan,
54};
55
56} // namespace DataHandling
57} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Loads a Dspacemap file (POWGEN binary, VULCAN binary or ascii format) into an OffsetsWorkspace.
Definition: LoadDspacemap.h:25
const std::string summary() const override
Summary of algorithms purpose.
Definition: LoadDspacemap.h:30
const std::string name() const override
Algorithm's name for identification.
Definition: LoadDspacemap.h:28
const std::string category() const override
Algorithm's category for identification.
Definition: LoadDspacemap.h:38
int version() const override
Algorithm's version for identification.
Definition: LoadDspacemap.h:36
std::shared_ptr< OffsetsWorkspace > OffsetsWorkspace_sptr
shared pointer to the OffsetsWorkspace class
Helper class which provides the Collimation Length for SANS instruments.