ROOT  6.06/09
Reference Guide
TGraph2DErrors.h
Go to the documentation of this file.
1 // @(#)root/hist:$Id: TGraph2DErrors.h,v 1.00
2 // Author: Olivier Couet 26/11/2003
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_TGraph2DErrors
13 #define ROOT_TGraph2DErrors
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TGraph2DErrors //
19 // //
20 // a 2D Graph with error bars //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_TGraph2D
25 #include "TGraph2D.h"
26 #endif
27 
28 class TGraph2DErrors : public TGraph2D {
29 
30 private:
31 
32 
33 protected:
34  Double_t *fEX; //[fNpoints] array of X errors
35  Double_t *fEY; //[fNpoints] array of Y errors
36  Double_t *fEZ; //[fNpoints] array of Z errors
37 
38 public:
42  Double_t *ex=0, Double_t *ey=0, Double_t *ez=0, Option_t *option="");
45  virtual ~TGraph2DErrors();
46  Double_t GetErrorX(Int_t bin) const;
47  Double_t GetErrorY(Int_t bin) const;
48  Double_t GetErrorZ(Int_t bin) const;
49  Double_t *GetEX() const {return fEX;}
50  Double_t *GetEY() const {return fEY;}
51  Double_t *GetEZ() const {return fEZ;}
52  Double_t GetXmaxE() const;
53  Double_t GetXminE() const;
54  Double_t GetYmaxE() const;
55  Double_t GetYminE() const;
56  Double_t GetZmaxE() const;
57  Double_t GetZminE() const;
58  virtual void Set(Int_t n);
59  virtual void SetPoint(Int_t i, Double_t x, Double_t y, Double_t z);
60  virtual void SetPointError(Int_t i, Double_t ex, Double_t ey, Double_t ez);
61 
62  ClassDef(TGraph2DErrors,1) //A 2D graph with error bars
63 };
64 
65 #endif
66 
67 
virtual ~TGraph2DErrors()
TGraph2DErrors destructor.
virtual void Set(Int_t n)
Set number of points in the 2D graph.
Double_t GetXmaxE() const
Returns the X maximum with errors.
Double_t GetZminE() const
Returns the Z minimum with errors.
TGraph2DErrors & operator=(const TGraph2DErrors &)
Assignment operator Copy everything except list of functions.
const char Option_t
Definition: RtypesCore.h:62
Double_t * GetEZ() const
int Int_t
Definition: RtypesCore.h:41
Double_t GetZmaxE() const
Returns the Z maximum with errors.
Double_t * GetEY() const
Double_t * fEY
Double_t x[n]
Definition: legend1.C:17
Double_t * fEX
virtual void SetPointError(Int_t i, Double_t ex, Double_t ey, Double_t ez)
Set ex, ey and ez values for point number i.
Double_t GetXminE() const
Returns the X minimum with errors.
ClassDef(TAttLine, 2)
Double_t GetErrorZ(Int_t bin) const
This function is called by Graph2DFitChisquare.
Double_t GetYminE() const
Returns the Y minimum with errors.
Double_t * GetEX() const
virtual void SetPoint(Int_t i, Double_t x, Double_t y, Double_t z)
Set x, y and z values for point number i.
double Double_t
Definition: RtypesCore.h:55
Double_t y[n]
Definition: legend1.C:17
Double_t ey[n]
Definition: legend1.C:17
Double_t GetErrorY(Int_t bin) const
This function is called by Graph2DFitChisquare.
Double_t GetErrorX(Int_t bin) const
This function is called by Graph2DFitChisquare.
Double_t * fEZ
Graphics object made of three arrays X, Y and Z with the same number of points each.
Definition: TGraph2D.h:50
Double_t ex[n]
Definition: legend1.C:17
const Int_t n
Definition: legend1.C:16
Double_t GetYmaxE() const
Returns the Y maximum with errors.
Graph 2D class with errors.