Mantid
Loading...
Searching...
No Matches
LoadCanSAS1D2.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2007 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//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
12#include "LoadCanSAS1D.h"
14#include <Poco/DOM/Element.h>
15#include <Poco/DOM/Node.h>
16//----------------------------------------------------------------------
17
18namespace Poco {
19namespace XML {
20class Element;
21}
22} // namespace Poco
23
24namespace Mantid {
25namespace DataHandling {
55class MANTID_DATAHANDLING_DLL LoadCanSAS1D2 : public LoadCanSAS1D {
56public:
58 int version() const override { return 2; }
59 const std::vector<std::string> seeAlso() const override { return {"SaveCanSAS1D"}; }
60
61protected:
63 void init() override;
64
65 void exec() override;
67 API::MatrixWorkspace_sptr loadEntry(Poco::XML::Node *const workspaceData, std::string &runName) override;
69 API::MatrixWorkspace_sptr loadTransEntry(Poco::XML::Node *const workspaceData, std::string &runName,
70 std::string trans_name);
71
72 std::vector<API::MatrixWorkspace_sptr> trans_gp, trans_can_gp;
73
74private:
75 void processTransmission(const std::vector<API::MatrixWorkspace_sptr> &trans_gp, const std::string &trans_name,
76 const std::string &output_name);
77};
78} // namespace DataHandling
79} // namespace Mantid
This algorithm loads 1 CanSAS1d xml file into a workspace.
Definition: LoadCanSAS1D2.h:55
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: LoadCanSAS1D2.h:59
std::vector< API::MatrixWorkspace_sptr > trans_can_gp
Definition: LoadCanSAS1D2.h:72
int version() const override
Algorithm's version for identification overriding a virtual method.
Definition: LoadCanSAS1D2.h:58
API::MatrixWorkspace_sptr loadTransEntry(Poco::XML::Node *const workspaceData, std::string &runName, std::string trans_name)
Add new method to deal with loading the transmission related data.
This algorithm loads 1 CanSAS1d xml file into a workspace.
Definition: LoadCanSAS1D.h:39
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.
Definition: Algorithm.h:30