Logo ROOT  
Reference Guide
TFitEditor.h
Go to the documentation of this file.
1 // @(#)root/fitpanel:$Id$
2 // Author: Ilka Antcheva, Lorenzo Moneta, David Gonzalez Maline 10/08/2006
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TFitEditor
13 #define ROOT_TFitEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TFitEditor //
18 // //
19 // Allows to explore and compare various fits. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TGFrame.h"
24 #include "TGButton.h"
25 
26 #include "Foption.h"
27 #include "Math/MinimizerOptions.h"
28 #include "Fit/DataRange.h"
29 
30 #include <vector>
31 #include <map>
32 
33 //--- Object types
41 };
42 
43 
44 class TGTab;
45 class TVirtualPad;
46 class TCanvas;
47 class TGLabel;
48 class TGComboBox;
49 class TGTextEntry;
50 class TGNumberEntry;
51 class TGDoubleHSlider;
52 class TGNumberEntry;
53 class TGNumberEntryField;
54 class TGStatusBar;
55 class TAxis;
56 class TF1;
57 class TF1NormSum;
58 class TF1Convolution;
59 
60 
61 class TFitEditor : public TGMainFrame {
62 
63 protected:
64  TGTab *fTab; // tab widget holding the editor
65  TGCompositeFrame *fTabContainer; // main tab container
66  TGCompositeFrame *fGeneral; // general tab
67  TGCompositeFrame *fMinimization; // minimization tab
68  TGTextButton *fUpdateButton; // updates data from gROOT and gDirectory
69  TGTextButton *fFitButton; // performs fitting
70  TGTextButton *fResetButton; // resets fit parameters
71  TGTextButton *fCloseButton; // close the fit panel
72  TGLabel *fSelLabel; // contains selected fit function
73  TGComboBox *fDataSet; // contains list of data set to be fitted
74  TGComboBox *fTypeFit; // contains the types of functions to be selected
75  TGComboBox *fFuncList; // contains function list
76  TGTextEntry *fEnteredFunc; // contains user function file name
77  TGTextButton *fUserButton; // opens a dialog for user-defined fit method
78  TGRadioButton *fNone; // set no operation mode
79  TGRadioButton *fAdd; // set addition mode
80  TGRadioButton *fNormAdd; // set normalized addition mode
81  TGRadioButton *fConv; // set convolution mode
82  TGLayoutHints *fLayoutNone; // layout hints of fNone radio button
83  TGLayoutHints *fLayoutAdd; // layout hints of fAdd radio button
84  TGLayoutHints *fLayoutNormAdd; // layout hints of fNOrmAdd radio button
85  TGLayoutHints *fLayoutConv; // layout hints of fConv radio button
86  TGTextButton *fSetParam; // open set parameters dialog
87  TGCheckButton *fIntegral; // switch on/off option 'integral'
88  TGCheckButton *fBestErrors; // switch on/off option 'improve errors'
89  TGCheckButton *fUseRange; // switch on/off option 'use function range'
90  TGCheckButton *fAdd2FuncList; // switch on/off option 'add to list'
91  TGCheckButton *fUseGradient ; // switch on/off option 'use gradient'
92  TGCheckButton *fAllWeights1; // switch on/off option 'all weights=1'
93  TGCheckButton *fImproveResults; // switch on/off option 'improve fit results'
94  TGCheckButton *fEmptyBinsWghts1; // switch on/off option 'include empry bins'
95  TGComboBox *fMethodList; // contains method list
96  TGCheckButton *fLinearFit; // switch on/off linear fit option
97  TGCheckButton *fNoChi2; // switch on/off option 'No Chi-square'
98  TGCheckButton *fNoStoreDrawing; // switch on/off 'no store/drwing' option
99  TGCheckButton *fNoDrawing; // switch on/off 'no drawing' option
100  TGCheckButton *fDrawSame; // switch on/off fit function drawing
101  TGTextButton *fDrawAdvanced; // opens a dialog for advanced draw options
102  TGDoubleHSlider *fSliderX; // slider to set fit range along x-axis
103  TGNumberEntry *fSliderXMax; // entry to set the maximum in the range
104  TGNumberEntry *fSliderXMin; // entry to set the minumum in the range
105  TGDoubleHSlider *fSliderY; // slider to set fit range along y-axis
106  TGNumberEntry *fSliderYMax; // entry to set the maximum in the range
107  TGNumberEntry *fSliderYMin; // entry to set the minumum in the range
108  TGDoubleHSlider *fSliderZ; // slider to set fit range along z-axis
109  TGHorizontalFrame *fSliderXParent; // parent of fSliderX
110  TGHorizontalFrame *fSliderYParent; // parent of fSliderY
111  TGHorizontalFrame *fSliderZParent; // parent of fSliderZ
112  TGCheckButton *fEnableRobust; // switch on/off robust option
113  TGNumberEntry *fRobustValue; // contains robust value for linear fit
114  TGRadioButton *fOptDefault; // set default printing mode
115  TGRadioButton *fOptVerbose; // set printing mode to 'Verbose'
116  TGRadioButton *fOptQuiet; // set printing mode to 'Quiet'
117  TVirtualPad *fParentPad; // pad containing the object
118  TObject *fFitObject; // selected object to fit
119  EObjectType fType; // object type info
120  Int_t fDim; // object dimension
121  TAxis *fXaxis; // x-axis
122  TAxis *fYaxis; // y-axis
123  TAxis *fZaxis; // z-axis
124  TF1NormSum *fSumFunc; //! TF1NormSum object
125  TF1Convolution *fConvFunc; //! TF1Convolution object
126 
127  // structure holding parameter value and limits
130  fP[0] = 0; fP[1] = 0; fP[2] = 0;
131  }
132  Double_t & operator[](UInt_t i) { return fP[i];}
134  };
135  std::vector<FuncParamData_t> fFuncPars; // function parameters (value + limits)
136 
137  std::multimap<TObject*, TF1*> fPrevFit; // Previous successful fits.
138  std::vector<TF1*> fSystemFuncs; // functions managed by the fitpanel
139 
140  TGRadioButton *fLibMinuit; // set default minimization library (Minuit)
141  TGRadioButton *fLibMinuit2; // set Minuit2 as minimization library
142  TGRadioButton *fLibFumili; // set Fumili as minimization library
143  TGRadioButton *fLibGSL; // set GSL as minimization library
144  TGRadioButton *fLibGenetics; // set Genetic/GALib as minimization library
145  TGComboBox *fMinMethodList; // set the minimization method
146  TGNumberEntryField *fErrorScale; // contains error scale set for minimization
147  TGNumberEntryField *fTolerance; // contains tolerance set for minimization
148  TGNumberEntryField *fIterations; // contains maximum number of iterations
149 
150  TGStatusBar *fStatusBar; // statusbar widget
151 
152  Bool_t fChangedParams; // flag to indicate if the parameters have been set in the ParameterDialog GUI
153 
154  static TFitEditor *fgFitDialog; // singleton fit panel
155 
156 protected:
157  void GetFunctionsFromSystem();
158  void ProcessTreeInput(TObject* objSelected, Int_t selected,
159  TString variables, TString cuts);
160  TF1* FindFunction();
161  void FillDataSetList();
162  TGComboBox* BuildMethodList(TGFrame *parent, Int_t id);
164  TF1* GetFitFunction();
166  void DrawSelection(bool restore = false);
167  Int_t CheckFunctionString(const char* str);
168  void CreateFunctionGroup();
169  void CreateGeneralTab();
170  void CreateMinimizationTab();
171  void MakeTitle(TGCompositeFrame *parent, const char *title);
172  TF1* HasFitFunction();
173  void SetEditable(Bool_t);
174 
175 private:
176  TFitEditor(const TFitEditor&); // not implemented
177  TFitEditor& operator=(const TFitEditor&); // not implemented
178 
180 
181 public:
182  TFitEditor(TVirtualPad* pad, TObject *obj);
183  virtual ~TFitEditor();
184 
186 
187  static TFitEditor *GetInstance(TVirtualPad* pad = 0, TObject *obj = 0);
188  virtual Option_t *GetDrawOption() const;
189  virtual void Hide();
190  virtual void Show(TVirtualPad* pad, TObject *obj);
191 
192  void ShowObjectName(TObject* obj);
194  virtual void Terminate();
195  void UpdateGUI();
196 
197  virtual void CloseWindow();
198  virtual void ConnectSlots();
199  virtual void DisconnectSlots();
200  virtual void RecursiveRemove(TObject* obj);
201 
202 protected:
203  virtual void SetCanvas(TCanvas *c);
204 
205 public:
206  virtual void SetFitObject(TVirtualPad *pad, TObject *obj, Int_t event);
207  virtual void SetFunction(const char *function);
208 
209  // slot methods 'General' tab
210  void FillFunctionList(Int_t selected = -1);
211  void FillMinMethodList(Int_t selected = -1);
212  virtual void DoAddition(Bool_t on);
213  virtual void DoNormAddition(Bool_t on);
214  virtual void DoConvolution(Bool_t on);
215  virtual void DoAdvancedOptions();
216  virtual void DoAllWeights1();
217  virtual void DoClose();
218  virtual void DoEmptyBinsAllWeights1();
219  virtual void DoEnteredFunction();
220  virtual void DoUpdate();
221  virtual void DoFit();
222  virtual void DoMaxIterations();
223  virtual void DoDataSet(Int_t sel);
224  virtual void DoFunction(Int_t sel);
225  virtual void DoLinearFit();
226  virtual void DoNoChi2();
227  virtual void DoNoSelection();
228  virtual void DoNoStoreDrawing();
229  virtual void DoReset();
230  virtual void DoRobustFit();
231  virtual void DoSetParameters();
232  virtual void DoSliderXMoved();
233  virtual void DoNumericSliderXChanged();
234  virtual void DoSliderYMoved();
235  virtual void DoNumericSliderYChanged();
236  virtual void DoSliderZMoved();
237  virtual void DoUserDialog();
238  virtual void DoUseFuncRange();
239 
240  // slot methods 'Minimization' tab
241  virtual void DoLibrary(Bool_t on);
242  virtual void DoMinMethod(Int_t );
243  virtual void DoPrintOpt(Bool_t on);
244 
245 public:
246  typedef std::vector<FuncParamData_t > FuncParams_t;
247 
248  friend class FitEditorUnitTesting;
249  ClassDef(TFitEditor,0) //Fit Panel interface
250 };
251 
252 #endif
c
#define c(i)
Definition: RSha256.hxx:101
TFitEditor::fSliderY
TGDoubleHSlider * fSliderY
Definition: TFitEditor.h:105
TFitEditor::MakeTitle
void MakeTitle(TGCompositeFrame *parent, const char *title)
Create section title in the GUI.
Definition: TFitEditor.cxx:3258
TFitEditor::fDrawSame
TGCheckButton * fDrawSame
Definition: TFitEditor.h:100
TFitEditor::SetObjectType
Bool_t SetObjectType(TObject *obj)
Check whether the object suitable for fitting and set its type, dimension and method combo box accord...
Definition: TFitEditor.cxx:2952
TAxis
Class to manage histogram axis.
Definition: TAxis.h:30
TFitEditor::fLinearFit
TGCheckButton * fLinearFit
Definition: TFitEditor.h:96
TFitEditor::GetInstance
static TFitEditor * GetInstance(TVirtualPad *pad=0, TObject *obj=0)
Static method - opens the fit panel.
Definition: TFitEditor.cxx:333
TFitEditor::DoUserDialog
virtual void DoUserDialog()
Open a dialog for getting a user defined method.
Definition: TFitEditor.cxx:2933
TFitEditor::fFitObject
TObject * fFitObject
Definition: TFitEditor.h:118
TFitEditor::fParentPad
TVirtualPad * fParentPad
Definition: TFitEditor.h:117
TFitEditor::GetListOfFittingFunctions
TList * GetListOfFittingFunctions(TObject *obj=0)
Definition: TFitEditor.cxx:3566
TFitEditor::GetFunctionsFromSystem
void GetFunctionsFromSystem()
Definition: TFitEditor.cxx:3525
TFitEditor::DoNumericSliderYChanged
virtual void DoNumericSliderYChanged()
syncronize the numeric slider with the graphical one.
Definition: TFitEditor.cxx:2905
TGMainFrame
Definition: TGFrame.h:444
TFitEditor::fTabContainer
TGCompositeFrame * fTabContainer
Definition: TFitEditor.h:65
TFitEditor::FuncParamData_t::operator[]
Double_t & operator[](UInt_t i)
Definition: TFitEditor.h:132
TFitEditor::fCloseButton
TGTextButton * fCloseButton
Definition: TFitEditor.h:71
TFitEditor::FuncParams_t
std::vector< FuncParamData_t > FuncParams_t
Definition: TFitEditor.h:246
TFitEditor::fMinimization
TGCompositeFrame * fMinimization
Definition: TFitEditor.h:67
kObjectGraph2D
@ kObjectGraph2D
Definition: TFitEditor.h:37
Option_t
const char Option_t
Definition: RtypesCore.h:66
TFitEditor::GetDrawOption
virtual Option_t * GetDrawOption() const
Get draw options of the selected object.
Definition: TFitEditor.cxx:3109
Foption_t
Definition: Foption.h:24
TFitEditor::DoAdvancedOptions
virtual void DoAdvancedOptions()
Slot connected to advanced option button (opens a dialog).
Definition: TFitEditor.cxx:1903
TFitEditor::fTolerance
TGNumberEntryField * fTolerance
Definition: TFitEditor.h:147
TFitEditor::DoSliderYMoved
virtual void DoSliderYMoved()
Slot connected to range settings on y-axis.
Definition: TFitEditor.cxx:2890
TFitEditor::DoConvolution
virtual void DoConvolution(Bool_t on)
Slot connected to addition of predefined functions.
Definition: TFitEditor.cxx:2307
TFitEditor::fgFitDialog
static TFitEditor * fgFitDialog
Definition: TFitEditor.h:154
TFitEditor::DoNormAddition
virtual void DoNormAddition(Bool_t on)
Slot connected to addition of predefined functions.
Definition: TFitEditor.cxx:2283
TFitEditor::DoClose
virtual void DoClose()
Close the fit panel.
Definition: TFitEditor.cxx:1967
kObjectHisto
@ kObjectHisto
Definition: TFitEditor.h:35
TF1NormSum
Class adding two functions: c1*f1+c2*f2.
Definition: TF1NormSum.h:19
TFitEditor::DoEmptyBinsAllWeights1
virtual void DoEmptyBinsAllWeights1()
Slot connected to 'include emtry bins and forse all weights to 1' setting.
Definition: TFitEditor.cxx:1911
TFitEditor::fAdd
TGRadioButton * fAdd
Definition: TFitEditor.h:79
TGLabel
Definition: TGLabel.h:32
TFitEditor::fMethodList
TGComboBox * fMethodList
Definition: TFitEditor.h:95
TFitEditor::DoDataSet
virtual void DoDataSet(Int_t sel)
Selects the data set to be fitted.
Definition: TFitEditor.cxx:2329
TFitEditor::fAdd2FuncList
TGCheckButton * fAdd2FuncList
Definition: TFitEditor.h:90
DataRange.h
TFitEditor::FillMinMethodList
void FillMinMethodList(Int_t selected=-1)
Fills the list of methods depending on the minimization library selected.
Definition: TFitEditor.cxx:1744
TGTextButton
Definition: TGButton.h:142
TFitEditor::DoUseFuncRange
virtual void DoUseFuncRange()
Definition: TFitEditor.cxx:1920
TFitEditor::DoEnteredFunction
virtual void DoEnteredFunction()
Slot connected to entered function in text entry.
Definition: TFitEditor.cxx:2554
TFitEditor::fSliderZ
TGDoubleHSlider * fSliderZ
Definition: TFitEditor.h:108
TFitEditor::fYaxis
TAxis * fYaxis
Definition: TFitEditor.h:122
TFitEditor::fSliderXMax
TGNumberEntry * fSliderXMax
Definition: TFitEditor.h:103
TFitEditor::fTab
TGTab * fTab
Definition: TFitEditor.h:64
TFitEditor::DoSliderXMoved
virtual void DoSliderXMoved()
Slot connected to range settings on x-axis.
Definition: TFitEditor.cxx:2792
TFitEditor::fOptVerbose
TGRadioButton * fOptVerbose
Definition: TFitEditor.h:115
TFitEditor::fLibFumili
TGRadioButton * fLibFumili
Definition: TFitEditor.h:142
TFitEditor::fLibMinuit
TGRadioButton * fLibMinuit
Definition: TFitEditor.h:140
TFitEditor::CreateFunctionGroup
void CreateFunctionGroup()
Creates the Frame that contains oll the information about the function.
Definition: TFitEditor.cxx:544
TFitEditor::fBestErrors
TGCheckButton * fBestErrors
Definition: TFitEditor.h:88
TFitEditor::DoLinearFit
virtual void DoLinearFit()
Slot connected to linear fit settings.
Definition: TFitEditor.cxx:2577
TFitEditor::fUseGradient
TGCheckButton * fUseGradient
Definition: TFitEditor.h:91
TGHorizontalFrame
Definition: TGFrame.h:423
TFitEditor::DoRobustFit
virtual void DoRobustFit()
Slot connected to 'robust fitting' option settings.
Definition: TFitEditor.cxx:2607
TFitEditor::fUserButton
TGTextButton * fUserButton
Definition: TFitEditor.h:77
TString
Basic string class.
Definition: TString.h:136
TFitEditor::fFuncPars
std::vector< FuncParamData_t > fFuncPars
Definition: TFitEditor.h:135
TGFrame
Definition: TGFrame.h:105
MinimizerOptions.h
Foption.h
TFitEditor::fErrorScale
TGNumberEntryField * fErrorScale
Definition: TFitEditor.h:146
TFitEditor::FillFunctionList
void FillFunctionList(Int_t selected=-1)
Fills the list of functions depending on the type of fit selected.
Definition: TFitEditor.cxx:1615
TFitEditor::~TFitEditor
virtual ~TFitEditor()
Fit editor destructor.
Definition: TFitEditor.cxx:505
TFitEditor::fSystemFuncs
std::vector< TF1 * > fSystemFuncs
Definition: TFitEditor.h:138
TFitEditor::DoFunction
virtual void DoFunction(Int_t sel)
Slot connected to predefined fit function settings.
Definition: TFitEditor.cxx:2419
bool
TFitEditor::fEnableRobust
TGCheckButton * fEnableRobust
Definition: TFitEditor.h:112
TFitEditor::DoSetParameters
virtual void DoSetParameters()
Open set parameters dialog.
Definition: TFitEditor.cxx:2728
TFitEditor::fTypeFit
TGComboBox * fTypeFit
Definition: TFitEditor.h:74
TFitEditor::fDrawAdvanced
TGTextButton * fDrawAdvanced
Definition: TFitEditor.h:101
TFitEditor::fType
EObjectType fType
Definition: TFitEditor.h:119
TFitEditor::fLayoutNormAdd
TGLayoutHints * fLayoutNormAdd
Definition: TFitEditor.h:84
TFitEditor::fUpdateButton
TGTextButton * fUpdateButton
Definition: TFitEditor.h:68
TFitEditor::fNone
TGRadioButton * fNone
Definition: TFitEditor.h:78
TFitEditor::fOptDefault
TGRadioButton * fOptDefault
Definition: TFitEditor.h:114
TGStatusBar
Definition: TGStatusBar.h:29
TFitEditor::BuildMethodList
TGComboBox * BuildMethodList(TGFrame *parent, Int_t id)
Create method list in a combo box.
Definition: TFitEditor.cxx:1889
TGCheckButton
Definition: TGButton.h:264
EObjectType
EObjectType
Definition: TFitEditor.h:34
kObjectTree
@ kObjectTree
Definition: TFitEditor.h:39
TFitEditor::CloseWindow
virtual void CloseWindow()
Close fit panel window.
Definition: TFitEditor.cxx:1247
TFitEditor::DoFit
virtual void DoFit()
Perform a fit with current parameters' settings.
Definition: TFitEditor.cxx:1984
TFitEditor::RetrieveOptions
void RetrieveOptions(Foption_t &, TString &, ROOT::Math::MinimizerOptions &, Int_t)
Retrieve the fitting options from all the widgets.
Definition: TFitEditor.cxx:3336
TFitEditor::SetFunction
virtual void SetFunction(const char *function)
Set the function to be used in performed fit.
Definition: TFitEditor.cxx:2943
TGDoubleHSlider
Definition: TGDoubleSlider.h:232
TFitEditor::fEmptyBinsWghts1
TGCheckButton * fEmptyBinsWghts1
Definition: TFitEditor.h:94
TFitEditor::fUseRange
TGCheckButton * fUseRange
Definition: TFitEditor.h:89
TFitEditor::operator=
TFitEditor & operator=(const TFitEditor &)
TFitEditor::ProcessTreeInput
void ProcessTreeInput(TObject *objSelected, Int_t selected, TString variables, TString cuts)
Definition: TFitEditor.cxx:2405
TGRadioButton
Definition: TGButton.h:322
TFitEditor::DoNoSelection
virtual void DoNoSelection()
Slot called when users close a TCanvas or when the user select no object.
Definition: TFitEditor.cxx:1551
TMVA::variables
void variables(TString dataset, TString fin="TMVA.root", TString dirName="InputVariables_Id", TString title="TMVA Input Variables", Bool_t isRegression=kFALSE, Bool_t useTMVAStyle=kTRUE)
TFitEditor::fLibGenetics
TGRadioButton * fLibGenetics
Definition: TFitEditor.h:144
TGTextEntry
Definition: TGTextEntry.h:39
TFitEditor::CreateMinimizationTab
void CreateMinimizationTab()
Create 'Minimization' tab.
Definition: TFitEditor.cxx:899
TFitEditor::fSliderZParent
TGHorizontalFrame * fSliderZParent
Definition: TFitEditor.h:111
TFitEditor::DoAllWeights1
virtual void DoAllWeights1()
Slot connected to 'set all weights to 1' setting.
Definition: TFitEditor.cxx:1957
TFitEditor::fSliderYMax
TGNumberEntry * fSliderYMax
Definition: TFitEditor.h:106
TFitEditor::HasFitFunction
TF1 * HasFitFunction()
Look in the list of function for TF1.
Definition: TFitEditor.cxx:3273
TGFrame.h
TFitEditor::fPrevFit
std::multimap< TObject *, TF1 * > fPrevFit
Definition: TFitEditor.h:137
TFitEditor::fRobustValue
TGNumberEntry * fRobustValue
Definition: TFitEditor.h:113
TFitEditor::fSliderX
TGDoubleHSlider * fSliderX
Definition: TFitEditor.h:102
TGLayoutHints
Definition: TGLayout.h:57
TFitEditor::fSliderYParent
TGHorizontalFrame * fSliderYParent
Definition: TFitEditor.h:110
TFitEditor::DoSliderZMoved
virtual void DoSliderZMoved()
Slot connected to range settings on z-axis.
Definition: TFitEditor.cxx:2926
ROOT::Fit::DataRange
class describing the range in the coordinates it supports multiple range in a coordinate.
Definition: DataRange.h:35
ROOT::Math::MinimizerOptions
Minimizer options.
Definition: MinimizerOptions.h:32
TGTab
Definition: TGTab.h:62
TFitEditor::fImproveResults
TGCheckButton * fImproveResults
Definition: TFitEditor.h:93
TFitEditor::fDataSet
TGComboBox * fDataSet
Definition: TFitEditor.h:73
TFitEditor::fSumFunc
TF1NormSum * fSumFunc
Definition: TFitEditor.h:124
TF1Convolution
Class wrapping convolution of two functions.
Definition: TF1Convolution.h:20
TFitEditor::fChangedParams
Bool_t fChangedParams
Definition: TFitEditor.h:152
TFitEditor::SetEditable
void SetEditable(Bool_t)
Switch ON/OFF edit mode.
Definition: TFitEditor.cxx:3437
TFitEditor::fNoDrawing
TGCheckButton * fNoDrawing
Definition: TFitEditor.h:99
TFitEditor::fDim
Int_t fDim
Definition: TFitEditor.h:120
TFitEditor::fSliderXMin
TGNumberEntry * fSliderXMin
Definition: TFitEditor.h:104
TFitEditor::fNoStoreDrawing
TGCheckButton * fNoStoreDrawing
Definition: TFitEditor.h:98
TFitEditor::fLayoutConv
TGLayoutHints * fLayoutConv
Definition: TFitEditor.h:85
TGNumberEntryField
Definition: TGNumberEntry.h:74
TFitEditor::DoMaxIterations
virtual void DoMaxIterations()
Set the maximum number of iterations.
Definition: TFitEditor.cxx:3249
TFitEditor::SetFitObject
virtual void SetFitObject(TVirtualPad *pad, TObject *obj, Int_t event)
Slot called when the user clicks on an object inside a canvas.
Definition: TFitEditor.cxx:1452
TFitEditor::fLayoutAdd
TGLayoutHints * fLayoutAdd
Definition: TFitEditor.h:83
TFitEditor::FuncParamData_t::fP
Double_t fP[3]
Definition: TFitEditor.h:133
TFitEditor::ShowObjectName
void ShowObjectName(TObject *obj)
Show object name on the top.
Definition: TFitEditor.cxx:3051
unsigned int
kObjectMultiGraph
@ kObjectMultiGraph
Definition: TFitEditor.h:40
TGComboBox
Definition: TGComboBox.h:67
TFitEditor::DoNoChi2
virtual void DoNoChi2()
Slot connected to 'no chi2' option settings.
Definition: TFitEditor.cxx:2598
TFitEditor::fSetParam
TGTextButton * fSetParam
Definition: TFitEditor.h:86
TFitEditor::fIntegral
TGCheckButton * fIntegral
Definition: TFitEditor.h:87
TFitEditor::FitEditorUnitTesting
friend class FitEditorUnitTesting
Definition: TFitEditor.h:248
TFitEditor::fResetButton
TGTextButton * fResetButton
Definition: TFitEditor.h:70
TFitEditor::TFitEditor
TFitEditor(const TFitEditor &)
TFitEditor::fLibGSL
TGRadioButton * fLibGSL
Definition: TFitEditor.h:143
TFitEditor::fLayoutNone
TGLayoutHints * fLayoutNone
Definition: TFitEditor.h:82
TFitEditor::fStatusBar
TGStatusBar * fStatusBar
Definition: TFitEditor.h:150
Double_t
double Double_t
Definition: RtypesCore.h:59
TFitEditor::fOptQuiet
TGRadioButton * fOptQuiet
Definition: TFitEditor.h:116
TVirtualPad
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition: TVirtualPad.h:51
TFitEditor::fNoChi2
TGCheckButton * fNoChi2
Definition: TFitEditor.h:97
TFitEditor::CheckFunctionString
Int_t CheckFunctionString(const char *str)
Check entered function string.
Definition: TFitEditor.cxx:2237
TFitEditor::fIterations
TGNumberEntryField * fIterations
Definition: TFitEditor.h:148
kObjectGraph
@ kObjectGraph
Definition: TFitEditor.h:36
TCanvas
The Canvas class.
Definition: TCanvas.h:23
TFitEditor::DoMinMethod
virtual void DoMinMethod(Int_t)
Set selected minimization method in use.
Definition: TFitEditor.cxx:3214
TFitEditor::FillDataSetList
void FillDataSetList()
Create a combo box with all the possible objects to be fitted.
Definition: TFitEditor.cxx:1828
TFitEditor::DoNumericSliderXChanged
virtual void DoNumericSliderXChanged()
Sincronize the numeric sliders with the graphical one.
Definition: TFitEditor.cxx:2869
TFitEditor::Hide
virtual void Hide()
Hide the fit panel and set it to non-active state.
Definition: TFitEditor.cxx:1211
TFitEditor::DoReset
virtual void DoReset()
Reset all fit parameters.
Definition: TFitEditor.cxx:2665
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TFitEditor::ConnectSlots
virtual void ConnectSlots()
Connect GUI signals to fit panel slots.
Definition: TFitEditor.cxx:1049
TGButton.h
TFitEditor::fFuncList
TGComboBox * fFuncList
Definition: TFitEditor.h:75
TFitEditor::DoAddition
virtual void DoAddition(Bool_t on)
Slot connected to addition of predefined functions.
Definition: TFitEditor.cxx:2262
TFitEditor::DoPrintOpt
virtual void DoPrintOpt(Bool_t on)
Slot connected to print option settings.
Definition: TFitEditor.cxx:2627
TFitEditor::fLibMinuit2
TGRadioButton * fLibMinuit2
Definition: TFitEditor.h:141
TFitEditor::fSelLabel
TGLabel * fSelLabel
Definition: TFitEditor.h:72
TFitEditor::FuncParamData_t
TF1Convolution object.
Definition: TFitEditor.h:128
TFitEditor::DoNoStoreDrawing
virtual void DoNoStoreDrawing()
Slot connected to 'no storing, no drawing' settings.
Definition: TFitEditor.cxx:2618
TFitEditor::fAllWeights1
TGCheckButton * fAllWeights1
Definition: TFitEditor.h:92
TFitEditor::fGeneral
TGCompositeFrame * fGeneral
Definition: TFitEditor.h:66
TFitEditor::Show
virtual void Show(TVirtualPad *pad, TObject *obj)
Show the fit panel (possible only via context menu).
Definition: TFitEditor.cxx:1230
TFitEditor::fSliderXParent
TGHorizontalFrame * fSliderXParent
Definition: TFitEditor.h:109
TFitEditor::DoLibrary
virtual void DoLibrary(Bool_t on)
Set selected minimization library in use.
Definition: TFitEditor.cxx:3124
TFitEditor::DisconnectSlots
virtual void DisconnectSlots()
Disconnect GUI signals from fit panel slots.
Definition: TFitEditor.cxx:1124
TFitEditor::SetCanvas
virtual void SetCanvas(TCanvas *c)
Connect to another canvas.
Definition: TFitEditor.cxx:1189
TFitEditor::CreateGeneralTab
void CreateGeneralTab()
Create 'General' tab.
Definition: TFitEditor.cxx:660
TFitEditor::fEnteredFunc
TGTextEntry * fEnteredFunc
Definition: TFitEditor.h:76
TGNumberEntry
Definition: TGNumberEntry.h:157
TFitEditor::fNormAdd
TGRadioButton * fNormAdd
Definition: TFitEditor.h:80
TFitEditor::fFitButton
TGTextButton * fFitButton
Definition: TFitEditor.h:69
TF1
1-Dim function class
Definition: TF1.h:213
TFitEditor::UpdateGUI
void UpdateGUI()
Set the fit panel GUI according to the selected object.
Definition: TFitEditor.cxx:1272
TGCompositeFrame
Definition: TGFrame.h:324
TFitEditor::DoUpdate
virtual void DoUpdate()
Easy here!
Definition: TFitEditor.cxx:1975
TFitEditor::fConv
TGRadioButton * fConv
Definition: TFitEditor.h:81
TFitEditor::fXaxis
TAxis * fXaxis
Definition: TFitEditor.h:121
TFitEditor::fMinMethodList
TGComboBox * fMinMethodList
Definition: TFitEditor.h:145
TFitEditor
Definition: TFitEditor.h:61
TFitEditor::FuncParamData_t::FuncParamData_t
FuncParamData_t()
Definition: TFitEditor.h:129
TFitEditor::GetRanges
void GetRanges(ROOT::Fit::DataRange &)
Definition: TFitEditor.cxx:3459
TFitEditor::Terminate
virtual void Terminate()
Called to delete the fit panel.
Definition: TFitEditor.cxx:1262
TFitEditor::GetFitObjectListOfFunctions
TList * GetFitObjectListOfFunctions()
Definition: TFitEditor.cxx:3492
TFitEditor::GetFitFunction
TF1 * GetFitFunction()
Definition: TFitEditor.cxx:3588
TFitEditor::fSliderYMin
TGNumberEntry * fSliderYMin
Definition: TFitEditor.h:107
TList
A doubly linked list.
Definition: TList.h:44
kObjectHStack
@ kObjectHStack
Definition: TFitEditor.h:38
TFitEditor::fConvFunc
TF1Convolution * fConvFunc
TF1NormSum object.
Definition: TFitEditor.h:125
int
TFitEditor::fZaxis
TAxis * fZaxis
Definition: TFitEditor.h:123
TFitEditor::DrawSelection
void DrawSelection(bool restore=false)
Draws the square around the object showing where the limits for fitting are.
Definition: TFitEditor.cxx:2808
TFitEditor::FindFunction
TF1 * FindFunction()
This method looks among the functions stored by the fitpanel, the one that is currently selected in t...
Definition: TFitEditor.cxx:183
TFitEditor::RecursiveRemove
virtual void RecursiveRemove(TObject *obj)
When obj is deleted, clear fFitObject if fFitObject = obj.
Definition: TFitEditor.cxx:1575