98 Error(
"TGraph2DAsymmErrors",
"Invalid number of points (%d)",
n);
123TGraph2DAsymmErrors::TGraph2DAsymmErrors(
Int_t n,
Double_t *
x,
Double_t *
y,
Double_t *z,
Double_t *exl,
Double_t *exh,
Double_t *eyl,
Double_t *eyh,
Double_t *ezl,
Double_t *ezh,
Option_t *)
127 Error(
"TGraph2DAsymmErrorsErrors",
"Invalid number of points (%d)",
n);
139 if (exl)
fEXlow[i] = exl[i];
143 if (eyl)
fEYlow[i] = eyl[i];
147 if (ezl)
fEZlow[i] = ezl[i];
173:
TGraph2D(
g), fEXlow(nullptr), fEXhigh(nullptr), fEYlow(nullptr), fEYhigh(nullptr), fEZlow(nullptr), fEZhigh(nullptr)
199 if (
this == &
g)
return *
this;
248 if (i < 0 || i >=
fNpoints)
return -1;
261 if (i < 0 || i >=
fNpoints)
return -1;
271 if (i < 0 || i >=
fNpoints)
return -1;
282 if (i < 0 || i >=
fNpoints)
return -1;
296 if (i < 0 || i >=
fNpoints)
return -1;
306 if (i < 0 || i >=
fNpoints)
return -1;
317 if (i < 0 || i >=
fNpoints)
return -1;
330 if (i < 0 || i >=
fNpoints)
return -1;
340 if (i < 0 || i >=
fNpoints)
return -1;
418 printf(
"x[%d]=%g, y[%d]=%g, z[%d]=%g, exl[%d]=%g, exh[%d]=%g, eyl[%d]=%g, eyh[%d]=%g, ezl[%d]=%g, ezh[%d]=%g\n",
419 i,
fX[i], i,
fY[i], i,
fZ[i], i,
fEXlow[i], i,
fEXhigh[i], i,
fEYlow[i], i,
fEYhigh[i], i,
fEZlow[i], i,
fEZhigh[i]);
479 if (ipoint < 0)
return -1;
495 if (i == ipoint)
continue;
562 if (
fX)
delete []
fX;
563 if (
fY)
delete []
fY;
564 if (
fZ)
delete []
fZ;
Buffer base class used for serializing objects.
Graph 2D class with errors.
Double_t GetErrorY(Int_t bin) const override
Returns the combined error along Y at point i by computing the average of the lower and upper varianc...
Double_t * GetEYlow() const override
Double_t * fEYlow
[fNpoints] array of Y low errors
Double_t GetYminE() const override
Returns the Y minimum with errors.
Double_t GetErrorZlow(Int_t i) const
Returns the low error along Z at point i.
virtual void SetPointError(Int_t i, Double_t exl, Double_t exh, Double_t eyl, Double_t eyh, Double_t ezl, Double_t ezh)
Set ex, ey and ez values for point number i.
Double_t * GetEYhigh() const override
Double_t * fEZlow
[fNpoints] array of Z low errors
Double_t GetErrorZhigh(Int_t i) const
Returns the high error along Z at point i.
Double_t GetYmaxE() const override
Returns the Y maximum with errors.
Double_t * fEXlow
[fNpoints] array of X low errors
Double_t GetErrorZ(Int_t bin) const override
Returns the combined error along Z at point i by computing the average of the lower and upper varianc...
Double_t GetErrorYlow(Int_t i) const
Returns the low error along Y at point i.
Double_t GetZmaxE() const override
Returns the Z maximum with errors.
Double_t * GetEZhigh() const override
Double_t * fEXhigh
[fNpoints] array of X high errors
Int_t RemovePoint(Int_t ipoint)
Deletes point number ipoint.
Double_t * fEZhigh
[fNpoints] array of Z high errors
Double_t * GetEXhigh() const override
Double_t * GetEZlow() const override
Double_t * fEYhigh
[fNpoints] array of Y high errors
Double_t GetErrorX(Int_t bin) const override
Returns the combined error along X at point i by computing the average of the lower and upper varianc...
Double_t GetErrorXhigh(Int_t i) const
Returns the high error along X at point i.
void Streamer(TBuffer &) override
Stream an object of class TGraph2DAsymmErrors.
Double_t GetErrorYhigh(Int_t i) const
Returns the high error along Y at point i.
virtual void AddPointError(Double_t x, Double_t y, Double_t z, Double_t exl=0., Double_t exh=0., Double_t eyl=0., Double_t eyh=0., Double_t ezl=0., Double_t ezh=0.)
Add a 3D point with asymmetric errorbars to an existing graph.
Double_t GetErrorXlow(Int_t i) const
Returns the low error along X at point i.
void Set(Int_t n) override
Set number of points in the 2D graph.
void SetPoint(Int_t i, Double_t x, Double_t y, Double_t z) override
Set x, y and z values for point number i.
TGraph2DAsymmErrors()
TGraph2DAsymmErrors default constructor.
Double_t GetXminE() const override
Returns the X minimum with errors.
void Print(Option_t *chopt="") const override
Print 2D graph and errors values.
void Scale(Double_t c1=1., Option_t *option="z") override
Multiply the values and errors of a TGraph2DAsymmErrors by a constant c1.
Double_t GetXmaxE() const override
Returns the X maximum with errors.
TGraph2DAsymmErrors & operator=(const TGraph2DAsymmErrors &)
Assignment operator Copy everything except list of functions.
Double_t GetZminE() const override
Returns the Z minimum with errors.
Double_t * GetEXlow() const override
~TGraph2DAsymmErrors() override
TGraph2DAsymmErrors destructor.
Graphics object made of three arrays X, Y and Z with the same number of points each.
Int_t fNpoints
Number of points in the data set.
TH2D * fHistogram
!2D histogram of z values linearly interpolated on the triangles
TObject * fDelaunay
! Pointer to Delaunay interpolator object
TGraph2D & operator=(const TGraph2D &)
Graph2D operator "=".
Double_t * fY
[fNpoints] Data set to be plotted
virtual void Scale(Double_t c1=1., Option_t *option="z")
Multiply the values of a TGraph2D by a constant c1.
virtual void AddPoint(Double_t x, Double_t y, Double_t z)
Append a new point to the graph.
Int_t fSize
!Real size of fX, fY and fZ
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
void ToLower()
Change string to lower-case.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Double_t Sqrt(Double_t x)
Returns the square root of x.