14#include <AIDA/IAxis.h>
28 class Axis :
public AIDA::IAxis {
31 if ( index == AIDA::IAxis::OVERFLOW_BIN )
return nbins + 1;
32 if ( index == AIDA::IAxis::UNDERFLOW_BIN )
return 0;
37 if ( index ==
bins + 1 )
return AIDA::IAxis::OVERFLOW_BIN;
38 if ( index == 0 )
return AIDA::IAxis::UNDERFLOW_BIN;
90 int bins()
const override {
return taxis().GetNbins(); }
double upperEdge() const override
Get the upper edge of the IAxis.
double binLowerEdge(int index) const override
Get the lower edge of the specified bin.
static int toRootIndex(int index, int nbins)
int bins() const override
The number of bins (excluding underflow and overflow) on the IAxis.
int rIndex(int index) const
Convert a AIDA bin number on the axis to the ROOT bin number.
static int toAidaIndex(int index, int bins)
bool isFixedBinning() const override
Check if the IAxis has fixed binning, i.e.
double lowerEdge() const override
Get the lower edge of the IAxis.
int coordToIndex(double coord) const override
Convert a coordinate on the axis to a bin number.
double binWidth(int index) const override
Get the width of the specified bin.
double binUpperEdge(int index) const override
Get the upper edge of the specified bin.
void initialize(TAxis *itaxi, bool)
int aIndex(int index) const
Convert a ROOT bin number on the axis to the AIDA bin number.
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...