TFitPanel
class description - source file - inheritance tree
public:
TFitPanel TFitPanel()
TFitPanel TFitPanel(const Text_t* name, const Text_t* title, UInt_t ww = 300, UInt_t wh = 400)
virtual void ~TFitPanel()
virtual void AddOption(Option_t* option)
virtual void Apply(const Text_t* action)
virtual void BuildStandardButtons()
TClass* Class()
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
TObject* GetObjectFit()
virtual TClass* IsA() const
virtual void SavePrimitive(ofstream& out, Option_t* option)
virtual void SetDefaults()
virtual void SetFunction(const Text_t* function)
virtual void SetSame()
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
protected:
TString fOption Fitting options
TString fFunction Function to fit
TString fSame graphics option to superimpose new fit on existing picture
TSlider* fSlider Pointer to fitpanel slider
TObject* fObjectFit Pointer to object to fit
See also
-
TFitPanelGraph
A FitPanel is a TDialogCanvas specialized to control histogram fits.
With the mouse, the user can control:
- the type of function to be fitted
- the various fit options
- the drawing options
When the FIT button is executed, the selected histogram is fitted
with the current parameters.
One can select a range of the histogram to be fitted via the slider.
The options are documented in TH1::Fit.
/*
*/
TFitPanel() : TDialogCanvas()
*-*-*-*-*-*-*-*-*-*-*-*FitPanel default constructor*-*-*-*-*-*-*-*-*-*-*
*-* ============================
TFitPanel(const Text_t *name, const Text_t *title, UInt_t ww, UInt_t wh)
: TDialogCanvas(name, title,ww,wh)
*-*-*-*-*-*-*-*-*-*-*-*FitPanel constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-* ========================
~TFitPanel()
*-*-*-*-*-*-*-*-*-*-*FitPanel default destructor*-*-*-*-*-*-*-*-*-*-*-*
*-* ===============================
void AddOption(Option_t *option)
*-*-*-*-*-*-*-*-*-*-*Add option to the current list of options*-*-*-*-*-*-*
*-* =========================================
void Apply(const Text_t *action)
*-*-*-*-*-*-*-*-*-*Collect all options and fit histogram*-*-*-*-*-*-*
*-* =====================================
void BuildStandardButtons()
*-*-*-*-*-*-*-*-*Create FIT, Defaults and CLOSE buttons*-*-*-*-*-*-*-*-*-*-*
*-* ======================================
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
*-*-*-*-*-*-*-*-*-*Control mouse events when slider is used in a fitpanel
*-* ======================================================
This function is called by TPad::ExecuteEvent or TSliderBox::ExecuteEvent
We return in the first case.
When called by the slider, px = 0 and py = 0
void SavePrimitive(ofstream &, Option_t *)
*-*-*-*-*-*-*-*-*-*-*Save this fitpanel in a macro*-*-*-*-*-*-*
*-* =============================
void SetDefaults()
*-*-*-*-*-*-*-*-*-*Set default fit panel options*-*-*-*-*-*-*
*-* =============================
void SetFunction(const Text_t *function)
*-*-*-*-*-*-*-*-*-*Set the function to be used in the fit*-*-*-*-*-*-*
*-* ======================================
void SetSame()
*-*-*-*-*-*-*-*-*-*Set graphics option "same"*-*-*-*-*-*-*
*-* =========================
Inline Functions
TObject* GetObjectFit()
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
Author: Rene Brun 24/11/96
Last update: 2.23/04 28/09/99 21.26.29 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.