![]() |
SynAPSE
0.6.0
Synergistic Analysis of Phase Space Evolution
|
Defines functions that allow to plot a ROOT scatter graph with a color scale. More...
#include <ScatterGraph.hh>
Public Member Functions | |
| ScatterGraph () | |
| Default constructor - initialises to 0/NULL. More... | |
| ScatterGraph (const ScatterGraph &scat) | |
| Copy constructor - any pointers are deep copied. More... | |
| ScatterGraph & | operator= (const ScatterGraph &scat) |
| Equality operator - any pointers are deep copied. More... | |
| ScatterGraph (size_t n) | |
| Constructor with number of points to be hosted. More... | |
| ScatterGraph (size_t n, double *x, double *y, double *z) | |
| Constructor with data. More... | |
| ScatterGraph (const char *name, const char *title, size_t n, double *x, double *y, double *z) | |
| Full constructor with name, title and data. More... | |
| ScatterGraph (const TGraph2D &graph) | |
| Initializes the underlying TGraph2D from another TGraph2D. More... | |
| virtual | ~ScatterGraph () |
| Destructor - any member pointers are deleted. More... | |
| void | AddPoint (double x, double y, double w=1) |
| Sets one of the points to a certain value. More... | |
| void | SetPoint (size_t i, double x, double y, double w=1) |
| Sets one of the points to a certain value. More... | |
| void | SetPoints (size_t n, double *x, double *y, double *w) |
| Sets one of the points to a certain value. More... | |
| void | SetOrder (const Order &order) |
| Sets the order in which the points are drawn. More... | |
| void | SetMaxSize (const size_t &size) |
| Sets the maximum amount of points to be drawn. More... | |
| void | Draw () |
| Draws the scatter plot. More... | |
| void | Save () |
| Saves the scatter plot. More... | |
| void | SetName (const char *name) |
| Sets the name of the underlying TGraph2D. More... | |
| virtual const char * | GetName () const |
| Returns the name of the underlying TGraph2D. More... | |
| void | SetTitle (const char *title) |
| Sets the name of the underlying TGraph2D. More... | |
| virtual const char * | GetTitle () const |
| Returns the title of the underlying TGraph2D. More... | |
| size_t | GetN () const |
| Returns the number of entries in the underlying TGraph2D. More... | |
| TGraph2D * | GetGraph2D () |
| Returns the the underlying TGraph2D. More... | |
| TGaxis * | GetXaxis () |
| Returns a pointer to the x axis, in order to set its attributes. More... | |
| TGaxis * | GetYaxis () |
| Returns a pointer to the y axis, in order to set its attributes. More... | |
| TAxis * | GetZaxis () |
| Returns a pointer to the y axis, in order to set its attributes. More... | |
| void | SetMinimum (const double min) |
| Sets the minimum of the underlying TGraph2D. More... | |
| void | SetMaximum (const double max) |
| Sets the minimum of the underlying TGraph2D. More... | |
| void | SetRange (double minx, double miny, double maxx, double maxy) |
| Sets the limits of the x and y axes. More... | |
| void | SetMarkerStyle (int style) |
| Sets the marker style of the underlying TGraph2D. More... | |
| void | SetMarkerSize (double size) |
| Sets the marker size of the underlying TGraph2D. More... | |
| void | SetXaxisTitle (const char *title="") |
| Sets the title of the x axis. More... | |
| void | SetYaxisTitle (const char *title="") |
| Sets the title of the y axis. More... | |
| void | Write () |
| Save the histogram to the root file. More... | |
Private Attributes | |
| TGraph2D * | _graph |
| Underlying TGraph2D object. More... | |
| TGaxis * | _xaxis |
| Underlying TGaxis object defined for the x axis. More... | |
| TGaxis * | _yaxis |
| Underlying TGaxis object defined for the y axis. More... | |
Defines functions that allow to plot a ROOT scatter graph with a color scale.
It is a class derives from the TGraph2D class drawn with the PCOLZ drawing option, viewed from top, with updated TGaxis that fit the canvas in an elegant way.
| ScatterGraph::ScatterGraph | ( | ) |
Default constructor - initialises to 0/NULL.
| ScatterGraph::ScatterGraph | ( | const ScatterGraph & | scat | ) |
Copy constructor - any pointers are deep copied.
| ScatterGraph::ScatterGraph | ( | size_t | n | ) |
Constructor with number of points to be hosted.
| ScatterGraph::ScatterGraph | ( | size_t | n, |
| double * | x, | ||
| double * | y, | ||
| double * | z | ||
| ) |
Constructor with data.
| ScatterGraph::ScatterGraph | ( | const char * | name, |
| const char * | title, | ||
| size_t | n, | ||
| double * | x, | ||
| double * | y, | ||
| double * | z | ||
| ) |
Full constructor with name, title and data.
| ScatterGraph::ScatterGraph | ( | const TGraph2D & | graph | ) |
Initializes the underlying TGraph2D from another TGraph2D.
|
virtual |
Destructor - any member pointers are deleted.
| void ScatterGraph::AddPoint | ( | double | x, |
| double | y, | ||
| double | w = 1 |
||
| ) |
Sets one of the points to a certain value.
| void ScatterGraph::Draw | ( | ) |
Draws the scatter plot.
|
inline |
Returns the the underlying TGraph2D.
|
inline |
Returns the number of entries in the underlying TGraph2D.
|
inlinevirtual |
Returns the name of the underlying TGraph2D.
|
inlinevirtual |
Returns the title of the underlying TGraph2D.
|
inline |
Returns a pointer to the x axis, in order to set its attributes.
|
inline |
Returns a pointer to the y axis, in order to set its attributes.
|
inline |
Returns a pointer to the y axis, in order to set its attributes.
| ScatterGraph & ScatterGraph::operator= | ( | const ScatterGraph & | scat | ) |
Equality operator - any pointers are deep copied.
| void ScatterGraph::Save | ( | ) |
Saves the scatter plot.
|
inline |
Sets the marker size of the underlying TGraph2D.
|
inline |
Sets the marker style of the underlying TGraph2D.
|
inline |
Sets the minimum of the underlying TGraph2D.
| void ScatterGraph::SetMaxSize | ( | const size_t & | size | ) |
Sets the maximum amount of points to be drawn.
|
inline |
Sets the minimum of the underlying TGraph2D.
|
inline |
Sets the name of the underlying TGraph2D.
| void ScatterGraph::SetOrder | ( | const Order & | order | ) |
Sets the order in which the points are drawn.
|
inline |
Sets one of the points to a certain value.
| void ScatterGraph::SetPoints | ( | size_t | n, |
| double * | x, | ||
| double * | y, | ||
| double * | w | ||
| ) |
Sets one of the points to a certain value.
| void ScatterGraph::SetRange | ( | double | minx, |
| double | miny, | ||
| double | maxx, | ||
| double | maxy | ||
| ) |
Sets the limits of the x and y axes.
|
inline |
Sets the name of the underlying TGraph2D.
|
inline |
Sets the title of the x axis.
|
inline |
Sets the title of the y axis.
|
inline |
Save the histogram to the root file.
|
private |
Underlying TGraph2D object.
|
private |
Underlying TGaxis object defined for the x axis.
|
private |
Underlying TGaxis object defined for the y axis.
1.8.6