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