Logo ROOT  
Reference Guide
TGraphMultiErrors.h
Go to the documentation of this file.
1 // @(#)root/hist:$Id$
2 // Author: Simon Spies 18/02/19
3 
4 /*************************************************************************
5  * Copyright (C) 2018-2019, 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_TGraphMultiErrors
13 #define ROOT_TGraphMultiErrors
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TGraphMultiErrors //
18 // //
19 // a Graph with asymmetric error bars and multiple y errors //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TGraph.h"
24 #include <vector>
25 
26 class TArrayF;
27 class TArrayD;
28 
29 class TGraphMultiErrors : public TGraph {
30 
31 protected:
32  Int_t fNYErrors; ///< The amount of different y-errors
33  Int_t fSumErrorsMode; ///< How y errors are summed: kOnlyFirst = Only First; kSquareSum = Squared Sum; kSum =
34  ///< Absolute Addition
35  Double_t *fExL; ///<[fNpoints] array of X low errors
36  Double_t *fExH; ///<[fNpoints] array of X high errors
37  std::vector<TArrayD> fEyL; ///< two dimensional array of Y low errors
38  std::vector<TArrayD> fEyH; ///< two dimensional array of Y high errors
39  mutable Double_t *fEyLSum = nullptr; ///<! array of summed Y low errors for fitting
40  mutable Double_t *fEyHSum = nullptr; ///<! array of summed Y high errors for fitting
41  std::vector<TAttFill> fAttFill; ///< the AttFill attributes of the different errors
42  std::vector<TAttLine> fAttLine; ///< the AttLine attributes of the different errors
43 
44  virtual Double_t **Allocate(Int_t size);
46 
47  virtual void CopyAndRelease(Double_t **newarrays, Int_t ibegin, Int_t iend, Int_t obegin);
48  virtual Bool_t CopyPoints(Double_t **arrays, Int_t ibegin, Int_t iend, Int_t obegin);
49  virtual void FillZero(Int_t begin, Int_t end, Bool_t from_ctor = kTRUE);
50 
51  void CalcYErrorsSum() const;
52  virtual Bool_t DoMerge(const TGraph *tg);
53  virtual void SwapPoints(Int_t pos1, Int_t pos2);
54 
55 public:
57  kOnlyFirst = 0, ///< Only take errors from first dimension
58  kSquareSum = 1, ///< Calculate the square sum of all errors
59  kAbsSum = 2 ///< Calculate the absolute sum of all errors
60  };
61 
63  TGraphMultiErrors(const Char_t *name, const Char_t *title);
64  TGraphMultiErrors(Int_t np, Int_t ne = 1);
65  TGraphMultiErrors(const Char_t *name, const Char_t *title, Int_t np, Int_t ne = 1);
66 
67  TGraphMultiErrors(Int_t np, const Float_t *x, const Float_t *y, const Float_t *exL = nullptr,
68  const Float_t *exH = nullptr, const Float_t *eyL = nullptr, const Float_t *eyH = nullptr,
69  Int_t m = kOnlyFirst);
70  TGraphMultiErrors(const Char_t *name, const Char_t *title, Int_t np, const Float_t *x, const Float_t *y,
71  const Float_t *exL = nullptr, const Float_t *exH = nullptr, const Float_t *eyL = nullptr,
72  const Float_t *eyH = nullptr, Int_t m = kOnlyFirst);
73  TGraphMultiErrors(Int_t np, const Double_t *x, const Double_t *y, const Double_t *exL = nullptr,
74  const Double_t *exH = nullptr, const Double_t *eyL = nullptr, const Double_t *eyH = nullptr,
75  Int_t m = kOnlyFirst);
76  TGraphMultiErrors(const Char_t *name, const Char_t *title, Int_t np, const Double_t *x, const Double_t *y,
77  const Double_t *exL = nullptr, const Double_t *exH = nullptr, const Double_t *eyL = nullptr,
78  const Double_t *eyH = nullptr, Int_t m = kOnlyFirst);
79 
80  TGraphMultiErrors(Int_t np, Int_t ne, const Float_t *x, const Float_t *y, const Float_t *exL, const Float_t *exH,
81  std::vector<std::vector<Float_t>> eyL, std::vector<std::vector<Float_t>> eyH,
82  Int_t m = kOnlyFirst);
83  TGraphMultiErrors(const Char_t *name, const Char_t *title, Int_t np, Int_t ne, const Float_t *x, const Float_t *y,
84  const Float_t *exL, const Float_t *exH, std::vector<std::vector<Float_t>> eyL,
85  std::vector<std::vector<Float_t>> eyH, Int_t m = kOnlyFirst);
86  TGraphMultiErrors(Int_t np, Int_t ne, const Double_t *x, const Double_t *y, const Double_t *exL, const Double_t *exH,
87  std::vector<std::vector<Double_t>> eyL, std::vector<std::vector<Double_t>> eyH,
88  Int_t m = kOnlyFirst);
89  TGraphMultiErrors(const Char_t *name, const Char_t *title, Int_t np, Int_t ne, const Double_t *x, const Double_t *y,
90  const Double_t *exL, const Double_t *exH, std::vector<std::vector<Double_t>> eyL,
91  std::vector<std::vector<Double_t>> eyH, Int_t m = kOnlyFirst);
92 
93  TGraphMultiErrors(Int_t np, Int_t ne, const Float_t *x, const Float_t *y, const Float_t *exL, const Float_t *exH,
94  std::vector<TArrayF> eyL, std::vector<TArrayF> eyH, Int_t m = kOnlyFirst);
95  TGraphMultiErrors(const Char_t *name, const Char_t *title, Int_t np, Int_t ne, const Float_t *x, const Float_t *y,
96  const Float_t *exL, const Float_t *exH, std::vector<TArrayF> eyL, std::vector<TArrayF> eyH,
97  Int_t m = kOnlyFirst);
98  TGraphMultiErrors(Int_t np, Int_t ne, const Double_t *x, const Double_t *y, const Double_t *exL, const Double_t *exH,
99  std::vector<TArrayD> eyL, std::vector<TArrayD> eyH, Int_t m = kOnlyFirst);
100  TGraphMultiErrors(const Char_t *name, const Char_t *title, Int_t np, Int_t ne, const Double_t *x, const Double_t *y,
101  const Double_t *exL, const Double_t *exH, std::vector<TArrayD> eyL, std::vector<TArrayD> eyH,
102  Int_t m = kOnlyFirst);
103 
104  TGraphMultiErrors(const TVectorF &tvX, const TVectorF &tvY, const TVectorF &tvExL, const TVectorF &tvExH,
105  const TVectorF &tvEyL, const TVectorF &tvEyH, Int_t m = kOnlyFirst);
106  TGraphMultiErrors(const TVectorD &tvX, const TVectorD &tvY, const TVectorD &tvExL, const TVectorD &tvExH,
107  const TVectorD &tvEyL, const TVectorD &tvEyH, Int_t m = kOnlyFirst);
108 
109  TGraphMultiErrors(Int_t ne, const TVectorF &tvX, const TVectorF &tvY, const TVectorF &tvExL, const TVectorF &tvExH,
110  const TVectorF *tvEyL, const TVectorF *tvEyH, Int_t m = kOnlyFirst);
111  TGraphMultiErrors(Int_t ne, const TVectorD &tvX, const TVectorD &tvY, const TVectorD &tvExL, const TVectorD &tvExH,
112  const TVectorD *tvEyL, const TVectorD *tvEyH, Int_t m = kOnlyFirst);
113 
116 
117  TGraphMultiErrors(const TH1 *th, Int_t ne = 1);
118  TGraphMultiErrors(const TH1 *pass, const TH1 *total, Int_t ne = 1, Option_t *option = "");
119 
120  virtual ~TGraphMultiErrors();
121 
122  virtual void AddYError(Int_t np, const Double_t *eyL = nullptr, const Double_t *eyH = nullptr);
123  virtual void Apply(TF1 *f);
124  virtual void BayesDivide(const TH1 *pass, const TH1 *total, Option_t *opt = "");
125  void Divide(const TH1 *pass, const TH1 *total, Option_t *opt = "cp");
126  virtual void ComputeRange(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) const;
127  virtual void DeleteYError(Int_t e);
128 
129  virtual Double_t GetErrorX(Int_t i) const;
130  virtual Double_t GetErrorY(Int_t i) const;
131  virtual Double_t GetErrorY(Int_t i, Int_t e) const;
132 
133  virtual Double_t GetErrorXlow(Int_t i) const;
134  virtual Double_t GetErrorXhigh(Int_t i) const;
135  virtual Double_t GetErrorYlow(Int_t i) const;
136  virtual Double_t GetErrorYhigh(Int_t i) const;
137  virtual Double_t GetErrorYlow(Int_t i, Int_t e) const;
138  virtual Double_t GetErrorYhigh(Int_t i, Int_t e) const;
139 
140  virtual Double_t *GetEXlow() const { return fExL; }
141  virtual Double_t *GetEXhigh() const { return fExH; }
142  virtual Double_t *GetEYlow() const;
143  virtual Double_t *GetEYhigh() const;
144  virtual Double_t *GetEYlow(Int_t e);
145  virtual Double_t *GetEYhigh(Int_t e);
146 
147  virtual TAttFill *GetAttFill(Int_t e);
148  virtual TAttLine *GetAttLine(Int_t e);
149 
150  using TAttFill::GetFillColor;
151  using TAttFill::GetFillStyle;
152 
153  virtual Color_t GetFillColor(Int_t e) const;
154  virtual Style_t GetFillStyle(Int_t e) const;
155 
156  using TAttLine::GetLineColor;
157  using TAttLine::GetLineStyle;
158  using TAttLine::GetLineWidth;
159 
160  virtual Color_t GetLineColor(Int_t e) const;
161  virtual Style_t GetLineStyle(Int_t e) const;
162  virtual Width_t GetLineWidth(Int_t e) const;
163 
165  Int_t GetNYErrors() const { return fNYErrors; }
166 
167  virtual void Print(Option_t *chopt = "") const;
168  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
169 
170  virtual void SetPointError(Double_t exL, Double_t exH, Double_t eyL1, Double_t eyH1, Double_t eyL2 = 0.,
171  Double_t eyH2 = 0., Double_t eyL3 = 0., Double_t eyH3 = 0.); // *MENU*
172  virtual void SetPointError(Int_t i, Int_t ne, Double_t exL, Double_t exH, const Double_t *eyL, const Double_t *eyH);
173 
174  virtual void SetPointEX(Int_t i, Double_t exL, Double_t exH);
175  virtual void SetPointEXlow(Int_t i, Double_t exL);
176  virtual void SetPointEXhigh(Int_t i, Double_t exH);
177  virtual void SetPointEY(Int_t i, Int_t ne, const Double_t *eyL, const Double_t *eyH);
178  virtual void SetPointEYlow(Int_t i, Int_t ne, const Double_t *eyL);
179  virtual void SetPointEYhigh(Int_t i, Int_t ne, const Double_t *eyH);
180  virtual void SetPointEY(Int_t i, Int_t e, Double_t eyL, Double_t eyH);
181  virtual void SetPointEYlow(Int_t i, Int_t e, Double_t eyL);
182  virtual void SetPointEYhigh(Int_t i, Int_t e, Double_t eyH);
183 
184  virtual void SetEY(Int_t e, Int_t np, const Double_t *eyL, const Double_t *eyH);
185  virtual void SetEYlow(Int_t e, Int_t np, const Double_t *eyL);
186  virtual void SetEYhigh(Int_t e, Int_t np, const Double_t *eyH);
187 
188  virtual void SetSumErrorsMode(Int_t m);
189 
190  virtual void SetAttFill(Int_t e, TAttFill *taf);
191  virtual void SetAttLine(Int_t e, TAttLine *tal);
192 
196 
197  virtual void SetFillColor(Int_t e, Color_t fcolor);
198  virtual void SetFillColorAlpha(Int_t e, Color_t fcolor, Float_t falpha);
199  virtual void SetFillStyle(Int_t e, Style_t fstyle);
200 
205 
206  virtual void SetLineColor(Int_t e, Color_t lcolor);
207  virtual void SetLineColorAlpha(Int_t e, Color_t lcolor, Float_t lalpha);
208  virtual void SetLineStyle(Int_t e, Style_t lstyle);
209  virtual void SetLineWidth(Int_t e, Width_t lwidth);
210 
211  ClassDef(TGraphMultiErrors, 1) // A Graph with asymmetric error bars and multiple y error dimensions
212 };
213 
214 #endif // ROOT_TGraphMultiErrors
m
auto * m
Definition: textangle.C:8
TGraphMultiErrors::SetLineWidth
virtual void SetLineWidth(Int_t e, Width_t lwidth)
Set Line Width of error e (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:2071
TGraphMultiErrors::GetErrorY
virtual Double_t GetErrorY(Int_t i) const
Get error on y coordinate for point i The multiple errors of the dimensions are summed according to f...
Definition: TGraphMultiErrors.cxx:1420
ymax
float ymax
Definition: THbookFile.cxx:95
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
e
#define e(i)
Definition: RSha256.hxx:121
Style_t
short Style_t
Definition: RtypesCore.h:80
TGraphMultiErrors::SetFillColor
virtual void SetFillColor(Int_t e, Color_t fcolor)
Set Fill Color of error e (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:2005
TGraphMultiErrors::SetSumErrorsMode
virtual void SetSumErrorsMode(Int_t m)
Set the sum errors mode and recalculate summed errors.
Definition: TGraphMultiErrors.cxx:1972
TGraphMultiErrors::fEyLSum
Double_t * fEyLSum
! array of summed Y low errors for fitting
Definition: TGraphMultiErrors.h:39
TGraphMultiErrors::kSquareSum
@ kSquareSum
Calculate the square sum of all errors.
Definition: TGraphMultiErrors.h:58
f
#define f(i)
Definition: RSha256.hxx:122
TGraphMultiErrors::DeleteYError
virtual void DeleteYError(Int_t e)
Deletes the y error with the index e Note that you must keep at least 1 error.
Definition: TGraphMultiErrors.cxx:1388
TGraphMultiErrors::operator=
TGraphMultiErrors & operator=(const TGraphMultiErrors &tgme)
TGraphMultiErrors assignment operator.
Definition: TGraphMultiErrors.cxx:599
TGraphMultiErrors::CtorAllocate
Bool_t CtorAllocate()
Should be called from ctors after fNpoints has been set Note: This function should be called only fro...
Definition: TGraphMultiErrors.cxx:718
TGraphMultiErrors::AddYError
virtual void AddYError(Int_t np, const Double_t *eyL=nullptr, const Double_t *eyH=nullptr)
Add a new y error to the graph and fill it with the values from eyL and eyH.
Definition: TGraphMultiErrors.cxx:885
TGraphMultiErrors::SetPointEXlow
virtual void SetPointEXlow(Int_t i, Double_t exL)
Set exL value for point i.
Definition: TGraphMultiErrors.cxx:1818
TGraphMultiErrors::fEyHSum
Double_t * fEyHSum
! array of summed Y high errors for fitting
Definition: TGraphMultiErrors.h:40
TGraphMultiErrors::GetAttFill
virtual TAttFill * GetAttFill(Int_t e)
Get AttFill pointer for specified error dimension.
Definition: TGraphMultiErrors.cxx:1587
TGraphMultiErrors::fNYErrors
Int_t fNYErrors
The amount of different y-errors.
Definition: TGraphMultiErrors.h:32
TGraphMultiErrors::SetAttFill
virtual void SetAttFill(Int_t e, TAttFill *taf)
Set TAttFill parameters of error e by copying from another TAttFill (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:1983
TGraphMultiErrors::ESummationModes
ESummationModes
Definition: TGraphMultiErrors.h:56
TGraph.h
xmax
float xmax
Definition: THbookFile.cxx:95
SetFillStyle
a SetFillStyle(0)
TGraphMultiErrors::GetErrorYlow
virtual Double_t GetErrorYlow(Int_t i) const
Get low error on y coordinate for point i The multiple errors of the dimensions are summed according ...
Definition: TGraphMultiErrors.cxx:1470
TGraphMultiErrors
Definition: TGraphMultiErrors.h:29
TGraphMultiErrors::SetEYlow
virtual void SetEYlow(Int_t e, Int_t np, const Double_t *eyL)
Set error e eyL values.
Definition: TGraphMultiErrors.cxx:1947
TGraphMultiErrors::SetPointEXhigh
virtual void SetPointEXhigh(Int_t i, Double_t exH)
Set exH value for point i.
Definition: TGraphMultiErrors.cxx:1834
Float_t
float Float_t
Definition: RtypesCore.h:57
TAttLine::SetLineColorAlpha
virtual void SetLineColorAlpha(Color_t lcolor, Float_t lalpha)
Set a transparent line color.
Definition: TAttLine.cxx:299
TGraphMultiErrors::fExL
Double_t * fExL
[fNpoints] array of X low errors
Definition: TGraphMultiErrors.h:35
Int_t
int Int_t
Definition: RtypesCore.h:45
TGraphMultiErrors::kOnlyFirst
@ kOnlyFirst
Only take errors from first dimension.
Definition: TGraphMultiErrors.h:57
x
Double_t x[n]
Definition: legend1.C:17
TGraphMultiErrors::fEyH
std::vector< TArrayD > fEyH
two dimensional array of Y high errors
Definition: TGraphMultiErrors.h:38
TArrayF
Definition: TArrayF.h:27
Color_t
short Color_t
Definition: RtypesCore.h:83
bool
TGraphMultiErrors::GetFillColor
virtual Color_t GetFillColor(Int_t e) const
Get Fill Color for specified error e (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:1609
TGraphMultiErrors::GetErrorXhigh
virtual Double_t GetErrorXhigh(Int_t i) const
Get high error on x coordinate for point i.
Definition: TGraphMultiErrors.cxx:1458
TGraphMultiErrors::GetEXlow
virtual Double_t * GetEXlow() const
Definition: TGraphMultiErrors.h:140
TGraphMultiErrors::SetEYhigh
virtual void SetEYhigh(Int_t e, Int_t np, const Double_t *eyH)
Set error e eyH values.
Definition: TGraphMultiErrors.cxx:1960
TGraphMultiErrors::CopyPoints
virtual Bool_t CopyPoints(Double_t **arrays, Int_t ibegin, Int_t iend, Int_t obegin)
Copy errors from fE*** to arrays[] or to f Copy points.
Definition: TGraphMultiErrors.cxx:777
TGraphMultiErrors::FillZero
virtual void FillZero(Int_t begin, Int_t end, Bool_t from_ctor=kTRUE)
Set zero values for point arrays in the range [begin, end)
Definition: TGraphMultiErrors.cxx:802
TGraphMultiErrors::SetEY
virtual void SetEY(Int_t e, Int_t np, const Double_t *eyL, const Double_t *eyH)
Set error e ey values.
Definition: TGraphMultiErrors.cxx:1938
TGraphMultiErrors::GetNYErrors
Int_t GetNYErrors() const
Definition: TGraphMultiErrors.h:165
total
static unsigned int total
Definition: TGWin32ProxyDefs.h:40
TGraphMultiErrors::fEyL
std::vector< TArrayD > fEyL
two dimensional array of Y low errors
Definition: TGraphMultiErrors.h:37
TGraphMultiErrors::SetLineColorAlpha
virtual void SetLineColorAlpha(Int_t e, Color_t lcolor, Float_t lalpha)
Set Line Color and Alpha of error e (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:2049
TGraphMultiErrors::fSumErrorsMode
Int_t fSumErrorsMode
How y errors are summed: kOnlyFirst = Only First; kSquareSum = Squared Sum; kSum = Absolute Addition.
Definition: TGraphMultiErrors.h:33
TGraphMultiErrors::CalcYErrorsSum
void CalcYErrorsSum() const
Recalculates the summed y error arrays.
Definition: TGraphMultiErrors.cxx:822
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TGraphMultiErrors::fAttFill
std::vector< TAttFill > fAttFill
the AttFill attributes of the different errors
Definition: TGraphMultiErrors.h:41
SetLineWidth
f1 SetLineWidth(4)
TAttLine
Definition: TAttLine.h:18
TGraphMultiErrors::GetLineWidth
virtual Width_t GetLineWidth(Int_t e) const
Get Line Width for specified error e (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:1661
SetFillColor
h1 SetFillColor(kGreen)
xmin
float xmin
Definition: THbookFile.cxx:95
TGraphMultiErrors::fAttLine
std::vector< TAttLine > fAttLine
the AttLine attributes of the different errors
Definition: TGraphMultiErrors.h:42
TGraphMultiErrors::GetLineColor
virtual Color_t GetLineColor(Int_t e) const
Get Line Color for specified error e (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:1635
Width_t
short Width_t
Definition: RtypesCore.h:82
TGraphMultiErrors::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TGraphMultiErrors.cxx:1695
TGraphMultiErrors::SetAttLine
virtual void SetAttLine(Int_t e, TAttLine *tal)
Set TAttLine parameters of error e by copying from another TAttLine (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:1994
TGraphMultiErrors::DoMerge
virtual Bool_t DoMerge(const TGraph *tg)
protected function to perform the merge operation of a graph with multiple asymmetric errors
Definition: TGraphMultiErrors.cxx:838
TGraphMultiErrors::SetPointEY
virtual void SetPointEY(Int_t i, Int_t ne, const Double_t *eyL, const Double_t *eyH)
Set ey values for point i.
Definition: TGraphMultiErrors.cxx:1850
TGraphMultiErrors::GetEYlow
virtual Double_t * GetEYlow() const
Get all low errors on y coordinates as an array summed according to fSumErrorsMode.
Definition: TGraphMultiErrors.cxx:1543
TGraphMultiErrors::kAbsSum
@ kAbsSum
Calculate the absolute sum of all errors.
Definition: TGraphMultiErrors.h:59
y
Double_t y[n]
Definition: legend1.C:17
TGraphMultiErrors::SetPointEYlow
virtual void SetPointEYlow(Int_t i, Int_t ne, const Double_t *eyL)
Set eyL values for point i.
Definition: TGraphMultiErrors.cxx:1859
TGraphMultiErrors::CopyAndRelease
virtual void CopyAndRelease(Double_t **newarrays, Int_t ibegin, Int_t iend, Int_t obegin)
Copy and release.
Definition: TGraphMultiErrors.cxx:748
TGraphMultiErrors::GetAttLine
virtual TAttLine * GetAttLine(Int_t e)
Get AttLine pointer for specified error dimension.
Definition: TGraphMultiErrors.cxx:1598
TGraphMultiErrors::GetLineStyle
virtual Style_t GetLineStyle(Int_t e) const
Get Line Style for specified error e (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:1648
ymin
float ymin
Definition: THbookFile.cxx:95
TVectorT
Definition: TMatrixTBase.h:78
Double_t
double Double_t
Definition: RtypesCore.h:59
TGraphMultiErrors::Divide
void Divide(const TH1 *pass, const TH1 *total, Option_t *opt="cp")
This function was adapted from the TGraphAsymmErrors class.
Definition: TGraphMultiErrors.cxx:967
TGraph
Definition: TGraph.h:41
TGraphMultiErrors::GetFillStyle
virtual Style_t GetFillStyle(Int_t e) const
Get Fill Style for specified error e (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:1622
TGraphMultiErrors::TGraphMultiErrors
TGraphMultiErrors()
TGraphMultiErrors default constructor.
Definition: TGraphMultiErrors.cxx:66
TGraphMultiErrors::SetLineStyle
virtual void SetLineStyle(Int_t e, Style_t lstyle)
Set Line Style of error e (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:2060
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TH1
Definition: TH1.h:57
TAttFill::SetFillColorAlpha
virtual void SetFillColorAlpha(Color_t fcolor, Float_t falpha)
Set a transparent fill color.
Definition: TAttFill.cxx:260
TGraphMultiErrors::fExH
Double_t * fExH
[fNpoints] array of X high errors
Definition: TGraphMultiErrors.h:36
name
char name[80]
Definition: TGX11.cxx:110
TGraphMultiErrors::Apply
virtual void Apply(TF1 *f)
Apply a function to all data points y = f(x,y)
Definition: TGraphMultiErrors.cxx:917
TGraphMultiErrors::Print
virtual void Print(Option_t *chopt="") const
Print graph and errors values.
Definition: TGraphMultiErrors.cxx:1674
TGraphMultiErrors::~TGraphMultiErrors
virtual ~TGraphMultiErrors()
TGraphMultiErrors default destructor.
Definition: TGraphMultiErrors.cxx:697
TGraphMultiErrors::SetPointEYhigh
virtual void SetPointEYhigh(Int_t i, Int_t ne, const Double_t *eyH)
Set eyH values for point i.
Definition: TGraphMultiErrors.cxx:1872
TGraphMultiErrors::ComputeRange
virtual void ComputeRange(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) const
Compute Range.
Definition: TGraphMultiErrors.cxx:1345
TGraphMultiErrors::SetFillColorAlpha
virtual void SetFillColorAlpha(Int_t e, Color_t fcolor, Float_t falpha)
Set Fill Color and Alpha of error e (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:2016
TGraphMultiErrors::GetErrorXlow
virtual Double_t GetErrorXlow(Int_t i) const
Get low error on x coordinate for point i.
Definition: TGraphMultiErrors.cxx:1447
TGraphMultiErrors::GetEXhigh
virtual Double_t * GetEXhigh() const
Definition: TGraphMultiErrors.h:141
TAttFill
Definition: TAttFill.h:19
SetLineColor
lv SetLineColor(kBlue)
TGraphMultiErrors::GetEYhigh
virtual Double_t * GetEYhigh() const
Get all high errors on y coordinates as an array summed according to fSumErrorsMode.
Definition: TGraphMultiErrors.cxx:1554
TF1
1-Dim function class
Definition: TF1.h:212
TArrayD
Definition: TArrayD.h:27
TGraphMultiErrors::SetPointEX
virtual void SetPointEX(Int_t i, Double_t exL, Double_t exH)
Set ex values for point i.
Definition: TGraphMultiErrors.cxx:1809
TGraphMultiErrors::BayesDivide
virtual void BayesDivide(const TH1 *pass, const TH1 *total, Option_t *opt="")
This function is only kept for backward compatibility.
Definition: TGraphMultiErrors.cxx:956
Char_t
char Char_t
Definition: RtypesCore.h:33
TGraphMultiErrors::SetPointError
virtual void SetPointError(Double_t exL, Double_t exH, Double_t eyL1, Double_t eyH1, Double_t eyL2=0., Double_t eyH2=0., Double_t eyL3=0., Double_t eyH3=0.)
Set ex and ey values for point pointed by the mouse.
Definition: TGraphMultiErrors.cxx:1762
TGraphMultiErrors::SwapPoints
virtual void SwapPoints(Int_t pos1, Int_t pos2)
Swap points.
Definition: TGraphMultiErrors.cxx:869
TGraphMultiErrors::GetSumErrorsMode
Int_t GetSumErrorsMode() const
Definition: TGraphMultiErrors.h:164
TGraphMultiErrors::Allocate
virtual Double_t ** Allocate(Int_t size)
Allocate internal data structures for size points.
Definition: TGraphMultiErrors.cxx:901
TGraphMultiErrors::SetFillStyle
virtual void SetFillStyle(Int_t e, Style_t fstyle)
Set Fill Style of error e (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:2027
TGraphMultiErrors::GetErrorYhigh
virtual Double_t GetErrorYhigh(Int_t i) const
Get high error on y coordinate for point i The multiple errors of the dimensions are summed according...
Definition: TGraphMultiErrors.cxx:1496
int
TGraphMultiErrors::GetErrorX
virtual Double_t GetErrorX(Int_t i) const
Get error on x coordinate for point i In case of asymmetric errors the mean of the square sum is retu...
Definition: TGraphMultiErrors.cxx:1405
SetLineStyle
lv SetLineStyle(3)
TGraphMultiErrors::SetLineColor
virtual void SetLineColor(Int_t e, Color_t lcolor)
Set Line Color of error e (-1 = Global and x errors)
Definition: TGraphMultiErrors.cxx:2038