Mantid
Loading...
Searching...
No Matches
SaveDiffCal.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 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"
13
14namespace H5 {
15class Group;
16}
17
18namespace Mantid {
19namespace DataHandling {
20
23class MANTID_DATAHANDLING_DLL SaveDiffCal final : public API::Algorithm {
24public:
25 const std::string name() const override;
26 int version() const override;
27 const std::vector<std::string> seeAlso() const override { return {"LoadDiffCal"}; }
28 const std::string category() const override;
29 const std::string summary() const override;
30
31private:
32 void init() override;
33 void exec() override;
34 std::map<std::string, std::string> validateInputs() override;
35
36 void writeDoubleFieldFromTable(H5::Group &group, const std::string &name);
37 void writeIntFieldFromTable(H5::Group &group, const std::string &name);
38 void writeIntFieldFromSVWS(H5::Group &group, const std::string &name,
40 void generateDetidToIndex();
41 bool tableHasColumn(const std::string &ColumnName) const;
42
43 // minimum of (CalibrationWorkspace_row_count,
44 // GroupingWorkspace_histogram_count, MaskWorkspace_histogram_count)
45 std::size_t m_numValues{0};
47 std::map<detid_t, size_t> m_detidToIndex;
48};
49
50} // namespace DataHandling
51} // namespace Mantid
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
SaveDiffCal : TODO: DESCRIPTION.
Definition: SaveDiffCal.h:23
API::ITableWorkspace_sptr m_calibrationWS
Definition: SaveDiffCal.h:46
std::map< detid_t, size_t > m_detidToIndex
Definition: SaveDiffCal.h:47
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso (these are not validated) algorithms related to this algorithm....
Definition: SaveDiffCal.h:27
Definition: H5Util.h:16
std::shared_ptr< ITableWorkspace > ITableWorkspace_sptr
shared pointer to Mantid::API::ITableWorkspace
std::shared_ptr< const SpecialWorkspace2D > SpecialWorkspace2D_const_sptr
shared pointer to a const SpecialWorkspace2D
Helper class which provides the Collimation Length for SANS instruments.