#ifndef ROOT_TGraphBentErrors
#define ROOT_TGraphBentErrors
#ifndef ROOT_TGraph
#include "TGraph.h"
#endif
class TGraphBentErrors : public TGraph {
protected:
Double_t *fEXlow;
Double_t *fEXhigh;
Double_t *fEYlow;
Double_t *fEYhigh;
Double_t *fEXlowd;
Double_t *fEXhighd;
Double_t *fEYlowd;
Double_t *fEYhighd;
virtual void SwapPoints(Int_t pos1, Int_t pos2);
virtual Double_t** Allocate(Int_t size);
virtual void CopyAndRelease(Double_t **newarrays,
Int_t ibegin, Int_t iend, Int_t obegin);
virtual Bool_t CopyPoints(Double_t **arrays, Int_t ibegin, Int_t iend,
Int_t obegin);
Bool_t CtorAllocate();
virtual void FillZero(Int_t begin, Int_t end,
Bool_t from_ctor = kTRUE);
public:
TGraphBentErrors();
TGraphBentErrors(Int_t n);
TGraphBentErrors(Int_t n,
const Float_t *x, const Float_t *y,
const Float_t *exl=0, const Float_t *exh=0,
const Float_t *eyl=0, const Float_t *eyh=0,
const Float_t *exld=0, const Float_t *exhd=0,
const Float_t *eyld=0, const Float_t *eyhd=0);
TGraphBentErrors(Int_t n,
const Double_t *x, const Double_t *y,
const Double_t *exl=0, const Double_t *exh=0,
const Double_t *eyl=0, const Double_t *eyh=0,
const Double_t *exld=0, const Double_t *exhd=0,
const Double_t *eyld=0, const Double_t *eyhd=0);
TGraphBentErrors(const TGraphBentErrors &gr);
virtual ~TGraphBentErrors();
virtual void Apply(TF1 *f);
virtual void ComputeRange(Double_t &xmin, Double_t &ymin,
Double_t &xmax, Double_t &ymax) const;
Double_t GetErrorX(Int_t bin) const;
Double_t GetErrorY(Int_t bin) const;
Double_t GetErrorXlow(Int_t bin) const;
Double_t GetErrorXhigh(Int_t bin) const;
Double_t GetErrorYlow(Int_t bin) const;
Double_t GetErrorYhigh(Int_t bin) const;
Double_t *GetEXlow() const {return fEXlow;}
Double_t *GetEXhigh() const {return fEXhigh;}
Double_t *GetEYlow() const {return fEYlow;}
Double_t *GetEYhigh() const {return fEYhigh;}
Double_t *GetEXlowd() const {return fEXlowd;}
Double_t *GetEXhighd() const {return fEXhighd;}
Double_t *GetEYlowd() const {return fEYlowd;}
Double_t *GetEYhighd() const {return fEYhighd;}
virtual void Print(Option_t *chopt="") const;
virtual void SavePrimitive(ostream &out, Option_t *option = "");
virtual void SetPointError(Double_t exl, Double_t exh,
Double_t eyl, Double_t eyh,
Double_t exld=0, Double_t exhd=0,
Double_t eyld=0, Double_t eyhd=0);
virtual void SetPointError(Int_t i,
Double_t exl, Double_t exh,
Double_t eyl, Double_t eyh,
Double_t exld=0, Double_t exhd=0,
Double_t eyld=0, Double_t eyhd=0);
ClassDef(TGraphBentErrors,1)
};
inline Double_t **TGraphBentErrors::Allocate(Int_t size) {
return AllocateArrays(10, size);
}
#endif
Last change: Tue Jul 8 16:57:13 2008
Last generated: 2008-07-08 16:57
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.