36 ParNameEdit->setText(
GetPar()->GetName());
37 ParFixedChk->setChecked(
GetPar()->GetFixed());
39 if (
GetPar()->GetRange(min,max)) {
40 RangeMinEdit->setText(QString::number(min));
41 RangeMaxEdit->setText(QString::number(max));
43 RangeMinEdit->setText(
"");
44 RangeMaxEdit->setText(
"");
47 if (
GetPar()->GetEpsilon(eps)) EpsilonEdit->setText(QString::number(eps));
48 else EpsilonEdit->setText(
"");
54 if ((RangeMinEdit->text().length()==0) && (RangeMaxEdit->text().length()==0))
57 bool okmin =
false, okmax =
false;
59 min = RangeMinEdit->text().toDouble(&okmin);
60 max = RangeMaxEdit->text().toDouble(&okmax);
62 if (RangeMinEdit->text().length()==0) { min = max; okmin = okmax; }
63 if (RangeMaxEdit->text().length()==0) { max = min; okmax = okmin; }
75 if (pars->
FindPar(name.toLatin1().constData()))
return;
76 GetPar()->SetName(name.toLatin1().constData());
77 GetItem()->setText(0,name.toLatin1().constData());
107 double zn = value.toDouble(&res);
void SetRangeUse(Bool_t use)
void SetEpsilonUse(Bool_t use)
QFitItem * Parent() const
TGo4FitParameter * FindPar(const char *ParName)
void SetEpsilon(Double_t iEpsilon)
void SetFixed(Bool_t iFixed)
void SetRange(Double_t iRangeMin, Double_t iRangeMax)