RAIDA
1.9.0
|
An IAxis represents a binned histogram axis. More...
#include <IAxisROOT.h>
Public Types | |
enum | { UNDERFLOW_BIN = -2, OVERFLOW_BIN = -1 } |
Constants specifying the underflow and the overflow bin. More... | |
Public Types inherited from AIDA::IAxis | |
enum | { UNDERFLOW_BIN = -2, OVERFLOW_BIN = -1 } |
Constants specifying the underflow and the overflow bin. More... | |
Public Member Functions | |
virtual | ~IAxisROOT () |
Destructor. | |
IAxisROOT (TAxis *axis) | |
Constructor: you need to have a pointer to a ROOT TAxis object to construct! | |
void | setFixedBinning () |
void | setVariableBinning () |
virtual bool | isFixedBinning () const |
Check if the IAxis has fixed binning, i.e. More... | |
virtual double | lowerEdge () const |
Get the lower edge of the IAxis. More... | |
virtual double | upperEdge () const |
Get the upper edge of the IAxis. More... | |
virtual int | bins () const |
The number of bins (excluding underflow and overflow) on the IAxis. More... | |
virtual double | binLowerEdge (int index) const |
Get the lower edge of the specified bin. More... | |
virtual double | binUpperEdge (int index) const |
Get the upper edge of the specified bin. More... | |
virtual double | binWidth (int index) const |
Get the width of the specified bin. More... | |
virtual int | coordToIndex (double coord) const |
Convert a coordinate on the axis to a bin number. More... | |
Public Member Functions inherited from AIDA::IAxis | |
virtual | ~IAxis () |
Destructor. | |
Protected Attributes | |
TAxis * | _axis |
bool | _fixedBinning |
An IAxis 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.
anonymous enum |
Constants specifying the underflow and the overflow bin.
They can be passed to any method accepting a bin number.
|
virtual |
Get the lower edge of the specified bin.
index | The bin number: 0 to bins()-1 for the in-range bins or OVERFLOW or UNDERFLOW. |
Double.NEGATIVE_INFINITY
. Implements AIDA::IAxis.
References bins().
|
virtual |
The number of bins (excluding underflow and overflow) on the IAxis.
Implements AIDA::IAxis.
Referenced by binLowerEdge(), and binUpperEdge().
|
virtual |
Get the upper edge of the specified bin.
index | The bin number: 0 to bins()-1 for the in-range bins or OVERFLOW or UNDERFLOW. |
Double.POSITIVE_INFINITY
. Implements AIDA::IAxis.
References bins().
|
virtual |
Get the width of the specified bin.
index | The bin number: 0 to bins()-1) for the in-range bins or OVERFLOW or UNDERFLOW. |
Implements AIDA::IAxis.
|
virtual |
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. |
Implements AIDA::IAxis.
|
virtual |
Check if the IAxis has fixed binning, i.e.
if all the bins have the same width.
true
if the binning is fixed, false
otherwise. Implements AIDA::IAxis.
|
virtual |
|
virtual |