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