7 #ifndef GAUDICOMMONSVC_AXIS_H 8 #define GAUDICOMMONSVC_AXIS_H 1 15 #include "AIDA/IAxis.h" 30 class Axis :
public AIDA::IAxis
35 if ( index == AIDA::IAxis::OVERFLOW_BIN )
return nbins + 1;
36 if ( index == AIDA::IAxis::UNDERFLOW_BIN )
return 0;
42 if ( index == bins + 1 )
return AIDA::IAxis::OVERFLOW_BIN;
43 if ( index == 0 )
return AIDA::IAxis::UNDERFLOW_BIN;
95 int bins()
const override {
return taxis().GetNbins(); }
147 #endif // GAUDICOMMONSVC_AXIS_H int aIndex(int index) const
Convert a ROOT bin number on the axis to the AIDA bin number.
static int toAidaIndex(int index, int bins)
bool isFixedBinning() const override
Check if the IAxis has fixed binning, i.e.
int coordToIndex(double coord) const override
Convert a coordinate on the axis to a bin number.
int bins() const override
The number of bins (excluding underflow and overflow) on the IAxis.
double binLowerEdge(int index) const override
Get the lower edge of the specified bin.
double binUpperEdge(int index) const override
Get the upper edge of the specified bin.
void initialize(TAxis *itaxi, bool)
double lowerEdge() const override
Get the lower edge of the IAxis.
static int toRootIndex(int index, int nbins)
double upperEdge() const override
Get the upper edge of the IAxis.
Helper functions to set/get the application return code.
An IAxis represents a binned histogram axis.
double binWidth(int index) const override
Get the width of the specified bin.
int rIndex(int index) const
Convert a AIDA bin number on the axis to the ROOT bin number.