27 #ifndef ROOT_TVirtualHistPainter 36 #ifndef ROOT_TAttMarker 160 virtual void SetNameTitle(
const char *name,
const char *title);
164 virtual void SetTitle(
const char *title=
"");
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
virtual void Draw(Option_t *option="")
Specific drawing options can be used to paint a TGraph2D:
Double_t * fX
Real size of fX, fY and fZ.
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.
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 directory holding this 2D graph.
Double_t GetYmax() const
Returns the Y maximum.
static std::string format(double x, double y, int digits, int width)
TObject * fDelaunay
2D histogram of z values linearly interpolated on the triangles
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.
#define ClassDef(name, id)
virtual Double_t * GetEY() const
virtual void SetTitle(const char *title="")
Sets graph title.
TDirectory * fDirectory
Pointer to Delaunay interpolator object.
The TNamed class is the base class for all named ROOT classes.
Double_t GetXmin() const
Returns the X minimum.
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
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
A 2-Dim function with parameters.
virtual ~TGraph2D()
TGraph2D destructor.
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
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)
Pointer to histogram painter.
double f2(const double *x)
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.
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.
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.
tomato 2-D histogram with a double per channel (see TH1 documentation)}
TAxis * GetYaxis() const
Get y axis of the graph.