Extension to TGraph. More...
#include <XeCore.h>
Public Member Functions | |
| void | addGraph (TGraph &gr) |
| void | applyStyle () |
| Virtual method applying the XeStyle to the object. | |
| XeGraph * | divide (XeGraph *reference) |
| void | draw (string options="L", int flag=WITH_LEGEND) |
| Draw the graph. | |
| void | drawInsideS1S2 (string opt="") |
| void | drawS1S2 (string opt="") |
| void Draw a graph in S1S2 plane, according to current display mode | |
| double | getMaxX () |
| Pure virtual method returning X maximum value. | |
| double | getMaxY () |
| Pure virtual method returning Y maximum value. | |
| double | getMinX () |
| Pure virtual method returning X minimum value. | |
| double | getMinY () |
| Pure virtual method returning Y minimum value. | |
| double | getMinYNotZero () |
| Get the minimum value of all values>0. | |
| int | getN () |
| double | getSumX () |
| Get the sum of all X values. | |
| double | getSumY () |
| Get the sum of all Y values. | |
| TGraph * | getTGraph () |
| Get pointer to TGraph the pointer. | |
| double | getX (int i) |
| double * | getX () |
| double | getY (int i) |
| double * | getY () |
| bool | isCompatible (XeGraph *reference) |
| bool | printGraph (int n=0, bool stat=false, double xNorm=1., double yNorm=1.) |
| Print the graph. | |
| void | printHeader () |
| bool | printIt (int level=1) |
| method to print the object | |
| void | set (int i) |
| void | setPoint (int i, double x, double y) |
| void | setTheNames (string n, string leg="") |
| XeGraph (string name, TGraph &gr, string Xlab="", string Ylab="", XeStyle *st=NULL, string legend="") | |
| constructor from a TGraph | |
| XeGraph (string name, int n, string Xlab="", string Ylab="", XeStyle *st=NULL, string legend="") | |
| constructor with all details but the actual values | |
| XeGraph (string name, int n, double *x, double *y, string Xlab="", string Ylab="", XeStyle *st=NULL, string legend="", double norm=1.) | |
| constructor with all details | |
| XeGraph (string fn, string name, int dummy, string Xlab="", string Ylab="", XeStyle *st=NULL, string legend="") | |
| constructor reading directly from a text file | |
| XeGraph (string name, string xLab="", string yLab="") | |
| Constructor with minimum information. | |
Protected Attributes | |
| TGraph | graph |
Extension to TGraph.
| XeGraph::XeGraph | ( | string | name, | |
| string | xLab = "", |
|||
| string | yLab = "" | |||
| ) |
Constructor with minimum information.
| name | name of the graph | |
| xLab | X-Label | |
| yLab | Y-Label |
| XeGraph::XeGraph | ( | string | fn, | |
| string | name, | |||
| int | dummy, | |||
| string | Xlab = "", |
|||
| string | Ylab = "", |
|||
| XeStyle * | st = NULL, |
|||
| string | legend = "" | |||
| ) |
| XeGraph::XeGraph | ( | string | name, | |
| int | n, | |||
| double * | x, | |||
| double * | y, | |||
| string | Xlab = "", |
|||
| string | Ylab = "", |
|||
| XeStyle * | st = NULL, |
|||
| string | legend = "", |
|||
| double | norm = 1. | |||
| ) |
constructor with all details
| name | name of the object | |
| n | number of points in the graph | |
| x | pointer to array of X's | |
| y | pointer to array of Y's | |
| Xlab | X-Label | |
| Ylab | Y-Label | |
| st | XeStyle of the graph (useful in MultiGraphs) | |
| legend | Legend to be drawn (useful in MultiGraphs) | |
| norm | Normalisation of overall integral |
| XeGraph::XeGraph | ( | string | name, | |
| int | n, | |||
| string | Xlab = "", |
|||
| string | Ylab = "", |
|||
| XeStyle * | st = NULL, |
|||
| string | legend = "" | |||
| ) |
constructor with all details but the actual values
| name | name of the object | |
| n | number of points in the graph | |
| Xlab | X-Label | |
| Ylab | Y-Label | |
| st | XeStyle of the graph (useful in MultiGraphs) | |
| legend | Legend to be drawn (useful in MultiGraphs) |
| XeGraph::XeGraph | ( | string | name, | |
| TGraph & | gr, | |||
| string | Xlab = "", |
|||
| string | Ylab = "", |
|||
| XeStyle * | st = NULL, |
|||
| string | legend = "" | |||
| ) |
constructor from a TGraph
| name | name of the object | |
| gr | original TGraph | |
| Xlab | X-Label | |
| Ylab | Y-Label | |
| st | XeStyle of the graph (useful in MultiGraphs) | |
| legend | Legend to be drawn (useful in MultiGraphs) |
| void XeGraph::draw | ( | string | options = "L", |
|
| int | flag = WITH_LEGEND | |||
| ) | [virtual] |
Draw the graph.
| options | drawing options | |
| flag | = WITH_LEGEND or NO_LEGEND |
Implements XeStylized.
| void XeGraph::drawS1S2 | ( | string | opt = "" |
) |
void Draw a graph in S1S2 plane, according to current display mode
| opt | extra Drawing options |
| bool XeGraph::printGraph | ( | int | n = 0, |
|
| bool | stat = false, |
|||
| double | xNorm = 1., |
|||
| double | yNorm = 1. | |||
| ) |
Print the graph.
| n | number of points (0 means all) | |
| stat | also print min,max,sum of X and Y | |
| xNorm | all x values are mutilplied by xNorm | |
| yNorm | all y values are mutilplied by xNorm |
| bool XeGraph::printIt | ( | int | level = 1 |
) | [virtual] |
method to print the object
| level | print level |
Reimplemented from XeObject.
1.6.1