Mantid
Loading...
Searching...
No Matches
MuonPeriodInfo.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2021 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#include "DllOption.h"
10#include "ui_MuonPeriodInfo.h"
11
12#include <QWidget>
13
14namespace MantidQt {
15namespace MantidWidgets {
16
21 Q_OBJECT
22
23public:
25 static std::string readSampleLog(const Mantid::API::MatrixWorkspace_sptr &ws, const std::string &logName);
27 static std::vector<std::string> parseSampleLog(const std::string &log, const std::string &delim);
29 static std::vector<std::vector<std::string>> makeCorrections(std::vector<std::vector<std::string>> &logs);
30 explicit MuonPeriodInfo(QWidget *parent = nullptr);
32 void addPeriodToTable(const std::string &name, const std::string &type, const std::string &frames,
33 const std::string &totalFrames, const std::string &counts, const std::string &tag);
35 std::vector<std::vector<std::string>> getInfo(const Mantid::API::MatrixWorkspace_sptr &ws);
37 void addInfo(const Mantid::API::Workspace_sptr &ws);
39 void setWidgetTitleRuns(const std::string &title);
41 std::string getWidgetTitleRuns() const;
43 void setNumberOfSequences(const int numberOfSequences);
45 int getNumberOfSequences() const;
47 std::string getNumberOfSequencesString() const;
49 int getDAQCount() const;
51 void clear();
53 bool isEmpty() const;
54 QTableWidget *getTable() const;
55
56private:
57 void setUpTable();
58 QTableWidgetItem *createNewItem(const std::string &value) const;
59
62 Ui::MuonPeriodInfo m_uiForm;
63};
64
65} // namespace MantidWidgets
66} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
double value
The value of the point.
Definition: FitMW.cpp:51
A widget used in the Muon GUI's to display period information in a readable format.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< Workspace > Workspace_sptr
shared pointer to Mantid::API::Workspace
Definition: Workspace_fwd.h:20
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class