RAIDA  1.9.0
IAxis.h
1 // -*- C++ -*-
2 // AID-GENERATED
3 // =========================================================================
4 // This class was generated by AID - Abstract Interface Definition
5 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
6 // =========================================================================
7 #ifndef AIDA_IAXIS_H
8 #define AIDA_IAXIS_H 1
9 
10 // This file is part of the AIDA library
11 // Copyright (C) 2002 by the AIDA team. All rights reserved.
12 // This library is free software and under the terms of the
13 // GNU Library General Public License described in the LGPL.txt
14 
15 namespace AIDA {
16 
26 class IAxis {
27 
28 public:
30  virtual ~IAxis() { /* nop */; }
31 
37  virtual bool isFixedBinning() const = 0;
38 
44  virtual double lowerEdge() const = 0;
45 
51  virtual double upperEdge() const = 0;
52 
58  virtual int bins() const = 0;
59 
66  virtual double binLowerEdge(int index) const = 0;
67 
74  virtual double binUpperEdge(int index) const = 0;
75 
82  virtual double binWidth(int index) const = 0;
83 
92  virtual int coordToIndex(double coord) const = 0;
93 
99  enum { UNDERFLOW_BIN = -2, OVERFLOW_BIN = -1 };
100 }; // class
101 } // namespace AIDA
102 #endif /* ifndef AIDA_IAXIS_H */
virtual double binUpperEdge(int index) const =0
Get the upper edge of the specified bin.
virtual bool isFixedBinning() const =0
Check if the IAxis has fixed binning, i.e.
virtual double upperEdge() const =0
Get the upper edge of the IAxis.
virtual int bins() const =0
The number of bins (excluding underflow and overflow) on the IAxis.
virtual double binWidth(int index) const =0
Get the width of the specified bin.
An IAxis represents a binned histogram axis.
Definition: IAxis.h:26
virtual double lowerEdge() const =0
Get the lower edge of the IAxis.
virtual double binLowerEdge(int index) const =0
Get the lower edge of the specified bin.
virtual ~IAxis()
Destructor.
Definition: IAxis.h:30
virtual int coordToIndex(double coord) const =0
Convert a coordinate on the axis to a bin number.