musrWiz 0.1.0
Loading...
Searching...
No Matches
PParam Class Reference

The PParam class handles a single fit parameter for the musrWiz application. More...

#include <musrWiz.h>

Public Member Functions

 PParam ()
 Constructor. Initializes the parameter to default values.
 
 ~PParam ()
 Destructor.
 
void init ()
 Initializes all member variables to default/undefined values.
 
QString getName ()
 Returns the parameter name.
 
int getNumber ()
 Returns the parameter number.
 
double getValue ()
 Returns the parameter value.
 
double getStep ()
 Returns the step size for the fit.
 
QString getPosErr ()
 Returns the positive error string.
 
QString getBoundLow ()
 Returns the lower bound for the parameter.
 
QString getBoundHigh ()
 Returns the upper bound for the parameter.
 
void setName (QString str)
 Sets the parameter name.
 
void setNumber (int ival)
 Sets the parameter number.
 
void setValue (double dval)
 Sets the parameter value.
 
void setStep (double dval)
 Sets the step size.
 
void setPosErr (QString str)
 Sets the positive error string.
 
void setBoundLow (QString str)
 Sets the lower bound.
 
void setBoundHigh (QString str)
 Sets the upper bound.
 

Private Attributes

QString fName
 parameter name
 
int fNumber
 parameter number
 
double fValue
 parameter value
 
double fStep
 step size for fitting
 
QString fPosErr
 positive error (or "none")
 
QString fBoundLow
 lower bound (optional)
 
QString fBoundHigh
 upper bound (optional)
 

Detailed Description

The PParam class handles a single fit parameter for the musrWiz application.

This class encapsulates all properties of a musrfit fit parameter including its name, number, value, step size, positive error, and optional lower/upper bounds. It is used throughout the musrWiz wizard to manage parameter definitions.

Constructor & Destructor Documentation

◆ PParam()

PParam::PParam ( )
inline

Constructor. Initializes the parameter to default values.

◆ ~PParam()

PParam::~PParam ( )
inline

Destructor.

Member Function Documentation

◆ getBoundHigh()

QString PParam::getBoundHigh ( )
inline

Returns the upper bound for the parameter.

Returns
Upper bound as QString.

◆ getBoundLow()

QString PParam::getBoundLow ( )
inline

Returns the lower bound for the parameter.

Returns
Lower bound as QString.

◆ getName()

QString PParam::getName ( )
inline

Returns the parameter name.

Returns
Parameter name as QString.

◆ getNumber()

int PParam::getNumber ( )
inline

Returns the parameter number.

Returns
Parameter number.

◆ getPosErr()

QString PParam::getPosErr ( )
inline

Returns the positive error string.

Returns
Positive error as QString.

◆ getStep()

double PParam::getStep ( )
inline

Returns the step size for the fit.

Returns
Step size.

◆ getValue()

double PParam::getValue ( )
inline

Returns the parameter value.

Returns
Parameter value.

◆ init()

void PParam::init ( )

Initializes all member variables to default/undefined values.

PParam::init initializes all member variables to default/undefined values.

Sets name, posErr, boundLow, and boundHigh to "UnDef", number to -1, and value/step to 0.0.

◆ setBoundHigh()

void PParam::setBoundHigh ( QString str)
inline

Sets the upper bound.

Parameters
strUpper bound to set.

◆ setBoundLow()

void PParam::setBoundLow ( QString str)
inline

Sets the lower bound.

Parameters
strLower bound to set.

◆ setName()

void PParam::setName ( QString str)
inline

Sets the parameter name.

Parameters
strName to set.

◆ setNumber()

void PParam::setNumber ( int ival)
inline

Sets the parameter number.

Parameters
ivalNumber to set.

◆ setPosErr()

void PParam::setPosErr ( QString str)
inline

Sets the positive error string.

Parameters
strPositive error to set.

◆ setStep()

void PParam::setStep ( double dval)
inline

Sets the step size.

Parameters
dvalStep size to set.

◆ setValue()

void PParam::setValue ( double dval)
inline

Sets the parameter value.

Parameters
dvalValue to set.

Member Data Documentation

◆ fBoundHigh

QString PParam::fBoundHigh
private

upper bound (optional)

◆ fBoundLow

QString PParam::fBoundLow
private

lower bound (optional)

◆ fName

QString PParam::fName
private

parameter name

◆ fNumber

int PParam::fNumber
private

parameter number

◆ fPosErr

QString PParam::fPosErr
private

positive error (or "none")

◆ fStep

double PParam::fStep
private

step size for fitting

◆ fValue

double PParam::fValue
private

parameter value


The documentation for this class was generated from the following files: