Logo ROOT   6.12/07
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 #include "TGraph2D.h"
25 
26 class TGraph2DErrors : public TGraph2D {
27 
28 private:
29 
30 
31 protected:
32  Double_t *fEX; ///<[fNpoints] array of X errors
33  Double_t *fEY; ///<[fNpoints] array of Y errors
34  Double_t *fEZ; ///<[fNpoints] array of Z errors
35 
36 public:
40  Double_t *ex=0, Double_t *ey=0, Double_t *ez=0, Option_t *option="");
43  virtual ~TGraph2DErrors();
44  Double_t GetErrorX(Int_t bin) const;
45  Double_t GetErrorY(Int_t bin) const;
46  Double_t GetErrorZ(Int_t bin) const;
47  Double_t *GetEX() const {return fEX;}
48  Double_t *GetEY() const {return fEY;}
49  Double_t *GetEZ() const {return fEZ;}
50  Double_t GetXmaxE() const;
51  Double_t GetXminE() const;
52  Double_t GetYmaxE() const;
53  Double_t GetYminE() const;
54  Double_t GetZmaxE() const;
55  Double_t GetZminE() const;
56  virtual void Set(Int_t n);
57  virtual void SetPoint(Int_t i, Double_t x, Double_t y, Double_t z);
58  virtual void SetPointError(Int_t i, Double_t ex, Double_t ey, Double_t ez);
59 
60  ClassDef(TGraph2DErrors,1) //A 2D graph with error bars
61 };
62 
63 #endif
64 
65 
virtual ~TGraph2DErrors()
TGraph2DErrors destructor.
Double_t * GetEX() const
virtual void Set(Int_t n)
Set number of points in the 2D graph.
TGraph2DErrors & operator=(const TGraph2DErrors &)
Assignment operator Copy everything except list of functions.
const char Option_t
Definition: RtypesCore.h:62
Double_t GetErrorZ(Int_t bin) const
This function is called by Graph2DFitChisquare.
Double_t GetXmaxE() const
Returns the X maximum with errors.
int Int_t
Definition: RtypesCore.h:41
Double_t GetZmaxE() const
Returns the Z maximum with errors.
Double_t GetYmaxE() const
Returns the Y maximum with errors.
Double_t * fEY
[fNpoints] array of Y errors
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:320
Double_t * fEX
[fNpoints] array of X errors
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 GetYminE() const
Returns the Y minimum with errors.
TGraph2DErrors()
TGraph2DErrors default constructor.
Double_t GetXminE() const
Returns the X minimum with errors.
Double_t GetZminE() const
Returns the Z minimum with errors.
Double_t GetErrorY(Int_t bin) const
This function is called by Graph2DFitChisquare.
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 * GetEY() const
Double_t y[n]
Definition: legend1.C:17
Double_t ey[n]
Definition: legend1.C:17
you should not use this method at all Int_t Int_t z
Definition: TRolke.cxx:630
Double_t * fEZ
[fNpoints] array of Z errors
Double_t * GetEZ() const
Double_t GetErrorX(Int_t bin) const
This function is called by Graph2DFitChisquare.
Graphics object made of three arrays X, Y and Z with the same number of points each.
Definition: TGraph2D.h:40
Double_t ex[n]
Definition: legend1.C:17
const Int_t n
Definition: legend1.C:16
Graph 2D class with errors.