Mantid
Loading...
Searching...
No Matches
LoadMuonLog.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 "MantidAPI/Algorithm.h"
14#include "MantidDataHandling/DllConfig.h"
16
17namespace Mantid {
18
19namespace DataHandling {
43class MANTID_DATAHANDLING_DLL LoadMuonLog final : public API::Algorithm {
44public:
48 const std::string name() const override { return "LoadMuonLog"; };
50 const std::string summary() const override { return "Load log data from within Muon Nexus files into a workspace."; }
51
53 int version() const override { return 1; };
54 const std::vector<std::string> seeAlso() const override { return {"LoadLog", "LoadLogPropertyTable"}; }
56 const std::string category() const override { return "DataHandling\\Logs;Muon\\DataHandling"; }
57
58private:
60 void init() override;
61
63 void exec() override;
65 void addLogValueFromIndex(MuonNexusReader &nxload, const int &index, API::MatrixWorkspace_sptr &localWorkspace,
66 std::set<std::string> &logNames);
69 std::string m_filename;
70
72 std::string stringToLower(std::string strToConvert);
73
76 bool isDateTimeString(const std::string &str);
77};
78
79} // namespace DataHandling
80} // namespace Mantid
std::map< DeltaEMode::Type, std::string > index
Definition: DeltaEMode.cpp:19
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:85
Load ISIS Muon log data from a NeXus file.
Definition: LoadMuonLog.h:43
std::string m_filename
The name and path of an input file.
Definition: LoadMuonLog.h:69
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
Definition: LoadMuonLog.h:56
LoadMuonLog()
Default constructor.
const std::string name() const override
Algorithm's name for identification overriding a virtual method.
Definition: LoadMuonLog.h:48
int version() const override
Algorithm's version for identification overriding a virtual method.
Definition: LoadMuonLog.h:53
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: LoadMuonLog.h:54
const std::string summary() const override
Summary of algorithms purpose.
Definition: LoadMuonLog.h:50
MuunNexusReader opens a Nexus file and reads certain fields expected for a ISIS Muon data file (old f...
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
Helper class which provides the Collimation Length for SANS instruments.