|
ThePEG
1.8.0
|
An Axis represents a binned histogram axis. More...
#include <Axis.h>

Public Member Functions | |
| Axis (int n, double lo, double up) | |
| Standard constructor. | |
| Axis (const Axis &a) | |
| Copy constructor. | |
| virtual | ~Axis () |
| Destructor. | |
| bool | isFixedBinning () const |
| Check if the IAxis has fixed binning, i.e. More... | |
| double | lowerEdge () const |
| Get the lower edge of the IAxis. More... | |
| double | upperEdge () const |
| Get the upper edge of the IAxis. More... | |
| int | bins () const |
| The number of bins (excluding underflow and overflow) on the IAxis. More... | |
| double | binLowerEdge (int index) const |
| Get the lower edge of the specified bin. More... | |
| double | binUpperEdge (int index) const |
| Get the upper edge of the specified bin. More... | |
| double | binWidth (int) const |
| Get the width of the specified bin. More... | |
| int | coordToIndex (double coord) const |
| Convert a coordinate on the axis to a bin number. More... | |
| double | binMidPoint (int index) const |
| Return the midpoint of the specified bin. More... | |
Private Attributes | |
| double | lower |
| The lower edge. More... | |
| double | upper |
| The upper edge. More... | |
| int | nbins |
| The number of bins. More... | |
An Axis represents a binned histogram axis.
A 1D Histogram would have one Axis representing the X axis, while a 2D Histogram would have two axes representing the X and Y Axis.
|
inline |
|
inline |
|
inline |
The number of bins (excluding underflow and overflow) on the IAxis.
Definition at line 76 of file Axis.h.
Referenced by LWH::HistogramFactory::sliceX(), and LWH::HistogramFactory::sliceY().
|
inline |
|
inline |
|
inline |
Convert a coordinate on the axis to a bin number.
If the coordinate is less than the lowerEdge UNDERFLOW is returned; if the coordinate is greater or equal to the upperEdge OVERFLOW is returned.
| coord | The coordinate to be converted. |
|
inline |
|
inline |
Get the lower edge of the IAxis.
Definition at line 62 of file Axis.h.
Referenced by LWH::HistogramFactory::sliceX(), and LWH::HistogramFactory::sliceY().
|
inline |
Get the upper edge of the IAxis.
Definition at line 69 of file Axis.h.
Referenced by LWH::HistogramFactory::sliceX(), and LWH::HistogramFactory::sliceY().
1.8.13