86 Error(
"TGraph2DAsymmErrors",
"Invalid number of points (%d)",
n);
120TGraph2DAsymmErrors::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 *)
124 Error(
"TGraph2DAsymmErrorsErrors",
"Invalid number of points (%d)",
n);
145 if (exl) fEXlow[i] = exl[i];
147 if (exh) fEXhigh[i] = exh[i];
149 if (eyl) fEYlow[i] = eyl[i];
151 if (eyh) fEYhigh[i] = eyh[i];
153 if (ezl) fEZlow[i] = ezl[i];
155 if (ezh) fEZhigh[i] = ezh[i];
179:
TGraph2D(
g), fEXlow(nullptr), fEXhigh(nullptr), fEYlow(nullptr), fEYhigh(nullptr), fEZlow(nullptr), fEZhigh(nullptr)
189 fEXlow[
n] =
g.fEXlow[
n];
190 fEXhigh[
n] =
g.fEXhigh[
n];
191 fEYlow[
n] =
g.fEYlow[
n];
192 fEYhigh[
n] =
g.fEYhigh[
n];
193 fEZlow[
n] =
g.fEZlow[
n];
194 fEZhigh[
n] =
g.fEZhigh[
n];
205 if (
this == &
g)
return *
this;
254 if (i < 0 || i >=
fNpoints)
return -1;
267 if (i < 0 || i >=
fNpoints)
return -1;
277 if (i < 0 || i >=
fNpoints)
return -1;
288 if (i < 0 || i >=
fNpoints)
return -1;
302 if (i < 0 || i >=
fNpoints)
return -1;
312 if (i < 0 || i >=
fNpoints)
return -1;
323 if (i < 0 || i >=
fNpoints)
return -1;
336 if (i < 0 || i >=
fNpoints)
return -1;
346 if (i < 0 || i >=
fNpoints)
return -1;
424 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",
425 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]);
440 TString opt = option; opt.
ToLower();
485 if (ipoint < 0)
return -1;
501 if (i == ipoint)
continue;
568 if (
fX)
delete []
fX;
569 if (
fY)
delete []
fY;
570 if (
fZ)
delete []
fZ;
610 out,
Class(),
"gr2daerr",
612 "%d, %s.data(), %s.data(), %s.data(), %s, %s, %s, %s, %s, %s",
617 if (strcmp(
GetName(),
"Graph2D"))
618 out <<
" gr2daerr->SetName(\"" << TString(
GetName()).ReplaceSpecialCppChars() <<
"\");\n";
625 out <<
" gr2daerr->SetTitle(\"" << title.ReplaceSpecialCppChars() <<
"\");\n";
628 out <<
" gr2daerr->SetDirectory(nullptr);\n";
int Int_t
Signed integer 4 bytes (int).
short Version_t
Class version identifier (short).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
double Double_t
Double 8 bytes.
const char Option_t
Option string (const char).
Error("WriteTObject","The current directory (%s) is not associated with a file. The object (%s) has not been written.", GetName(), objname)
virtual void SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
Buffer base class used for serializing objects.
Double_t GetErrorY(Int_t bin) const override
Double_t * GetEYlow() const override
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a primitive as a C++ statement(s) on output stream "out".
Double_t * fEYlow
[fNpoints] array of Y low errors
Double_t GetYminE() const override
Double_t GetErrorZlow(Int_t i) const
Double_t * GetEYhigh() const override
Double_t * fEZlow
[fNpoints] array of Z low errors
Double_t GetErrorZhigh(Int_t i) const
Double_t GetYmaxE() const override
Double_t * fEXlow
[fNpoints] array of X low errors
Double_t GetErrorZ(Int_t bin) const override
Double_t GetErrorYlow(Int_t i) const
Double_t GetZmaxE() const override
Double_t * GetEZhigh() const override
Double_t * fEXhigh
[fNpoints] array of X high errors
Int_t RemovePoint(Int_t ipoint)
Double_t * fEZhigh
[fNpoints] array of Z high errors
Double_t * GetEXhigh() const override
Double_t * GetEZlow() const override
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.)
Double_t * fEYhigh
[fNpoints] array of Y high errors
Double_t GetErrorX(Int_t bin) const override
Double_t GetErrorXhigh(Int_t i) const
void Streamer(TBuffer &) override
Stream an object of class TObject.
Double_t GetErrorYhigh(Int_t i) const
Double_t GetErrorXlow(Int_t i) const
void Set(Int_t n) override
void SetPoint(Int_t i, Double_t x, Double_t y, Double_t z) override
Double_t GetXminE() const override
virtual void SetPointError(Int_t i, Double_t exl, Double_t exh, Double_t eyl, Double_t eyh, Double_t ezl, Double_t ezh)
void Print(Option_t *chopt="") const override
This method must be overridden when a class wants to print itself.
void Scale(Double_t c1=1., Option_t *option="z") override
Double_t GetXmaxE() const override
TGraph2DAsymmErrors & operator=(const TGraph2DAsymmErrors &)
Double_t GetZminE() const override
Double_t * GetEXlow() const override
~TGraph2DAsymmErrors() override
Int_t fNpoints
Number of points in the data set.
virtual void Scale(Double_t c1=1., Option_t *option="z")
TH2D * fHistogram
!2D histogram of z values linearly interpolated on the triangles
TObject * fDelaunay
! Pointer to Delaunay interpolator object
TGraph2D & operator=(const TGraph2D &)
Double_t * fY
[fNpoints] Data set to be plotted
TDirectory * fDirectory
!Pointer to directory holding this 2D graph
virtual void AddPoint(Double_t x, Double_t y, Double_t z)
Append a new point to the graph.
TList * fFunctions
Pointer to list of functions (fits and user).
Int_t fSize
!Real size of fX, fY and fZ
static void SavePrimitiveFunctions(std::ostream &out, const char *varname, TList *lst)
Save list of functions Also can be used by TGraph classes.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
static void SavePrimitiveDraw(std::ostream &out, const char *variable_name, Option_t *option=nullptr)
Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
static void SavePrimitiveConstructor(std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
Save object constructor in the output stream "out".
static TString SavePrimitiveVector(std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Int_t flag=0)
Save array in the output stream "out" as vector.
void ToLower()
Change string to lower-case.
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Double_t Sqrt(Double_t x)
Returns the square root of x.