[root] / trunk / hist / hist / inc / TMultiGraph.h Repository:
ViewVC logotype

Diff of /trunk/hist/hist/inc/TMultiGraph.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5552, Wed Nov 6 21:16:43 2002 UTC revision 11226, Fri Mar 4 09:06:37 2005 UTC
# Line 1  Line 1 
1  // @(#)root/graf:$Name:  $:$Id: TMultiGraph.h,v 1.3 2002/02/19 17:43:41 brun Exp $  // @(#)root/graf:$Name:  $:$Id: TMultiGraph.h,v 1.4 2002/11/06 21:16:43 brun Exp $
2  // Author: Rene Brun   12/10/2000  // Author: Rene Brun   12/10/2000
3    
4  /*************************************************************************  /*************************************************************************
# Line 25  Line 25 
25  #include "TNamed.h"  #include "TNamed.h"
26  #endif  #endif
27    
28    #include "TF1.h"
29    
30  class TH1F;  class TH1F;
31  class TAxis;  class TAxis;
# Line 35  Line 36 
36    
37  protected:  protected:
38      TList      *fGraphs;     //Pointer to list of TGraphs      TList      *fGraphs;     //Pointer to list of TGraphs
39      TList      *fFunctions;  //Pointer to list of functions (fits and user)
40      TH1F       *fHistogram;  //Pointer to histogram used for drawing axis      TH1F       *fHistogram;  //Pointer to histogram used for drawing axis
41      Double_t    fMaximum;    //Maximum value for plotting along y      Double_t    fMaximum;    //Maximum value for plotting along y
42      Double_t    fMinimum;    //Minimum value for plotting along y      Double_t    fMinimum;    //Minimum value for plotting along y
# Line 48  Line 50 
50          virtual void     Browse(TBrowser *b);          virtual void     Browse(TBrowser *b);
51          virtual Int_t    DistancetoPrimitive(Int_t px, Int_t py);          virtual Int_t    DistancetoPrimitive(Int_t px, Int_t py);
52          virtual void     Draw(Option_t *chopt="");          virtual void     Draw(Option_t *chopt="");
53      virtual Int_t    Fit(const char *formula ,Option_t *option="" ,Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0);
54      virtual Int_t    Fit(TF1 *f1 ,Option_t *option="" ,Option_t *goption="", Axis_t rxmin=0, Axis_t rxmax=0);
55      virtual void     LeastSquareLinearFit(Int_t ndata, Double_t &a0, Double_t &a1, Int_t &ifail, Double_t xmin, Double_t xmax);
56      virtual void     LeastSquareFit(Int_t m, Double_t *a, Double_t xmin, Double_t xmax);
57      virtual void     InitPolynom(Double_t xmin, Double_t xmax);
58      virtual void     InitExpo(Double_t xmin, Double_t xmax);
59      virtual void     InitGaus(Double_t xmin, Double_t xmax);
60          TH1F            *GetHistogram() const;          TH1F            *GetHistogram() const;
61      TF1             *GetFunction(const char *name) const;
62          TList           *GetListOfGraphs() const { return fGraphs; }          TList           *GetListOfGraphs() const { return fGraphs; }
63      TList           *GetListOfFunctions() const { return fFunctions; }
64          TAxis           *GetXaxis() const;          TAxis           *GetXaxis() const;
65          TAxis           *GetYaxis() const;          TAxis           *GetYaxis() const;
66          virtual void     Paint(Option_t *chopt="");          virtual void     Paint(Option_t *chopt="");
# Line 59  Line 70 
70          virtual void     SetMaximum(Double_t maximum=-1111);          virtual void     SetMaximum(Double_t maximum=-1111);
71          virtual void     SetMinimum(Double_t minimum=-1111);          virtual void     SetMinimum(Double_t minimum=-1111);
72    
73          ClassDef(TMultiGraph,1)  //A collection of TGraph objects    ClassDef(TMultiGraph,2)  //A collection of TGraph objects
74  };  };
75    
76  #endif  #endif

Legend:
Removed from v.5552  
changed lines
  Added in v.11226

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9