musrWiz 0.1.0
Loading...
Searching...
No Matches
musrWiz.h
Go to the documentation of this file.
1/***************************************************************************
2
3 musrWiz.h
4
5 Author: Andreas Suter
6 e-mail: andreas.suter@psi.ch
7
8***************************************************************************/
9
10/***************************************************************************
11 * Copyright (C) 2007-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
30#ifndef _MUSRWIZ_H_
31#define _MUSRWIZ_H_
32
33#include <QString>
34
42class PParam {
43 public:
47 PParam() { init(); }
48
53
57 void init();
58
63 QString getName() { return fName; }
64
69 int getNumber() { return fNumber; }
70
75 double getValue() { return fValue; }
76
81 double getStep() { return fStep; }
82
87 QString getPosErr() { return fPosErr; }
88
93 QString getBoundLow() { return fBoundLow; }
94
99 QString getBoundHigh() { return fBoundHigh; }
100
105 void setName(QString str) { fName = str; }
106
111 void setNumber(int ival) { fNumber = ival; }
112
117 void setValue(double dval) { fValue = dval; }
118
123 void setStep(double dval) { fStep = dval; }
124
129 void setPosErr(QString str) { fPosErr = str; }
130
135 void setBoundLow(QString str) { fBoundLow = str; }
136
141 void setBoundHigh(QString str) { fBoundHigh = str; }
142
143 private:
144 QString fName;
146 double fValue;
147 double fStep;
148 QString fPosErr;
149 QString fBoundLow;
150 QString fBoundHigh;
151};
152
159struct PFunc {
160 int number;
161 QString fun;
162};
163
164#endif // _MUSRWIZ_H_
double fStep
step size for fitting
Definition musrWiz.h:147
double getValue()
Returns the parameter value.
Definition musrWiz.h:75
QString getBoundLow()
Returns the lower bound for the parameter.
Definition musrWiz.h:93
QString fBoundLow
lower bound (optional)
Definition musrWiz.h:149
double getStep()
Returns the step size for the fit.
Definition musrWiz.h:81
void setBoundLow(QString str)
Sets the lower bound.
Definition musrWiz.h:135
QString getName()
Returns the parameter name.
Definition musrWiz.h:63
QString fBoundHigh
upper bound (optional)
Definition musrWiz.h:150
double fValue
parameter value
Definition musrWiz.h:146
void setPosErr(QString str)
Sets the positive error string.
Definition musrWiz.h:129
int getNumber()
Returns the parameter number.
Definition musrWiz.h:69
void setBoundHigh(QString str)
Sets the upper bound.
Definition musrWiz.h:141
void setStep(double dval)
Sets the step size.
Definition musrWiz.h:123
void setName(QString str)
Sets the parameter name.
Definition musrWiz.h:105
QString getPosErr()
Returns the positive error string.
Definition musrWiz.h:87
void init()
Initializes all member variables to default/undefined values.
Definition musrWiz.cpp:25
QString fPosErr
positive error (or "none")
Definition musrWiz.h:148
PParam()
Constructor. Initializes the parameter to default values.
Definition musrWiz.h:47
int fNumber
parameter number
Definition musrWiz.h:145
QString getBoundHigh()
Returns the upper bound for the parameter.
Definition musrWiz.h:99
QString fName
parameter name
Definition musrWiz.h:144
void setValue(double dval)
Sets the parameter value.
Definition musrWiz.h:117
~PParam()
Destructor.
Definition musrWiz.h:52
void setNumber(int ival)
Sets the parameter number.
Definition musrWiz.h:111
The PFunc struct holds a function definition for musrfit.
Definition musrWiz.h:159
int number
function number (e.g., 1 for fun1)
Definition musrWiz.h:160
QString fun
function expression string (e.g., "fun1 = par1 * par2")
Definition musrWiz.h:161