#include <Axis.h>
Inheritance diagram for Axis:

Public Methods | |
| Axis ( I_Histo* h, int axisNumber, int nBins, double low, double high ) | |
| Constructors. More... | |
| Axis ( I_Histo* h, int axisNumber, const std::vector<double>& edges ) | |
| virtual | ~Axis () |
| virtual const std::vector< double>& | edges () const |
| ========================================================================== Axis edges ========================================================================== All axis edge at once. More... | |
| virtual double | lowerEdge () const |
| Lower axis edge. More... | |
| virtual double | upperEdge () const |
| Upper axis edge. More... | |
| virtual int | bins () const |
| ========================================================================== Bins ========================================================================== -------------------------------------------------------------------------- Number of bins Number of in-range bins in the axis. More... | |
| virtual double | binLowerEdge ( int index ) const |
| -------------------------------------------------------------------------- Bin edges Lower edge of the in-range bin identified by index. More... | |
| virtual double | binUpperEdge ( int index ) const |
| Upper edge of the in-range bin identified by index. More... | |
| virtual double | binWidth ( int index ) const |
| -------------------------------------------------------------------------- Bin widths Width of the in-range bin identified by index. More... | |
| virtual double | binCentre ( int index ) const |
| -------------------------------------------------------------------------- Bin centre Centre of the bin located by index. More... | |
| virtual int | coordToIndex ( double coord ) const |
| ========================================================================== Conversions between coordinates and bin indices ========================================================================== Equivalent to coordToIndex( coord ); for 1D histogram or coordToIndexX( coordX ); or coordToIndexY( coordY ); for 2D histogram. More... | |
| virtual int | checkIndex ( int index ) const |
| ========================================================================== Checks validity of the index ========================================================================== Checks validity of the index, assuming bin indices from "0" to "number of bins - 1". More... | |
Protected Methods | |
| void | setEdgesAndBins ( const std::vector<double>& value ) |
| ========================================================================== Set accessors to the internal data members ========================================================================== Set edges. More... | |
| void | setEdgesAndBins ( int nBins, double low, double high ) |
| Set edges. More... | |
Protected Attributes | |
| int | m_bins |
| Number of bins. More... | |
| std::vector<double> | m_edges |
| Edges. More... | |
| I_Histo* | m_histogram |
| Histogram this axis is associated with. More... | |
| int | m_axisNumber |
| Axis number (0 means X axis, 1 means Y axis). More... | |
|
|
Constructors.
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------- Bin centre Centre of the bin located by index.
Definition at line 123 of file Axis.h. Referenced by GenHisto2D::write(). |
|
|
-------------------------------------------------------------------------- Bin edges Lower edge of the in-range bin identified by index.
|
|
|
Upper edge of the in-range bin identified by index.
Definition at line 97 of file Axis.h. Referenced by coordToIndex(). |
|
|
-------------------------------------------------------------------------- Bin widths Width of the in-range bin identified by index.
|
|
|
========================================================================== Bins ========================================================================== -------------------------------------------------------------------------- Number of bins Number of in-range bins in the axis.
Definition at line 75 of file Axis.h. Referenced by coordToIndex(). |
|
|
========================================================================== Checks validity of the index ========================================================================== Checks validity of the index, assuming bin indices from "0" to "number of bins - 1".
Definition at line 187 of file Axis.h. Referenced by binCentre(), binLowerEdge(), binUpperEdge(), binWidth(), GenHisto1D::checkIndex(), GenHisto2D::checkIndexX(), and GenHisto2D::checkIndexY(). |
|
|
========================================================================== Conversions between coordinates and bin indices ========================================================================== Equivalent to coordToIndex( coord ); for 1D histogram or coordToIndexX( coordX ); or coordToIndexY( coordY ); for 2D histogram.
|
|
|
========================================================================== Axis edges ========================================================================== All axis edge at once.
|
|
|
Lower axis edge.
Definition at line 58 of file Axis.h. Referenced by coordToIndex(). |
|
|
Set edges.
|
|
|
========================================================================== Set accessors to the internal data members ========================================================================== Set edges.
Definition at line 206 of file Axis.h. Referenced by Axis(). |
|
|
Upper axis edge.
Definition at line 62 of file Axis.h. Referenced by coordToIndex(). |
|
|
Axis number (0 means X axis, 1 means Y axis).
|
|
|
Number of bins.
|
|
|
Edges.
|
|
|
Histogram this axis is associated with.
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000