ROOT
6.06/09
Reference Guide
|
Objects used to configure the different axis types.
It can store the properties of all possible axis types, together with the type of the axis.
TODO: that's what a variant will be invented for!
Classes | |
struct | Grow_t |
Tag type signalling that an axis should be able to grow; used for calling the appropriate constructor. More... | |
Public Types | |
enum | EKind { kEquidistant, kGrow, kIrregular, kLabels, kNumKinds } |
Public Types inherited from ROOT::TAxisBase | |
enum | EFindStatus { EFindStatus::kCanGrow, EFindStatus::kValid } |
Status of FindBin(x) More... | |
Public Member Functions | |
TAxisConfig (int nbins, double from, double to) | |
Represents a TAxisEquidistant with nbins from from to to . More... | |
TAxisConfig (Grow_t, int nbins, double from, double to) | |
Represents a TAxisGrow with nbins from from to to . More... | |
TAxisConfig (const std::vector< double > &binborders) | |
Represents a TAxisIrregular with binborders . More... | |
TAxisConfig (std::vector< double > &&binborders) noexcept | |
Represents a TAxisIrregular with binborders . More... | |
TAxisConfig (const std::vector< std::string_view > &labels) | |
Represents a TAxisLabels with labels . More... | |
TAxisConfig (std::vector< std::string > &&labels) | |
Represents a TAxisLabels with labels . More... | |
EKind | GetKind () const noexcept |
Get the axis kind represented by this TAxisConfig . More... | |
const std::vector< double > & | GetBinBorders () const noexcept |
Get the bin borders; non-empty if the GetKind() == kIrregular. More... | |
const std::vector< std::string > & | GetBinLabels () const noexcept |
Get the bin labels; non-empty if the GetKind() == kLabels. More... | |
Public Member Functions inherited from ROOT::TAxisBase | |
constexpr | TAxisBase (int nbins) noexcept |
Construct a TAxisBase. More... | |
constexpr int | GetNBinsNoOver () const noexcept |
Get the number of bins, excluding under- and overflow. More... | |
constexpr int | GetNBins () const noexcept |
Get the number of bins, including under- and overflow. More... | |
constexpr int | GetUnderflowBin () const noexcept |
Get the bin index for the underflow bin. More... | |
constexpr int | GetOverflowBin () const noexcept |
Get the bin index for the underflow bin. More... | |
constexpr bool | IsUnderflowBin (int bin) const noexcept |
Whether the bin index is referencing a bin lower than the axis range. More... | |
constexpr bool | IsOverflowBin (int bin) const noexcept |
Whether the bin index is referencing a bin higher than the axis range. More... | |
const_iterator | begin () const noexcept |
Get a const_iterator pointing to the first non-underflow bin. More... | |
const_iterator | begin_with_underflow () const noexcept |
Get a const_iterator pointing the underflow bin. More... | |
const_iterator | end () const noexcept |
Get a const_iterator pointing right beyond the last non-overflow bin (i.e. More... | |
const_iterator | end_with_overflow () const noexcept |
Get a const_iterator pointing right beyond the overflow bin. More... | |
Static Public Attributes | |
static constexpr const Grow_t | Grow |
Tag signalling that an axis should be able to grow; used for calling the appropriate constructor like so: TAxisConfig ac(TAxisConfig::Grow, 10, 0., 1.);. More... | |
Static Public Attributes inherited from ROOT::TAxisBase | |
static constexpr const int | kIgnoreBin = -1 |
FindBin() returns this bin to signal that the bin number is invalid. More... | |
static constexpr const int | kNOverflowBins [4] = {0, 1, 1, 2} |
Extra bins for each EAxisOverflow value. More... | |
Private Attributes | |
EKind | fKind |
The kind of axis represented by this configuration. More... | |
std::vector< double > | fBinBorders |
Bin borders of the TAxisIrregular. More... | |
std::vector< std::string > | fLabels |
Bin labels for a TAxisLabels. More... | |
Axis normalization | |
fBinBorders | |
TAxisConfig (const TAxisEquidistant &ax) | |
Build a TAxisConfig from a TAxisEquidistant. More... | |
fKind (kGrow) | |
fKind (kIrregular) | |
fBinBorders (ax.GetBinBorders()) | |
TAxisConfig (const TAxisLabels &ax) | |
Build a TAxisConfig from a TAxisLabels. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ROOT::TAxisBase | |
constexpr int | AdjustOverflowBinNumber (int rawbin) const |
Given rawbin (<0 for underflow, >= GetNBinsNoOver() for overflow), determine the actual bin number taking into account how over/underflow should be handled. More... | |
TAxisBase (const TAxisBase &)=default | |
TAxisBase (TAxisBase &&)=default | |
TAxisBase & | operator= (const TAxisBase &)=default |
TAxisBase & | operator= (TAxisBase &&)=default |
#include <ROOT/TAxis.h>
Enumerator | |
---|---|
kEquidistant |
represents a TAxisEquidistant |
kGrow |
represents a TAxisGrow |
kIrregular |
represents a TAxisIrregular |
kLabels |
represents a TAxisLabels |
kNumKinds |
Represents a TAxisEquidistant
with nbins
from from
to to
.
|
inline |
Represents a TAxisIrregular
with binborders
.
|
inlinenoexcept |
Represents a TAxisIrregular
with binborders
.
|
inline |
Represents a TAxisLabels
with labels
.
|
inline |
Represents a TAxisLabels
with labels
.
|
inline |
Build a TAxisConfig from a TAxisEquidistant.
|
inline |
Build a TAxisConfig from a TAxisLabels.
|
inline |
ROOT::TAxisConfig::fKind | ( | kGrow | ) |
ROOT::TAxisConfig::fKind | ( | kIrregular | ) |
|
inlinenoexcept |
Get the bin borders; non-empty if the GetKind() == kIrregular.
Definition at line 648 of file TAxis.h.
Referenced by ROOT::Internal::AxisConfigToType< TAxisConfig::kIrregular >::operator()().
|
inlinenoexcept |
Get the bin labels; non-empty if the GetKind() == kLabels.
Definition at line 650 of file TAxis.h.
Referenced by ROOT::Internal::AxisConfigToType< TAxisConfig::kLabels >::operator()().
|
inlinenoexcept |
Get the axis kind represented by this TAxisConfig
.
|
private |
Bin borders of the TAxisIrregular.
Definition at line 574 of file TAxis.h.
Referenced by GetBinBorders().
ROOT::TAxisConfig::fBinBorders |
|
private |
|
private |
|
static |
Tag signalling that an axis should be able to grow; used for calling the appropriate constructor like so: TAxisConfig ac(TAxisConfig::Grow, 10, 0., 1.);.