66 fImmediateDraw (
kTRUE),
145 fParFix[i]->
Connect(
"Toggled(Bool_t)",
"TFitParametersDialog",
this,
"DoParFix(Bool_t)");
158 fParBnd[i]->
Connect(
"Toggled(Bool_t)",
"TFitParametersDialog",
this,
"DoParBound(Bool_t)");
178 this,
"DoParValue()");
179 fParVal[i]->
Connect(
"ValueSet(Long_t)",
"TFitParametersDialog",
this,
"DoParValue()");
198 fParMin[i]->
Connect(
"ReturnPressed()",
"TFitParametersDialog",
this,
200 fParMin[i]->
Connect(
"TabPressed()",
"TFitParametersDialog",
this,
"HandleTab()");
201 fParMin[i]->
Connect(
"ShiftTabPressed()",
"TFitParametersDialog",
this,
"HandleShiftTab()");
231 fParMax[i]->
Connect(
"ReturnPressed()",
"TFitParametersDialog",
this,
"DoParMaxLimit()");
232 fParMax[i]->
Connect(
"TabPressed()",
"TFitParametersDialog",
this,
"HandleTab()");
233 fParMax[i]->
Connect(
"ShiftTabPressed()",
"TFitParametersDialog",
this,
"HandleShiftTab()");
250 this,
"DoParStep()");
251 fParStp[i]->
Connect(
"ValueSet(Long_t)",
"TFitParametersDialog",
this,
"DoParStep()");
284 fUpdate->
Connect(
"Toggled(Bool_t)",
"TFitParametersDialog",
this,
"HandleButtons(Bool_t)");
293 fReset->
Connect(
"Clicked()",
"TFitParametersDialog",
this,
"DoReset()");
298 fApply->
Connect(
"Clicked()",
"TFitParametersDialog",
this,
"DoApply()");
303 fOK->
SetToolTipText(
"Apply parameter settings, redraw function and close this dialog");
304 fOK->
Connect(
"Clicked()",
"TFitParametersDialog",
this,
"DoOK()");
309 fCancel->
Connect(
"Clicked()",
"TFitParametersDialog",
this,
"DoCancel()");
343 fParSld[i]->
Connect(
"PointerPositionChanged()",
"TFitParametersDialog",
386 txt =
"Do you want to apply last parameters' setting?";
394 else if (ret ==
kMBNo)
427 if (
id ==
kBND*fNP+i) {
432 txt =
"'Min' value cannot be bigger or equal to 'Max' - set the limits first!";
497 if (
id ==
kFIX*fNP+i) {
503 if (
fParVal[i]->GetNumber() != 0) {
520 }
else if (!
fParMin[i]->IsEnabled()) {
538 }
else if (
fPval[i]) {
553 this,
"DoParBound(Bool_t)");
563 fParSld[i]->
Connect(
"PointerPositionChanged()",
"TFitParametersDialog",
693 if (!
fParMax[i]->IsEnabled()) {
702 fParSld[i]->
Connect(
"PointerPositionChanged()",
"TFitParametersDialog",
708 this,
"DoParBound(Bool_t)");
737 if (
id ==
kSLD*fNP+i) {
763 if (
id ==
kVAL*fNP+i) {
810 if (
id ==
kMIN*fNP+i) {
815 txt =
"'Min' cannot be bigger then 'Max' if this parameter is bounded.";
853 if (
id ==
kMAX*fNP+i) {
858 txt =
"'Min' cannot be bigger then 'Max' if this parameter is bounded.";
892 if ( !
fFpad )
return;
912 if (save)
gPad = save;
virtual void DoParFix(Bool_t on)
Slot related to the Fix check button.
virtual void DoParMaxLimit()
Slot related to the maximum parameter limit settings.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void HandleTab()
Handle Tab key event (set focus to the next number entry field)
Int_t GetState(TGFrame *f) const
Get state of sub frame.
Double_t Floor(Double_t x)
virtual void ReleaseParameter(Int_t ipar)
Release parameter number ipar If used in a fit, the parameter can vary freely.
virtual void ReturnPressed()
Return was pressed.
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
R__EXTERN void * gTQSender
const TGWindow * GetRoot() const
Returns current root (i.e.
virtual void DoApply()
Slot related to the Preview button.
virtual TObject * Last() const
Return the last object in the list. Returns 0 when list is empty.
virtual void SetRange(Double_t xmin, Double_t xmax)
Initialize the upper and lower bounds to draw the function.
virtual void SetNumber(Double_t val)
void ToUpper()
Change string to upper case.
virtual void DoCancel()
Slot related to the Cancel button.
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
virtual void SetState(Bool_t enable=kTRUE)
Set the active state.
virtual void SetLimits(ELimit limits=TGNumberFormat::kNELNoLimits, Double_t min=0, Double_t max=1)
virtual Double_t GetParError(Int_t ipar) const
Return value of parameter number ipar.
virtual void SetRange(Float_t min, Float_t max)
TGTripleHSlider ** fParSld
TFitParametersDialog(const TGWindow *p, const TGWindow *main, TF1 *func, TVirtualPad *pad, Int_t *ret_code=0)
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
TGCompositeFrame * fContVal
virtual Style_t GetLineStyle() const
Return the line style.
TGNumberEntryField ** fParErr
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
TGCompositeFrame * fContErr
virtual void SetPointerPosition(Float_t pos)
Set pointer position in scaled (real) value.
virtual void DoParMinLimit()
Slot related to the minumum parameter limit settings.
Double_t Log10(Double_t x)
virtual void SetFocus()
Set focus to this text entry.
TGCompositeFrame(const TGCompositeFrame &)
virtual void CloseWindow()
Close parameters' dialog.
virtual Double_t GetNumber() const
Get the numeric value (floating point representation).
int main(int argc, char **argv)
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual Option_t * GetDrawOption() const
Get option used by the graphics system to draw this object.
virtual const char * GetParName(Int_t ipar) const
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
virtual void SetParLimits(Int_t ipar, Double_t parmin, Double_t parmax)
Set limits for parameter ipar.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
void SetLimitValues(Double_t min=0, Double_t max=1)
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void HandleButtons(Bool_t update)
Handle the button dependent states in this dialog.
TGCompositeFrame * fContNam
virtual void DoParBound(Bool_t on)
Slot related to the Bound check button.
virtual void SetParError(Int_t ipar, Double_t error)
Set error for parameter number ipar.
virtual TObject * Before(const TObject *obj) const
Returns the object before object obj.
TGNumberEntryField ** fParMax
static void update(gsl_integration_workspace *workspace, double a1, double b1, double area1, double error1, double a2, double b2, double area2, double error2)
virtual void DrawFunction()
Redraw function graphics.
virtual void DoOK()
Slot related to the OK button.
char * Form(const char *fmt,...)
virtual void FixParameter(Int_t ipar, Double_t value)
Fix the value of a parameter The specified value will be used in a fit operation. ...
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
virtual void HandleShiftTab()
Handle Shift+Tab key event (set focus to the previous number entry field)
virtual void DoReset()
Slot related to the Reset button.
constexpr Double_t E()
Base of natural log: .
TGNumberEntryField ** fParMin
virtual void SetFormat(EStyle style, EAttribute attr=TGNumberFormat::kNEAAnyNumber)
virtual void DoParStep()
Slot related to parameter step setting.
virtual void DoParValue()
Slot related to the parameter value settings.
void SetEnabled(Bool_t flag=kTRUE)
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Clear(Option_t *option="")
Remove all objects from the list.
virtual void SetConstrained(Bool_t on=kTRUE)
Set pointer position constrained in the slider range.
virtual void SetLineStyle(Style_t lstyle)
Set the line style.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
Mother of all ROOT objects.
virtual void UnmapWindow()
virtual Int_t GetNpar() const
TGCompositeFrame * fContMax
virtual void GetParLimits(Int_t ipar, Double_t &parmin, Double_t &parmax) const
Return limits for parameter ipar.
virtual void SetNumber(Double_t val)
Set the numeric value (floating point representation).
virtual void DoSlider()
Slot related to the parameters' value settings.
TGNumberEntryField * GetNumberEntry() const
virtual void Add(TObject *obj)
virtual Double_t GetParameter(Int_t ipar) const
virtual void GetRange(Double_t *xmin, Double_t *xmax) const
Return range of a generic N-D function.
void SetParameters()
Set the parameter values inside the function.
TGCompositeFrame * fContBnd
TGCompositeFrame * fContSld
void DisconnectSlots()
Disconnect signals from slot methods.
virtual void SetPosition(Float_t min, Float_t max)
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
virtual void SetParameter(Int_t param, Double_t value)
void Home(Bool_t mark=kFALSE)
Moves the text cursor to the left end of the line.
virtual ~TFitParametersDialog()
Destructor.
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line...
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void DeleteWindow()
Delete window.
TGCompositeFrame * fContFix
virtual const char * GetTitle() const
Returns title of object.
TGCompositeFrame * fContStp
TGCompositeFrame * fContMin