Parent Directory
|
Revision Log
Revision 16436 -
(view)
(download)
(as text)
Original Path: trunk/graf/inc/TMultiGraph.h
| 1 : | couet | 16436 | // @(#)root/graf:$Name: $:$Id: TMultiGraph.h,v 1.9 2006/07/03 16:10:44 brun 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 : | couet | 16436 | virtual void Add(TMultiGraph *multigraph, Option_t *chopt=""); |
| 54 : | couet | 13304 | virtual void Browse(TBrowser *b); |
| 55 : | virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); | ||
| 56 : | virtual void Draw(Option_t *chopt=""); | ||
| 57 : | virtual Int_t Fit(const char *formula ,Option_t *option="" ,Option_t *goption="", Axis_t xmin=0, Axis_t xmax=0); | ||
| 58 : | virtual Int_t Fit(TF1 *f1 ,Option_t *option="" ,Option_t *goption="", Axis_t rxmin=0, Axis_t rxmax=0); | ||
| 59 : | virtual Option_t *GetGraphDrawOption(const TGraph *gr) const; | ||
| 60 : | virtual void LeastSquareLinearFit(Int_t ndata, Double_t &a0, Double_t &a1, Int_t &ifail, Double_t xmin, Double_t xmax); | ||
| 61 : | virtual void LeastSquareFit(Int_t m, Double_t *a, Double_t xmin, Double_t xmax); | ||
| 62 : | virtual void InitPolynom(Double_t xmin, Double_t xmax); | ||
| 63 : | virtual void InitExpo(Double_t xmin, Double_t xmax); | ||
| 64 : | virtual void InitGaus(Double_t xmin, Double_t xmax); | ||
| 65 : | TH1F *GetHistogram() const; | ||
| 66 : | TF1 *GetFunction(const char *name) const; | ||
| 67 : | TList *GetListOfGraphs() const { return fGraphs; } | ||
| 68 : | TList *GetListOfFunctions() const { return fFunctions; } | ||
| 69 : | TAxis *GetXaxis() const; | ||
| 70 : | TAxis *GetYaxis() const; | ||
| 71 : | virtual void Paint(Option_t *chopt=""); | ||
| 72 : | virtual void Print(Option_t *chopt="") const; | ||
| 73 : | virtual void RecursiveRemove(TObject *obj); | ||
| 74 : | brun | 15672 | virtual void SavePrimitive(ostream &out, Option_t *option = ""); |
| 75 : | couet | 13304 | virtual void SetMaximum(Double_t maximum=-1111); |
| 76 : | virtual void SetMinimum(Double_t minimum=-1111); | ||
| 77 : | brun | 11226 | |
| 78 : | couet | 13304 | ClassDef(TMultiGraph,2) //A collection of TGraph objects |
| 79 : | brun | 754 | }; |
| 80 : | |||
| 81 : | #endif | ||
| 82 : | |||
| 83 : |
| Subversion Admin | ViewVC Help |
| Powered by ViewVC 1.0.9 |