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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15134 - (view) (download) (as text)
Original Path: trunk/graf/inc/TMultiGraph.h

1 : brun 15134 // @(#)root/graf:$Name: $:$Id: TMultiGraph.h,v 1.7 2005/11/21 13:57:42 couet Exp $
2 : brun 754 // Author: Rene Brun 12/10/2000
3 :    
4 :     /*************************************************************************
5 :     * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 :     * All rights reserved. *
7 :     * *
8 :     * For the licensing terms see $ROOTSYS/LICENSE. *
9 :     * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 :     *************************************************************************/
11 :    
12 :     #ifndef ROOT_TMultiGraph
13 :     #define ROOT_TMultiGraph
14 :    
15 :    
16 :     //////////////////////////////////////////////////////////////////////////
17 :     // //
18 :     // TMultiGraph //
19 :     // //
20 :     // A collection of TGraph objects //
21 :     // //
22 :     //////////////////////////////////////////////////////////////////////////
23 :    
24 :     #ifndef ROOT_TNamed
25 :     #include "TNamed.h"
26 :     #endif
27 :    
28 : brun 11226 #include "TF1.h"
29 : brun 754
30 :     class TH1F;
31 :     class TAxis;
32 :     class TBrowser;
33 :     class TGraph;
34 :    
35 :     class TMultiGraph : public TNamed {
36 :    
37 : couet 13304 protected:
38 :     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
41 :     Double_t fMaximum; //Maximum value for plotting along y
42 :     Double_t fMinimum; //Minimum value for plotting along y
43 : brun 15134
44 :     TMultiGraph(const TMultiGraph&);
45 :     TMultiGraph& operator=(const TMultiGraph&);
46 : brun 11226
47 : couet 13304 public:
48 :     TMultiGraph();
49 :     TMultiGraph(const char *name, const char *title);
50 :     virtual ~TMultiGraph();
51 :    
52 :     virtual void Add(TGraph *graph, Option_t *chopt="");
53 :     virtual void Browse(TBrowser *b);
54 :     virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
55 :     virtual void Draw(Option_t *chopt="");
56 :     virtual Int_t Fit(const char *formula ,Option_t *option="" ,Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0);
57 :     virtual Int_t Fit(TF1 *f1 ,Option_t *option="" ,Option_t *goption="", Axis_t rxmin=0, Axis_t rxmax=0);
58 :     virtual Option_t *GetGraphDrawOption(const TGraph *gr) const;
59 :     virtual void LeastSquareLinearFit(Int_t ndata, Double_t &a0, Double_t &a1, Int_t &ifail, Double_t xmin, Double_t xmax);
60 :     virtual void LeastSquareFit(Int_t m, Double_t *a, Double_t xmin, Double_t xmax);
61 :     virtual void InitPolynom(Double_t xmin, Double_t xmax);
62 :     virtual void InitExpo(Double_t xmin, Double_t xmax);
63 :     virtual void InitGaus(Double_t xmin, Double_t xmax);
64 :     TH1F *GetHistogram() const;
65 :     TF1 *GetFunction(const char *name) const;
66 :     TList *GetListOfGraphs() const { return fGraphs; }
67 :     TList *GetListOfFunctions() const { return fFunctions; }
68 :     TAxis *GetXaxis() const;
69 :     TAxis *GetYaxis() const;
70 :     virtual void Paint(Option_t *chopt="");
71 :     virtual void Print(Option_t *chopt="") const;
72 :     virtual void RecursiveRemove(TObject *obj);
73 :     virtual void SavePrimitive(ofstream &out, Option_t *option);
74 :     virtual void SetMaximum(Double_t maximum=-1111);
75 :     virtual void SetMinimum(Double_t minimum=-1111);
76 : brun 11226
77 : couet 13304 ClassDef(TMultiGraph,2) //A collection of TGraph objects
78 : brun 754 };
79 :    
80 :     #endif
81 :    
82 :    

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9