100 Error(
"TGraph2DErrors",
"Invalid number of points (%d)", n);
124 Error(
"TGraphErrors",
"Invalid number of points (%d)", n);
133 if (ex)
fEX[i] = ex[i];
135 if (ey)
fEY[i] = ey[i];
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;
243 for (
Int_t i=1; i<fNpoints; i++) if (fX[i]+fEX[i]>
v) v=
fX[i]+fEX[i];
265 for (
Int_t i=1; i<fNpoints; i++) if (fY[i]+fEY[i]>
v) v=
fY[i]+fEY[i];
287 for (
Int_t i=1; i<fNpoints; i++) if (fZ[i]+fEZ[i]>
v) v=
fZ[i]+fEZ[i];
339 if (
fX)
delete []
fX;
340 if (
fY)
delete []
fY;
341 if (
fZ)
delete []
fZ;
378 void TGraph2DErrors::Streamer(
TBuffer &
b)
virtual ~TGraph2DErrors()
TGraph2DErrors destructor.
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
virtual void Set(Int_t n)
Set number of points in the 2D graph.
TGraph2DErrors & operator=(const TGraph2DErrors &)
Assignment operator Copy everything except list of functions.
Double_t GetErrorZ(Int_t bin) const
This function is called by Graph2DFitChisquare.
TGraph2D & operator=(const TGraph2D &)
Graph2D operator "=".
Buffer base class used for serializing objects.
Double_t GetXmaxE() const
Returns the X maximum with errors.
Double_t GetZmaxE() const
Returns the Z maximum with errors.
Double_t GetYmaxE() const
Returns the Y maximum with errors.
Double_t * fEY
[fNpoints] array of Y errors
Double_t * fEX
[fNpoints] array of X 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.
Int_t fSize
!Real size of fX, fY and fZ
Double_t GetYminE() const
Returns the Y minimum with errors.
TGraph2DErrors()
TGraph2DErrors default constructor.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Int_t fNpoints
Number of points in the data set.
Double_t GetXminE() const
Returns the X minimum with errors.
Double_t GetZminE() const
Returns the Z minimum with errors.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
Double_t GetErrorY(Int_t bin) const
This function is called by Graph2DFitChisquare.
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.
you should not use this method at all Int_t Int_t z
Double_t * fEZ
[fNpoints] array of Z errors
Double_t GetErrorX(Int_t bin) const
This function is called by Graph2DFitChisquare.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Graphics object made of three arrays X, Y and Z with the same number of points each.
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
Double_t * fY
[fNpoints] Data set to be plotted
Graph 2D class with errors.