85 TGraph2D(
const char *filename,
const char *format=
"%lg %lg %lg",
Option_t *option=
"");
157 virtual void SetTitle(
const char *title=
"");
#define ClassDef(name, id)
Fill Area Attributes class.
Class to manage histogram axis.
Using a TBrowser one can browse all ROOT objects.
Describe directory structure in memory.
A 2-Dim function with parameters.
Provides an indirection to the TFitResult class and with a semantics identical to a TFitResult pointe...
Graphics object made of three arrays X, Y and Z with the same number of points each.
Int_t fMaxIter
Maximum number of iterations to find Delaunay triangles.
Double_t GetMaximum() const
virtual Double_t GetYminE() const
TGraph2D()
Graph2D default constructor.
void Build(Int_t n)
Creates the 2D graph basic data structure.
Double_t Interpolate(Double_t x, Double_t y)
Finds the z value at the position (x,y) thanks to the Delaunay interpolation.
Int_t fNpoints
Number of points in the data set.
virtual Double_t GetZminE() const
virtual void Print(Option_t *chopt="") const
Print 2D graph values.
virtual Double_t GetErrorZ(Int_t bin) const
This function is called by Graph2DFitChisquare.
Double_t GetMinimum() const
virtual void FitPanel()
Display a GUI panel with all graph fit options.
void SetMarginBinsContent(Double_t z=0.)
Sets the histogram bin height for points lying outside the TGraphDelaunay convex hull ie: the bins in...
Int_t fNpx
Number of bins along X in fHistogram.
virtual Double_t GetYmaxE() const
Double_t GetYmin() const
Returns the Y minimum.
Double_t GetZmin() const
Returns the Z minimum.
virtual Double_t GetZmaxE() const
virtual Double_t GetErrorX(Int_t bin) const
This function is called by Graph2DFitChisquare.
Double_t fMargin
Extra space (in %) around interpolated area for fHistogram.
Double_t fMinimum
Minimum value for plotting along z.
Double_t GetXmin() const
Returns the X minimum.
Int_t DistancetoPrimitive(Int_t px, Int_t py)
Computes distance from point px,py to a graph.
virtual void Browse(TBrowser *)
Browse.
virtual Double_t * GetEZ() const
TH2D * GetHistogram(Option_t *option="")
By default returns a pointer to the Delaunay histogram.
TVirtualHistPainter * fPainter
!Pointer to histogram painter
virtual TFitResultPtr Fit(const char *formula, Option_t *option="", Option_t *goption="")
Fits this graph with function with name fname Predefined functions such as gaus, expo and poln are au...
virtual TObject * FindObject(const char *name) const
search object named name in the list of functions
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Saves primitive as a C++ statement(s) on output stream out.
Double_t GetMargin() const
Double_t GetZmax() const
Returns the Z maximum.
Int_t RemovePoint(Int_t ipoint)
Deletes point number ipoint.
Double_t fMaximum
Maximum value for plotting along z.
TAxis * GetZaxis() const
Get z axis of the graph.
void SetMargin(Double_t m=0.1)
Sets the extra space (in %) around interpolated area for the 2D histogram.
void SetNpy(Int_t npx=40)
Sets the number of bins along Y used to draw the function.
Double_t fZout
fHistogram bin height for points lying outside the interpolated area
TH2D * fHistogram
!2D histogram of z values linearly interpolated on the triangles
virtual Double_t GetXminE() const
TList * GetContourList(Double_t contour)
Returns the X and Y graphs building a contour.
Double_t GetXmax() const
Returns the X maximum.
virtual Int_t GetPoint(Int_t i, Double_t &x, Double_t &y, Double_t &z) const
Get x, y and z values for point number i.
virtual void SetTitle(const char *title="")
Sets the 2D graph title.
TAxis * GetYaxis() const
Get y axis of the graph.
virtual ~TGraph2D()
TGraph2D destructor.
virtual Double_t GetErrorY(Int_t bin) const
This function is called by Graph2DFitChisquare.
virtual Double_t * GetEY() const
TList * GetListOfFunctions() const
TObject * fDelaunay
! Pointer to Delaunay interpolator object
TH1 * Project(Option_t *option="x") const
Projects a 2-d graph into 1 or 2-d histograms depending on the option parameter option may contain a ...
virtual void SetHistogram(TH2 *h)
Sets the histogram to be filled.
virtual Double_t GetXmaxE() const
virtual void Set(Int_t n)
Set number of points in the 2D graph.
void SetMinimum(Double_t minimum=-1111)
Set minimum.
TGraph2D & operator=(const TGraph2D &)
Graph2D operator "=".
Double_t * fY
[fNpoints] Data set to be plotted
void SetMaximum(Double_t maximum=-1111)
Set maximum.
virtual void SetNameTitle(const char *name, const char *title)
Change the name and title of this 2D graph.
Double_t GetYmax() const
Returns the Y maximum.
virtual void SetDirectory(TDirectory *dir)
By default when an 2D graph is created, it is added to the list of 2D graph objects in the current di...
TDirectory * fDirectory
!Pointer to directory holding this 2D graph
virtual Double_t * GetEX() const
virtual void DirectoryAutoAdd(TDirectory *)
Perform the automatic addition of the graph to the given directory.
void CreateInterpolator(Bool_t oldInterp)
Add a TGraphDelaunay in the list of the fHistogram's functions.
TDirectory * GetDirectory() const
Int_t fNpy
Number of bins along Y in fHistogram.
virtual void SetName(const char *name)
Changes the name of this 2D graph.
TList * fFunctions
Pointer to list of functions (fits and user)
virtual void SetPoint(Int_t point, Double_t x, Double_t y, Double_t z)
Sets point number n.
void Paint(Option_t *option="")
Paints this 2D graph with its current attributes.
virtual void Draw(Option_t *option="P0")
Specific drawing options can be used to paint a TGraph2D:
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Executes action corresponding to one event.
Int_t fSize
!Real size of fX, fY and fZ
virtual void Clear(Option_t *option="")
Free all memory allocated by this object.
void SetMaxIter(Int_t n=100000)
TAxis * GetXaxis() const
Get x axis of the graph.
void SetNpx(Int_t npx=40)
Sets the number of bins along X used to draw the function.
2-D histogram with a double per channel (see TH1 documentation)}
Service class for 2-Dim histogram classes.
The TNamed class is the base class for all named ROOT classes.
Mother of all ROOT objects.
Abstract interface to a histogram painter.