TGraph2DErrors.h

Go to the documentation of this file.
00001 // @(#)root/hist:$Id: TGraph2DErrors.h,v 1.00
00002 // Author: Olivier Couet 26/11/2003
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TGraph2DErrors
00013 #define ROOT_TGraph2DErrors
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TGraph2DErrors                                                       //
00019 //                                                                      //
00020 // a 2D Graph with error bars                                           //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_TGraph2D
00025 #include "TGraph2D.h"
00026 #endif
00027 
00028 class TGraph2DErrors : public TGraph2D {
00029 
00030 private:
00031 
00032    TGraph2DErrors(const TGraph2DErrors&); // Not implemented
00033    TGraph2DErrors& operator=(const TGraph2DErrors&); // Not implemented
00034 
00035 protected:
00036    Double_t *fEX; //[fNpoints] array of X errors
00037    Double_t *fEY; //[fNpoints] array of Y errors
00038    Double_t *fEZ; //[fNpoints] array of Z errors
00039 
00040 public:
00041    TGraph2DErrors();
00042    TGraph2DErrors(Int_t n);
00043    TGraph2DErrors(Int_t n, Double_t *x, Double_t *y, Double_t *z,
00044                   Double_t *ex=0, Double_t *ey=0, Double_t *ez=0, Option_t *option="");
00045    virtual ~TGraph2DErrors();
00046    Double_t        GetErrorX(Int_t bin) const;
00047    Double_t        GetErrorY(Int_t bin) const;
00048    Double_t        GetErrorZ(Int_t bin) const;
00049    Double_t       *GetEX() const {return fEX;}
00050    Double_t       *GetEY() const {return fEY;}
00051    Double_t       *GetEZ() const {return fEZ;}
00052    Double_t        GetXmaxE() const;
00053    Double_t        GetXminE() const;
00054    Double_t        GetYmaxE() const;
00055    Double_t        GetYminE() const;
00056    Double_t        GetZmaxE() const;
00057    Double_t        GetZminE() const;
00058    virtual void    Set(Int_t n);
00059    virtual void    SetPoint(Int_t i, Double_t x, Double_t y, Double_t z);
00060    virtual void    SetPointError(Int_t i, Double_t ex, Double_t ey, Double_t ez);
00061 
00062    ClassDef(TGraph2DErrors,1)  //A 2D graph with error bars
00063 };
00064 
00065 #endif
00066 
00067 

Generated on Tue Jul 5 14:22:50 2011 for ROOT_528-00b_version by  doxygen 1.5.1