library: libGpad #include "TFitPanel.h" |
TFitPanel
class description - source file - inheritance tree (.pdf)
public:
TFitPanel()
TFitPanel(const char* name, const char* title, UInt_t ww, UInt_t wh, const TVirtualPad* pad, const TObject* obj)
virtual ~TFitPanel()
virtual void AddOption(Option_t* option)
virtual void Apply(const char* action = "")
virtual void BuildStandardButtons()
static TClass* Class()
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
TObject* GetObjectFit() const
virtual TClass* IsA() const
virtual void RecursiveRemove(TObject* obj)
virtual void SavePrimitive(ofstream& out, Option_t* option)
virtual void SetDefaults()
virtual void SetFunction(const char* function)
virtual void SetSame()
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(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
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 char *name, const char *title, UInt_t ww, UInt_t wh, const TVirtualPad *pad, const TObject *obj)
: 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 char *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 RecursiveRemove(TObject *obj)
when obj is deleted, clear fObjectFit if fObjectFit=obj
void SavePrimitive(ofstream &, Option_t *)
*-*-*-*-*-*-*-*-*-*-*Save this fitpanel in a macro*-*-*-*-*-*-*
*-* =============================
void SetDefaults()
*-*-*-*-*-*-*-*-*-*Set default fit panel options*-*-*-*-*-*-*
*-* =============================
void SetFunction(const char *function)
*-*-*-*-*-*-*-*-*-*Set the function to be used in the fit*-*-*-*-*-*-*
*-* ======================================
void SetSame()
*-*-*-*-*-*-*-*-*-*Set graphics option "same"*-*-*-*-*-*-*
*-* =========================
Inline Functions
TObject* GetObjectFit() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
Author: Rene Brun 24/11/96
Last update: root/gpad:$Name: $:$Id: TFitPanel.cxx,v 1.7 2004/07/20 07:23:34 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - 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.