Base class for RHistImplBase that abstracts out the histogram's PRECISION.
For operations such as painting a histogram, the PRECISION (type of the bin content) is not relevant; painting will cast the underlying bin type to double. To facilitate this, RHistImplBase itself inherits from the RHistImplPrecisionAgnosticBase interface.
Definition at line 70 of file RHistImpl.hxx.
Public Types | |
using | AxisIterRange_t = Hist::AxisIterRange_t< DIMENSIONS > |
Range type. More... | |
using | CoordArray_t = Hist::CoordArray_t< DIMENSIONS > |
Type of the coordinate: a DIMENSIONS-dimensional array of doubles. More... | |
Public Member Functions | |
RHistImplPrecisionAgnosticBase ()=default | |
RHistImplPrecisionAgnosticBase (const RHistImplPrecisionAgnosticBase &)=default | |
RHistImplPrecisionAgnosticBase (RHistImplPrecisionAgnosticBase &&)=default | |
RHistImplPrecisionAgnosticBase (std::string_view title) | |
virtual | ~RHistImplPrecisionAgnosticBase () |
virtual RAxisView | GetAxis (int iAxis) const =0 |
Get a RAxisView on axis with index iAxis. More... | |
virtual CoordArray_t | GetBinCenter (int binidx) const =0 |
Get the center in all dimensions of the bin with index binidx . More... | |
virtual double | GetBinContentAsDouble (int binidx) const =0 |
The bin content, cast to double. More... | |
virtual CoordArray_t | GetBinFrom (int binidx) const =0 |
Get the lower edge in all dimensions of the bin with index binidx . More... | |
virtual int | GetBinIndex (const CoordArray_t &x) const =0 |
Given the coordinate x , determine the index of the bin. More... | |
virtual int | GetBinIndexAndGrow (const CoordArray_t &x)=0 |
Given the coordinate x , determine the index of the bin, possibly growing axes for which x is out of range. More... | |
virtual CoordArray_t | GetBinTo (int binidx) const =0 |
Get the upper edge in all dimensions of the bin with index binidx . More... | |
virtual double | GetBinUncertainty (int binidx) const =0 |
The bin's uncertainty. More... | |
virtual int | GetNBins () const noexcept=0 |
Number of bins of this histogram, including all overflow and underflow bins. More... | |
virtual AxisIterRange_t | GetRange (const std::array< Hist::EOverflow, DIMENSIONS > &withOverUnder) const =0 |
Get a AxisIterRange_t for the whole histogram, possibly restricting the range to non-overflow bins. More... | |
const std::string & | GetTitle () const |
Get the histogram title. More... | |
virtual bool | HasBinUncertainty () const =0 |
Whether this histogram's statistics provide storage for uncertainties, or whether uncertainties are determined as poisson uncertainty of the content. More... | |
Static Public Member Functions | |
static constexpr int | GetNDim () |
Number of dimensions of the coordinates. More... | |
Private Attributes | |
std::string | fTitle |
Histogram title. More... | |
#include <ROOT/RHistImpl.hxx>
using ROOT::Experimental::Detail::RHistImplPrecisionAgnosticBase< DIMENSIONS >::AxisIterRange_t = Hist::AxisIterRange_t<DIMENSIONS> |
Range type.
Definition at line 75 of file RHistImpl.hxx.
using ROOT::Experimental::Detail::RHistImplPrecisionAgnosticBase< DIMENSIONS >::CoordArray_t = Hist::CoordArray_t<DIMENSIONS> |
Type of the coordinate: a DIMENSIONS-dimensional array of doubles.
Definition at line 73 of file RHistImpl.hxx.
|
default |
|
default |
|
default |
|
inline |
Definition at line 80 of file RHistImpl.hxx.
|
inlinevirtual |
Definition at line 81 of file RHistImpl.hxx.
|
pure virtual |
Get a RAxisView on axis with index iAxis.
iAxis | - index of the axis, must be 0 <= iAxis < DIMENSION |
Implemented in ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >.
|
pure virtual |
Get the center in all dimensions of the bin with index binidx
.
Implemented in ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >.
|
pure virtual |
The bin content, cast to double.
Implemented in ROOT::Experimental::Detail::RHistImplBase< DATA >.
|
pure virtual |
Get the lower edge in all dimensions of the bin with index binidx
.
Implemented in ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >.
|
pure virtual |
Given the coordinate x
, determine the index of the bin.
|
pure virtual |
Given the coordinate x
, determine the index of the bin, possibly growing axes for which x
is out of range.
|
pure virtual |
Get the upper edge in all dimensions of the bin with index binidx
.
Implemented in ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >.
|
pure virtual |
The bin's uncertainty.
size() of the vector is a multiple of 2: several kinds of uncertainty, same number of entries for lower and upper.
Implemented in ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >.
|
pure virtualnoexcept |
Number of bins of this histogram, including all overflow and underflow bins.
Simply the product of all axes' number of bins.
Implemented in ROOT::Experimental::Detail::RHistImplBase< DATA >.
|
inlinestaticconstexpr |
Number of dimensions of the coordinates.
Definition at line 84 of file RHistImpl.hxx.
|
pure virtual |
Get a AxisIterRange_t for the whole histogram, possibly restricting the range to non-overflow bins.
withOverUnder | - specifies for each dimension whether under and overflow should be included in the returned range. |
|
inline |
Get the histogram title.
Definition at line 90 of file RHistImpl.hxx.
|
pure virtual |
Whether this histogram's statistics provide storage for uncertainties, or whether uncertainties are determined as poisson uncertainty of the content.
Implemented in ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >.
|
private |
Histogram title.
Definition at line 129 of file RHistImpl.hxx.