12 #ifndef ROOT_TGraphAsymmErrors
13 #define ROOT_TGraphAsymmErrors
26 class TGraphAsymmErrors :
public TGraph {
34 virtual void SwapPoints(Int_t pos1, Int_t pos2);
36 virtual Double_t** Allocate(Int_t size);
37 virtual void CopyAndRelease(Double_t **newarrays,
38 Int_t ibegin, Int_t iend, Int_t obegin);
39 virtual Bool_t CopyPoints(Double_t **arrays, Int_t ibegin, Int_t iend,
41 Bool_t CtorAllocate();
42 virtual void FillZero(Int_t begin, Int_t end,
43 Bool_t from_ctor = kTRUE);
44 virtual Bool_t DoMerge(
const TGraph * g);
48 TGraphAsymmErrors(Int_t n);
49 TGraphAsymmErrors(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);
50 TGraphAsymmErrors(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);
51 TGraphAsymmErrors(
const TVectorF &vx,
const TVectorF &vy,
const TVectorF &vexl,
const TVectorF &vexh,
const TVectorF &veyl,
const TVectorF &veyh);
52 TGraphAsymmErrors(
const TVectorD &vx,
const TVectorD &vy,
const TVectorD &vexl,
const TVectorD &vexh,
const TVectorD &veyl,
const TVectorD &veyh);
53 TGraphAsymmErrors(
const TGraphAsymmErrors &gr);
54 TGraphAsymmErrors& operator=(
const TGraphAsymmErrors &gr);
55 TGraphAsymmErrors(
const TH1 *h);
56 TGraphAsymmErrors(
const TH1* pass,
const TH1* total, Option_t *option=
"");
57 TGraphAsymmErrors(
const char *filename,
const char *format=
"%lg %lg %lg %lg %lg %lg", Option_t *option=
"");
59 virtual ~TGraphAsymmErrors();
61 virtual void Apply(TF1 *f);
62 virtual void BayesDivide(
const TH1* pass,
const TH1* total, Option_t *opt=
"");
63 virtual void Divide(
const TH1* pass,
const TH1* total, Option_t *opt=
"cp");
64 virtual void ComputeRange(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax)
const;
65 Double_t GetErrorX(Int_t bin)
const;
66 Double_t GetErrorY(Int_t bin)
const;
67 Double_t GetErrorXlow(Int_t i)
const;
68 Double_t GetErrorXhigh(Int_t i)
const;
69 Double_t GetErrorYlow(Int_t i)
const;
70 Double_t GetErrorYhigh(Int_t i)
const;
71 Double_t *GetEXlow()
const {
return fEXlow;}
72 Double_t *GetEXhigh()
const {
return fEXhigh;}
73 Double_t *GetEYlow()
const {
return fEYlow;}
74 Double_t *GetEYhigh()
const {
return fEYhigh;}
75 virtual Int_t Merge(TCollection* list);
76 virtual void Print(Option_t *chopt=
"")
const;
77 virtual void SavePrimitive(std::ostream &out, Option_t *option =
"");
78 virtual void SetPointError(Double_t exl, Double_t exh, Double_t eyl, Double_t eyh);
79 virtual void SetPointError(Int_t i, Double_t exl, Double_t exh, Double_t eyl, Double_t eyh);
80 virtual void SetPointEXlow(Int_t i, Double_t exl);
81 virtual void SetPointEXhigh(Int_t i, Double_t exh);
82 virtual void SetPointEYlow(Int_t i, Double_t eyl);
83 virtual void SetPointEYhigh(Int_t i, Double_t eyh);
85 ClassDef(TGraphAsymmErrors,3)