musredit 1.0.0
Loading...
Searching...
No Matches
PGetSingleHistoRunBlockDialog.h
Go to the documentation of this file.
1/****************************************************************************
2
3 PGetSingleHistoRunBlockDialog.h
4
5 Author: Andreas Suter
6 e-mail: andreas.suter@psi.ch
7
8*****************************************************************************/
9
10/***************************************************************************
11 * Copyright (C) 2009-2026 by Andreas Suter *
12 * andreas.suter@psi.ch *
13 * *
14 * This program is free software; you can redistribute it and/or modify *
15 * it under the terms of the GNU General Public License as published by *
16 * the Free Software Foundation; either version 2 of the License, or *
17 * (at your option) any later version. *
18 * *
19 * This program is distributed in the hope that it will be useful, *
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22 * GNU General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU General Public License *
25 * along with this program; if not, write to the *
26 * Free Software Foundation, Inc., *
27 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
28 ***************************************************************************/
29
46
47#ifndef _PGETSINGLEHISTORUNBLOCKDIALOG_H_
48#define _PGETSINGLEHISTORUNBLOCKDIALOG_H_
49
50#include <QString>
51#include <QLineEdit>
52
53#include "ui_PGetSingleHistoRunBlockDialog.h"
54
55//---------------------------------------------------------------------------
101class PGetSingleHistoRunBlockDialog : public QDialog, private Ui::PGetSingleHistoRunBlockDialog
102{
103 Q_OBJECT
104
105 public:
106 PGetSingleHistoRunBlockDialog(const QString helpUrl = "", const bool lifetimeCorrection = true);
107
112 QString getRunHeaderInfo();
113 QString getMap(bool &valid);
114
119 QString getForward() { return QString("forward " + fForwardHistoNo_lineEdit->text() + "\n"); }
120
125 QString getNorm() { return QString("norm " + fNorm_lineEdit->text() + "\n"); }
126
127 QString getData(bool &valid);
128 QString getBackground(bool &valid);
129 QString getFitRange(bool &valid);
130 QString getPacking(bool &present);
131 QString getT0(bool &present);
132 QString getMuonLifetimeParam(bool &present);
133 QString getLifetimeCorrection(bool &present);
135
136 private slots:
140 void helpContent();
141
142 private:
143 QString fHelpUrl;
144};
145
146#endif // _PGETSINGLEHISTORUNBLOCKDIALOG_H_
QString getNorm()
Gets the normalization parameter line.
QString getFitRange(bool &valid)
Generates the fit range specification for the single histogram block.
QString getForward()
Gets the forward histogram specification line.
QString fHelpUrl
URL to the online documentation for single histogram RUN blocks.
QString getPacking(bool &present)
Generates the packing (rebinning) specification for the single histogram block.
QString getMap(bool &valid)
Generates the parameter map line for the single histogram block.
QString getData(bool &valid)
Generates the data range specification for the single histogram block.
QString getT0(bool &present)
Generates the T0 (time zero) specification for the single histogram block.
PGetSingleHistoRunBlockDialog(const QString helpUrl="", const bool lifetimeCorrection=true)
Constructs the single histogram RUN block dialog.
QString getBackground(bool &valid)
Generates the background specification for the single histogram block.
void helpContent()
Opens the online help for single histogram RUN blocks.
QString getRunHeaderInfo()
Generates the RUN header line for the single histogram block.
QString getMuonLifetimeParam(bool &present)
Generates the muon lifetime parameter line for the single histogram block.
QString getLifetimeCorrection(bool &present)
Generates the lifetime correction flag for the single histogram block.