Mantid
Loading...
Searching...
No Matches
LoadDiffCal.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
10#include "MantidDataHandling/DllConfig.h"
12
13namespace H5 {
14class H5File;
15class Group;
16} // namespace H5
17
18namespace Mantid {
19namespace DataHandling {
20
23class MANTID_DATAHANDLING_DLL LoadDiffCal 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 {"SaveDiffCal"}; }
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 void getInstrument(H5::H5File &file);
35 void loadGroupingFromAlternateFile();
36 void runLoadCalFile();
37 void makeGroupingWorkspace(const std::vector<int32_t> &detids, const std::vector<int32_t> &groups);
38 void makeMaskWorkspace(const std::vector<int32_t> &detids, const std::vector<int32_t> &use);
39 void makeCalWorkspace(const std::vector<int32_t> &detids, const std::vector<double> &difc,
40 const std::vector<double> &difa, const std::vector<double> &tzero,
41 const std::vector<int32_t> &dasids, const std::vector<double> &offsets,
42 const std::vector<int32_t> &use);
43
44 std::string m_filename;
45 std::string m_workspaceName;
47};
48
49} // namespace DataHandling
50} // namespace Mantid
std::string name
Definition Run.cpp:60
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
LoadDiffCal : TODO: DESCRIPTION.
Definition LoadDiffCal.h:23
Geometry::Instrument_const_sptr m_instrument
Definition LoadDiffCal.h:46
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 LoadDiffCal.h:27
std::shared_ptr< const Instrument > Instrument_const_sptr
Shared pointer to an const instrument object.
Helper class which provides the Collimation Length for SANS instruments.