ROOT  6.06/09
Reference Guide
Public Member Functions | Private Attributes | List of all members
ROOT::TAxisView Class Reference

Common view on a TAxis, no matter what its kind.

Definition at line 699 of file TAxis.h.

Public Member Functions

 TAxisView (const TAxisEquidistant &equi)
 Construct a view on a TAxisEquidistant, TAxisGrow or TAxisLabel. More...
 
 TAxisView (const TAxisIrregular &irr)
 Construct a view on a TAxisIrregular. More...
 
int FindBin (double x) const noexcept
 Find the bin containing coordinate x. Forwards to the underlying axis. More...
 
int GetNBins () const noexcept
 Get the number of bins. Forwards to the underlying axis. More...
 
double GetBinCenter (int i) const noexcept
 Get the bin center of bin index i. Forwards to the underlying axis. More...
 
double GetBinFrom (int i) const noexcept
 Get the minimal coordinate of bin index i. Forwards to the underlying axis. More...
 
double GetBinTo (int i) const noexcept
 Get the maximal coordinate of bin index i. Forwards to the underlying axis. More...
 

Private Attributes

const TAxisEquidistantfEqui = nullptr
 View on a TAxisEquidistant, TAxisGrow or TAxisLabel. More...
 
const TAxisIrregularfIrr = nullptr
 View on a TAxisIrregular. More...
 

#include <ROOT/TAxis.h>

+ Collaboration diagram for ROOT::TAxisView:

Constructor & Destructor Documentation

ROOT::TAxisView::TAxisView ( const TAxisEquidistant equi)
inline

Construct a view on a TAxisEquidistant, TAxisGrow or TAxisLabel.

Definition at line 707 of file TAxis.h.

ROOT::TAxisView::TAxisView ( const TAxisIrregular irr)
inline

Construct a view on a TAxisIrregular.

Definition at line 710 of file TAxis.h.

Member Function Documentation

int ROOT::TAxisView::FindBin ( double  x) const
inlinenoexcept

Find the bin containing coordinate x. Forwards to the underlying axis.

Definition at line 714 of file TAxis.h.

Referenced by ROOT::THistView< DIMENSIONS, PRECISION >::SetRange().

double ROOT::TAxisView::GetBinCenter ( int  i) const
inlinenoexcept

Get the bin center of bin index i. Forwards to the underlying axis.

Definition at line 728 of file TAxis.h.

double ROOT::TAxisView::GetBinFrom ( int  i) const
inlinenoexcept

Get the minimal coordinate of bin index i. Forwards to the underlying axis.

Definition at line 735 of file TAxis.h.

double ROOT::TAxisView::GetBinTo ( int  i) const
inlinenoexcept

Get the maximal coordinate of bin index i. Forwards to the underlying axis.

Definition at line 742 of file TAxis.h.

int ROOT::TAxisView::GetNBins ( ) const
inlinenoexcept

Get the number of bins. Forwards to the underlying axis.

Definition at line 721 of file TAxis.h.

Member Data Documentation

const TAxisEquidistant* ROOT::TAxisView::fEqui = nullptr
private

View on a TAxisEquidistant, TAxisGrow or TAxisLabel.

Definition at line 701 of file TAxis.h.

const TAxisIrregular* ROOT::TAxisView::fIrr = nullptr
private

View on a TAxisIrregular.

Definition at line 703 of file TAxis.h.


The documentation for this class was generated from the following file: