CepGen 1.2.5
Central exclusive processes event generator
|
A one-dimensional graph object. More...
#include <CepGen/Utils/Graph.h>
Public Types | |
typedef std::map< coord_t, Value > | axis_t |
Metadata for an axis (coordinates and bins value) | |
typedef std::map< coord_t, axis_t > | dualaxis_t |
Metadata for a two-dimensional axis definition (coordinates and bins values) | |
Public Member Functions | |
Graph1D (const std::string &name="", const std::string &title="") | |
Graph1D & | addPoint (double x, double y) |
Add one value to the graph. | |
Graph1D & | addPoint (double x, double y, double ex, double ey) |
Add one value and its uncertainties to the graph. | |
const axis_t & | points () const |
Retrieve all values in the graph. | |
double | minimum () const |
Minimum value registered in this graph. | |
double | maximum () const |
Maximum value registered in this graph. | |
double | chi2 (const Graph1D &) const |
Compute the \(\chi^{2}\) between this graph and another. | |
std::set< double > | xCoords () const |
List of horizontal axis coordinates. | |
const Value | valueAt (double) const |
Retrieve the value of the graph at a given coordinate. | |
bool | isGraph1D () const override |
Is this drawable a one-dimensional graph? | |
const std::string & | name () const |
Drawable name. | |
void | setName (const std::string &name) |
Set the drawable name. | |
const std::string & | title () const |
Drawable name. | |
void | setTitle (const std::string &title) |
Set the drawable title. | |
AxisInfo & | xAxis () |
const AxisInfo & | xAxis () const |
AxisInfo & | yAxis () |
const AxisInfo & | yAxis () const |
AxisInfo & | zAxis () |
const AxisInfo & | zAxis () const |
virtual bool | isHist1D () const |
Is this drawable a one-dimensional histogram? | |
virtual bool | isHist2D () const |
Is this drawable a two-dimensional histogram? | |
virtual bool | isGraph2D () const |
Is this drawable a two-dimensional graph? | |
Protected Attributes | |
std::string | name_ |
Computer-readable name. | |
std::string | title_ |
Human-readable title. | |
AxisInfo | xaxis_ |
x-axis metadata | |
AxisInfo | yaxis_ |
y-axis metadata | |
AxisInfo | zaxis_ |
z-axis metadata | |
Definition at line 95 of file Drawable.h.
|
inherited |
Definition at line 103 of file Drawable.h.
|
explicit |
Graph1D & addPoint | ( | double | x, |
double | y, | ||
double | ex, | ||
double | ey | ||
) |
|
overridevirtual |
|
virtualinherited |
Reimplemented in Graph2D.
Definition at line 108 of file Drawable.h.
|
virtualinherited |
Reimplemented in Hist1D.
Definition at line 105 of file Drawable.h.
|
virtualinherited |
Reimplemented in Hist2D.
Definition at line 106 of file Drawable.h.
|
inherited |
Definition at line 37 of file Drawable.h.
|
inherited |
Definition at line 39 of file Drawable.h.
|
inherited |
Definition at line 44 of file Drawable.h.
|
inherited |
Definition at line 42 of file Drawable.h.
|
inherited |
Definition at line 79 of file Drawable.h.
|
inherited |
Definition at line 80 of file Drawable.h.
|
inherited |
Definition at line 81 of file Drawable.h.
|
inherited |
Definition at line 82 of file Drawable.h.
|
inherited |
Definition at line 83 of file Drawable.h.
|
inherited |
Definition at line 84 of file Drawable.h.
|
protectedinherited |
Definition at line 111 of file Drawable.h.
|
protectedinherited |
Definition at line 112 of file Drawable.h.
|
protectedinherited |
Definition at line 113 of file Drawable.h.
|
protectedinherited |
Definition at line 114 of file Drawable.h.
|
protectedinherited |
Definition at line 115 of file Drawable.h.