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 ;
83 return 0 ==
taxis_ ?
true : !
taxis_->IsVariableBinSize() ;
153 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.
virtual double binLowerEdge(int index) const
Get the lower edge of the specified bin.
virtual double lowerEdge() const
Get the lower edge of the IAxis.
virtual bool isFixedBinning() const
Check if the IAxis has fixed binning, i.e.
static int toAidaIndex(int index, int bins)
virtual int coordToIndex(double coord) const
Convert a coordinate on the axis to a bin number.
virtual double binUpperEdge(int index) const
Get the upper edge of the specified bin.
virtual double upperEdge() const
Get the upper edge of the IAxis.
void initialize(TAxis *itaxi, bool)
virtual int bins() const
The number of bins (excluding underflow and overflow) on the IAxis.
static int toRootIndex(int index, int nbins)
virtual double binWidth(int index) const
Get the width of the specified bin.
This is a number of static methods for bootstrapping the Gaudi framework.
virtual ~Axis()
Destructor.
An IAxis represents a binned histogram axis.
int rIndex(int index) const
Convert a AIDA bin number on the axis to the ROOT bin number.