|
Gaudi Framework, version v21r9 |
| Home | Generated: 3 May 2010 |
#include <Axis.h>

Public Types | |
| typedef Axis | self |
Public Member Functions | |
| int | rIndex (int index) const |
| Convert a AIDA bin number on the axis to the ROOT bin number. | |
| int | aIndex (int index) const |
| Convert a ROOT bin number on the axis to the AIDA bin number. | |
| Axis () | |
| Axis (TAxis *itaxi) | |
| void | initialize (TAxis *itaxi, bool) |
| virtual | ~Axis () |
| Destructor. | |
| virtual bool | isFixedBinning () const |
| Check if the IAxis has fixed binning, i.e. | |
| virtual double | lowerEdge () const |
| Get the lower edge of the IAxis. | |
| virtual double | upperEdge () const |
| Get the upper edge of the IAxis. | |
| virtual int | bins () const |
| The number of bins (excluding underflow and overflow) on the IAxis. | |
| virtual double | binLowerEdge (int index) const |
| Get the lower edge of the specified bin. | |
| virtual double | binUpperEdge (int index) const |
| Get the upper edge of the specified bin. | |
| virtual double | binWidth (int index) const |
| Get the width of the specified bin. | |
| virtual int | coordToIndex (double coord) const |
| Convert a coordinate on the axis to a bin number. | |
| TAxis & | taxis () const |
Static Public Member Functions | |
| static int | toRootIndex (int index, int nbins) |
| static int | toAidaIndex (int index, int bins) |
Private Member Functions | |
| self & | me () const |
Private Attributes | |
| TAxis * | taxis_ |
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.
Definition at line 31 of file Axis.h.
| Gaudi::Axis::Axis | ( | TAxis * | itaxi | ) | [inline, explicit] |
| virtual Gaudi::Axis::~Axis | ( | ) | [inline, virtual] |
| static int Gaudi::Axis::toRootIndex | ( | int | index, | |
| int | nbins | |||
| ) | [inline, static] |
| static int Gaudi::Axis::toAidaIndex | ( | int | index, | |
| int | bins | |||
| ) | [inline, static] |
| int Gaudi::Axis::rIndex | ( | int | index | ) | const [inline] |
| int Gaudi::Axis::aIndex | ( | int | index | ) | const [inline] |
Convert a ROOT bin number on the axis to the AIDA bin number.
| index | The ROOT bin number: 1 to bins() for the in-range bins or bins()+1 for OVERFLOW or 0 for UNDERFLOW. |
Definition at line 63 of file Axis.h.
00063 { return toAidaIndex(index, bins()); }
| virtual bool Gaudi::Axis::isFixedBinning | ( | ) | const [inline, 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. Definition at line 81 of file Axis.h.
00082 { 00083 return 0 == taxis_ ? true : !taxis_->IsVariableBinSize() ; 00084 }
| virtual double Gaudi::Axis::lowerEdge | ( | ) | const [inline, virtual] |
| virtual double Gaudi::Axis::upperEdge | ( | ) | const [inline, virtual] |
| virtual int Gaudi::Axis::bins | ( | ) | const [inline, virtual] |
| virtual double Gaudi::Axis::binLowerEdge | ( | int | index | ) | const [inline, 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. Definition at line 113 of file Axis.h.
00113 { return taxis().GetBinLowEdge(rIndex(index));}
| virtual double Gaudi::Axis::binUpperEdge | ( | int | index | ) | const [inline, 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. Definition at line 120 of file Axis.h.
00120 { return taxis().GetBinUpEdge(rIndex(index));}
| virtual double Gaudi::Axis::binWidth | ( | int | index | ) | const [inline, virtual] |
| virtual int Gaudi::Axis::coordToIndex | ( | double | coord | ) | const [inline, 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. |
Definition at line 139 of file Axis.h.
| TAxis& Gaudi::Axis::taxis | ( | ) | const [inline] |
| self& Gaudi::Axis::me | ( | ) | const [inline, private] |