7 #ifndef GAUDISVC__IAXIS_H
8 #define GAUDISVC__IAXIS_H 1
17 #include "AIDA/IAxis.h"
31 class Axis :
public AIDA::IAxis
38 if (index==AIDA::IAxis::OVERFLOW_BIN)
return nbins+1;
39 if (index==AIDA::IAxis::UNDERFLOW_BIN)
return 0;
44 if ( index == bins + 1 )
return AIDA::IAxis::OVERFLOW_BIN ;
45 if ( index == 0 )
return AIDA::IAxis::UNDERFLOW_BIN ;
74 ~Axis()
override =
default;
83 return 0 ==
taxis_ ?
true : !
taxis_->IsVariableBinSize() ;
151 self &
me()
const {
return const_cast<self&
>(*this);}
int aIndex(int index) const
Convert a ROOT bin number on the axis to the AIDA bin number.
int coordToIndex(double coord) const override
Convert a coordinate on the axis to a bin number.
double binLowerEdge(int index) const override
Get the lower edge of the specified bin.
static int toAidaIndex(int index, int bins)
bool isFixedBinning() const override
Check if the IAxis has fixed binning, i.e.
~Axis() override=default
Destructor.
double binUpperEdge(int index) const override
Get the upper edge of the specified bin.
double lowerEdge() const override
Get the lower edge of the IAxis.
double binWidth(int index) const override
Get the width of the specified bin.
int bins() const override
The number of bins (excluding underflow and overflow) on the IAxis.
void initialize(TAxis *itaxi, bool)
static int toRootIndex(int index, int nbins)
Helper functions to set/get the application return code.
An IAxis represents a binned histogram axis.
double upperEdge() const override
Get the upper edge of the IAxis.
int rIndex(int index) const
Convert a AIDA bin number on the axis to the ROOT bin number.