|
ROOT
Reference Guide |
|
Go to the documentation of this file.
12 #ifndef ROOT_TFitEditor
13 #define ROOT_TFitEditor
130 fP[0] = 0;
fP[1] = 0;
fP[2] = 0;
221 virtual void DoFit();
TGDoubleHSlider * fSliderY
void MakeTitle(TGCompositeFrame *parent, const char *title)
Create section title in the GUI.
TGCheckButton * fDrawSame
Bool_t SetObjectType(TObject *obj)
Check whether the object suitable for fitting and set its type, dimension and method combo box accord...
Class to manage histogram axis.
TGCheckButton * fLinearFit
static TFitEditor * GetInstance(TVirtualPad *pad=0, TObject *obj=0)
Static method - opens the fit panel.
virtual void DoUserDialog()
Open a dialog for getting a user defined method.
TList * GetListOfFittingFunctions(TObject *obj=0)
void GetFunctionsFromSystem()
virtual void DoNumericSliderYChanged()
syncronize the numeric slider with the graphical one.
TGCompositeFrame * fTabContainer
Double_t & operator[](UInt_t i)
TGTextButton * fCloseButton
std::vector< FuncParamData_t > FuncParams_t
TGCompositeFrame * fMinimization
virtual Option_t * GetDrawOption() const
Get draw options of the selected object.
virtual void DoAdvancedOptions()
Slot connected to advanced option button (opens a dialog).
TGNumberEntryField * fTolerance
virtual void DoSliderYMoved()
Slot connected to range settings on y-axis.
virtual void DoConvolution(Bool_t on)
Slot connected to addition of predefined functions.
static TFitEditor * fgFitDialog
virtual void DoNormAddition(Bool_t on)
Slot connected to addition of predefined functions.
virtual void DoClose()
Close the fit panel.
Class adding two functions: c1*f1+c2*f2.
virtual void DoEmptyBinsAllWeights1()
Slot connected to 'include emtry bins and forse all weights to 1' setting.
virtual void DoDataSet(Int_t sel)
Selects the data set to be fitted.
TGCheckButton * fAdd2FuncList
void FillMinMethodList(Int_t selected=-1)
Fills the list of methods depending on the minimization library selected.
virtual void DoUseFuncRange()
virtual void DoEnteredFunction()
Slot connected to entered function in text entry.
TGDoubleHSlider * fSliderZ
TGNumberEntry * fSliderXMax
virtual void DoSliderXMoved()
Slot connected to range settings on x-axis.
TGRadioButton * fOptVerbose
TGRadioButton * fLibFumili
TGRadioButton * fLibMinuit
void CreateFunctionGroup()
Creates the Frame that contains oll the information about the function.
TGCheckButton * fBestErrors
virtual void DoLinearFit()
Slot connected to linear fit settings.
TGCheckButton * fUseGradient
virtual void DoRobustFit()
Slot connected to 'robust fitting' option settings.
TGTextButton * fUserButton
std::vector< FuncParamData_t > fFuncPars
TGNumberEntryField * fErrorScale
void FillFunctionList(Int_t selected=-1)
Fills the list of functions depending on the type of fit selected.
virtual ~TFitEditor()
Fit editor destructor.
std::vector< TF1 * > fSystemFuncs
virtual void DoFunction(Int_t sel)
Slot connected to predefined fit function settings.
TGCheckButton * fEnableRobust
virtual void DoSetParameters()
Open set parameters dialog.
TGTextButton * fDrawAdvanced
TGLayoutHints * fLayoutNormAdd
TGTextButton * fUpdateButton
TGRadioButton * fOptDefault
TGComboBox * BuildMethodList(TGFrame *parent, Int_t id)
Create method list in a combo box.
virtual void CloseWindow()
Close fit panel window.
virtual void DoFit()
Perform a fit with current parameters' settings.
void RetrieveOptions(Foption_t &, TString &, ROOT::Math::MinimizerOptions &, Int_t)
Retrieve the fitting options from all the widgets.
virtual void SetFunction(const char *function)
Set the function to be used in performed fit.
TGCheckButton * fEmptyBinsWghts1
TGCheckButton * fUseRange
TFitEditor & operator=(const TFitEditor &)
void ProcessTreeInput(TObject *objSelected, Int_t selected, TString variables, TString cuts)
virtual void DoNoSelection()
Slot called when users close a TCanvas or when the user select no object.
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)
TGRadioButton * fLibGenetics
void CreateMinimizationTab()
Create 'Minimization' tab.
TGHorizontalFrame * fSliderZParent
virtual void DoAllWeights1()
Slot connected to 'set all weights to 1' setting.
TGNumberEntry * fSliderYMax
TF1 * HasFitFunction()
Look in the list of function for TF1.
std::multimap< TObject *, TF1 * > fPrevFit
TGNumberEntry * fRobustValue
TGDoubleHSlider * fSliderX
TGHorizontalFrame * fSliderYParent
virtual void DoSliderZMoved()
Slot connected to range settings on z-axis.
class describing the range in the coordinates it supports multiple range in a coordinate.
TGCheckButton * fImproveResults
Class wrapping convolution of two functions.
void SetEditable(Bool_t)
Switch ON/OFF edit mode.
TGCheckButton * fNoDrawing
TGNumberEntry * fSliderXMin
TGCheckButton * fNoStoreDrawing
TGLayoutHints * fLayoutConv
virtual void DoMaxIterations()
Set the maximum number of iterations.
virtual void SetFitObject(TVirtualPad *pad, TObject *obj, Int_t event)
Slot called when the user clicks on an object inside a canvas.
TGLayoutHints * fLayoutAdd
void ShowObjectName(TObject *obj)
Show object name on the top.
virtual void DoNoChi2()
Slot connected to 'no chi2' option settings.
TGCheckButton * fIntegral
friend class FitEditorUnitTesting
TGTextButton * fResetButton
TFitEditor(const TFitEditor &)
TGLayoutHints * fLayoutNone
TGRadioButton * fOptQuiet
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Int_t CheckFunctionString(const char *str)
Check entered function string.
TGNumberEntryField * fIterations
virtual void DoMinMethod(Int_t)
Set selected minimization method in use.
void FillDataSetList()
Create a combo box with all the possible objects to be fitted.
virtual void DoNumericSliderXChanged()
Sincronize the numeric sliders with the graphical one.
virtual void Hide()
Hide the fit panel and set it to non-active state.
virtual void DoReset()
Reset all fit parameters.
Mother of all ROOT objects.
#define ClassDef(name, id)
virtual void ConnectSlots()
Connect GUI signals to fit panel slots.
virtual void DoAddition(Bool_t on)
Slot connected to addition of predefined functions.
virtual void DoPrintOpt(Bool_t on)
Slot connected to print option settings.
TGRadioButton * fLibMinuit2
virtual void DoNoStoreDrawing()
Slot connected to 'no storing, no drawing' settings.
TGCheckButton * fAllWeights1
TGCompositeFrame * fGeneral
virtual void Show(TVirtualPad *pad, TObject *obj)
Show the fit panel (possible only via context menu).
TGHorizontalFrame * fSliderXParent
virtual void DoLibrary(Bool_t on)
Set selected minimization library in use.
virtual void DisconnectSlots()
Disconnect GUI signals from fit panel slots.
virtual void SetCanvas(TCanvas *c)
Connect to another canvas.
void CreateGeneralTab()
Create 'General' tab.
TGTextEntry * fEnteredFunc
TGTextButton * fFitButton
void UpdateGUI()
Set the fit panel GUI according to the selected object.
virtual void DoUpdate()
Easy here!
TGComboBox * fMinMethodList
void GetRanges(ROOT::Fit::DataRange &)
virtual void Terminate()
Called to delete the fit panel.
TList * GetFitObjectListOfFunctions()
TGNumberEntry * fSliderYMin
TF1Convolution * fConvFunc
TF1NormSum object.
void DrawSelection(bool restore=false)
Draws the square around the object showing where the limits for fitting are.
TF1 * FindFunction()
This method looks among the functions stored by the fitpanel, the one that is currently selected in t...
virtual void RecursiveRemove(TObject *obj)
When obj is deleted, clear fFitObject if fFitObject = obj.