ROOT logo
// @(#)root/hist:$Id: TGraph2DErrors.h,v 1.00
// Author: Olivier Couet 26/11/2003

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TGraph2DErrors
#define ROOT_TGraph2DErrors


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TGraph2DErrors                                                       //
//                                                                      //
// a 2D Graph with error bars                                           //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGraph2D
#include "TGraph2D.h"
#endif

class TGraph2DErrors : public TGraph2D {

private:

   TGraph2DErrors(const TGraph2DErrors&); // Not implemented
   TGraph2DErrors& operator=(const TGraph2DErrors&); // Not implemented

protected:
   Double_t *fEX; //[fNpoints] array of X errors
   Double_t *fEY; //[fNpoints] array of Y errors
   Double_t *fEZ; //[fNpoints] array of Z errors

public:
   TGraph2DErrors();
   TGraph2DErrors(Int_t n);
   TGraph2DErrors(Int_t n, Double_t *x, Double_t *y, Double_t *z,
                  Double_t *ex=0, Double_t *ey=0, Double_t *ez=0, Option_t *option="");
   virtual ~TGraph2DErrors();
   Double_t        GetErrorX(Int_t bin) const;
   Double_t        GetErrorY(Int_t bin) const;
   Double_t        GetErrorZ(Int_t bin) const;
   Double_t       *GetEX() const {return fEX;}
   Double_t       *GetEY() const {return fEY;}
   Double_t       *GetEZ() const {return fEZ;}
   Double_t        GetXmaxE() const;
   Double_t        GetXminE() const;
   Double_t        GetYmaxE() const;
   Double_t        GetYminE() const;
   Double_t        GetZmaxE() const;
   Double_t        GetZminE() const;
   virtual void    Set(Int_t n);
   virtual void    SetPoint(Int_t i, Double_t x, Double_t y, Double_t z);
   virtual void    SetPointError(Int_t i, Double_t ex, Double_t ey, Double_t ez);

   ClassDef(TGraph2DErrors,1)  //A 2D graph with error bars
};

#endif


 TGraph2DErrors.h:1
 TGraph2DErrors.h:2
 TGraph2DErrors.h:3
 TGraph2DErrors.h:4
 TGraph2DErrors.h:5
 TGraph2DErrors.h:6
 TGraph2DErrors.h:7
 TGraph2DErrors.h:8
 TGraph2DErrors.h:9
 TGraph2DErrors.h:10
 TGraph2DErrors.h:11
 TGraph2DErrors.h:12
 TGraph2DErrors.h:13
 TGraph2DErrors.h:14
 TGraph2DErrors.h:15
 TGraph2DErrors.h:16
 TGraph2DErrors.h:17
 TGraph2DErrors.h:18
 TGraph2DErrors.h:19
 TGraph2DErrors.h:20
 TGraph2DErrors.h:21
 TGraph2DErrors.h:22
 TGraph2DErrors.h:23
 TGraph2DErrors.h:24
 TGraph2DErrors.h:25
 TGraph2DErrors.h:26
 TGraph2DErrors.h:27
 TGraph2DErrors.h:28
 TGraph2DErrors.h:29
 TGraph2DErrors.h:30
 TGraph2DErrors.h:31
 TGraph2DErrors.h:32
 TGraph2DErrors.h:33
 TGraph2DErrors.h:34
 TGraph2DErrors.h:35
 TGraph2DErrors.h:36
 TGraph2DErrors.h:37
 TGraph2DErrors.h:38
 TGraph2DErrors.h:39
 TGraph2DErrors.h:40
 TGraph2DErrors.h:41
 TGraph2DErrors.h:42
 TGraph2DErrors.h:43
 TGraph2DErrors.h:44
 TGraph2DErrors.h:45
 TGraph2DErrors.h:46
 TGraph2DErrors.h:47
 TGraph2DErrors.h:48
 TGraph2DErrors.h:49
 TGraph2DErrors.h:50
 TGraph2DErrors.h:51
 TGraph2DErrors.h:52
 TGraph2DErrors.h:53
 TGraph2DErrors.h:54
 TGraph2DErrors.h:55
 TGraph2DErrors.h:56
 TGraph2DErrors.h:57
 TGraph2DErrors.h:58
 TGraph2DErrors.h:59
 TGraph2DErrors.h:60
 TGraph2DErrors.h:61
 TGraph2DErrors.h:62
 TGraph2DErrors.h:63
 TGraph2DErrors.h:64
 TGraph2DErrors.h:65
 TGraph2DErrors.h:66
 TGraph2DErrors.h:67