100 Error(
"TGraph2DAsymmErrors",
"Invalid number of points (%d)",
n);
125TGraph2DAsymmErrors::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 *)
129 Error(
"TGraph2DAsymmErrorsErrors",
"Invalid number of points (%d)",
n);
141 if (exl)
fEXlow[i] = exl[i];
145 if (eyl)
fEYlow[i] = eyl[i];
149 if (ezl)
fEZlow[i] = ezl[i];
175:
TGraph2D(
g), fEXlow(0), fEXhigh(0), fEYlow(0), fEYhigh(0), fEZlow(0), fEZhigh(0)
201 if (
this == &
g)
return *
this;
240 if (i < 0 || i >=
fNpoints)
return -1;
253 if (i < 0 || i >=
fNpoints)
return -1;
263 if (i < 0 || i >=
fNpoints)
return -1;
274 if (i < 0 || i >=
fNpoints)
return -1;
288 if (i < 0 || i >=
fNpoints)
return -1;
298 if (i < 0 || i >=
fNpoints)
return -1;
309 if (i < 0 || i >=
fNpoints)
return -1;
322 if (i < 0 || i >=
fNpoints)
return -1;
332 if (i < 0 || i >=
fNpoints)
return -1;
410 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",
411 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]);
471 if (ipoint < 0)
return -1;
487 if (i == ipoint)
continue;
554 if (
fX)
delete []
fX;
555 if (
fY)
delete []
fY;
556 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.
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.
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.