100 Error(
"TGraph2DErrors",
"Invalid number of points (%d)",
n);
124 Error(
"TGraphErrors",
"Invalid number of points (%d)",
n);
137 if (ez)
fEZ[i] = ez[i];
178 if (
this == &
g)
return *
this;
207 if (i < 0 || i >=
fNpoints)
return -1;
219 if (i < 0 || i >=
fNpoints)
return -1;
231 if (i < 0 || i >=
fNpoints)
return -1;
309 printf(
"x[%d]=%g, y[%d]=%g, z[%d]=%g, ex[%d]=%g, ey[%d]=%g, ez[%d]=%g\n", i,
fX[i], i,
fY[i], i,
fZ[i], i,
fEX[i], i,
fEY[i], i,
fEZ[i]);
349 if (
fX)
delete []
fX;
350 if (
fY)
delete []
fY;
351 if (
fZ)
delete []
fZ;
388void TGraph2DErrors::Streamer(
TBuffer &
b)
Buffer base class used for serializing objects.
Graph 2D class with errors.
Double_t GetYmaxE() const
Returns the Y maximum with errors.
Double_t GetXminE() const
Returns the X minimum with errors.
Double_t GetZminE() const
Returns the Z minimum with errors.
Double_t * fEY
[fNpoints] array of Y errors
Double_t GetZmaxE() const
Returns the Z maximum with errors.
virtual void SetPoint(Int_t i, Double_t x, Double_t y, Double_t z)
Set x, y and z values for point number i.
Double_t GetErrorX(Int_t bin) const
This function is called by Graph2DFitChisquare.
virtual void Print(Option_t *chopt="") const
Print 2D graph and errors values.
Double_t * fEZ
[fNpoints] array of Z errors
Double_t GetErrorY(Int_t bin) const
This function is called by Graph2DFitChisquare.
virtual void Set(Int_t n)
Set number of points in the 2D graph.
Double_t GetXmaxE() const
Returns the X maximum with errors.
virtual void SetPointError(Int_t i, Double_t ex, Double_t ey, Double_t ez)
Set ex, ey and ez values for point number i.
TGraph2DErrors & operator=(const TGraph2DErrors &)
Assignment operator Copy everything except list of functions.
Double_t * fEX
[fNpoints] array of X errors
Double_t GetErrorZ(Int_t bin) const
This function is called by Graph2DFitChisquare.
virtual ~TGraph2DErrors()
TGraph2DErrors destructor.
TGraph2DErrors()
TGraph2DErrors default constructor.
Double_t GetYminE() const
Returns the Y minimum with errors.
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.
TGraph2D & operator=(const TGraph2D &)
Graph2D operator "=".
Double_t * fY
[fNpoints] Data set to be plotted
Int_t fSize
!Real size of fX, fY and fZ
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.