Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG > Class Template Referencefinal

template<class DATA, class... AXISCONFIG>
class ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >

Definition at line 722 of file RHistImpl.hxx.

Public Types

template<int NDIMS = DATA::GetNDim()>
using AxisIterRange_t = typename Hist::AxisIterRange_t< NDIMS >
 
using BinArray_t = typename ImplBase_t::BinArray_t
 
using CoordArray_t = typename ImplBase_t::CoordArray_t
 
using FillFunc_t = void(RHistImplBase::*)(const CoordArray_t &x, Weight_t w)
 Type of the Fill(x, w) function.
 
using ImplBase_t = RHistImplBase< DATA >
 
using Weight_t = typename ImplBase_t::Weight_t
 
- Public Types inherited from ROOT::Experimental::Detail::RHistImplBase< DATA >
using BinArray_t = std::array< int, DATA::GetNDim()>
 Type of the local per-axis bin indices.
 
using CoordArray_t = Hist::CoordArray_t< DATA::GetNDim()>
 Type of the coordinates.
 
using FillFunc_t = void(RHistImplBase::*)(const CoordArray_t &x, Weight_t w)
 Type of the Fill(x, w) function.
 
using Stat_t = DATA
 Type of the statistics (bin content, uncertainties etc).
 
using Weight_t = typename DATA::Weight_t
 Type of the bin content (and thus weights).
 
- Public Types inherited from ROOT::Experimental::Detail::RHistImplPrecisionAgnosticBase< DATA::GetNDim()>
using AxisIterRange_t = Hist::AxisIterRange_t< DIMENSIONS >
 Range type.
 
using BinArray_t = std::array< int, DIMENSIONS >
 Type of the local per-axis bin indices.
 
using CoordArray_t = Hist::CoordArray_t< DIMENSIONS >
 Type of the coordinates.
 

Public Member Functions

 RHistImpl (AXISCONFIG... axisArgs)
 
 RHistImpl (std::string_view title, AXISCONFIG... axisArgs)
 
 RHistImpl (TRootIOCtor *)
 
std::unique_ptr< ImplBase_tClone () const override
 
template<int NDIMS>
int ComputeGlobalBin (BinArray_t &local_bins) const
 Computes the global index of a certain bin on an NDIMS-dimensional histogram, knowing the local per-axis bin indices as returned by calling FindBin() on each axis.
 
template<int NDIMS, typename BINTYPE >
int ComputeGlobalBinRaw (const BinArray_t &zeroBasedLocalBins, BINTYPE GetNBinType) const
 Computes a zero-based global bin index, given...
 
template<int NDIMS>
BinArray_t ComputeLocalBins (int global_bin) const
 Computes the local per-axis bin indices of a certain bin on an NDIMS-dimensional histogram, knowing the global histogram bin index.
 
template<int NDIMS, typename BINTYPE >
BinArray_t ComputeLocalBinsRaw (int zeroBasedGlobalBin, BINTYPE GetNBinType) const
 Computes zero-based local bin indices, given...
 
void Fill (const CoordArray_t &x, Weight_t w=1.)
 Add a single weight w to the bin at coordinate x.
 
void FillN (const std::span< const CoordArray_t > xN) final
 Fill an array of weightN to the bins specified by coordinates xN.
 
void FillN (const std::span< const CoordArray_t > xN, const std::span< const Weight_t > weightN) final
 Fill an array of weightN to the bins specified by coordinates xN.
 
const std::tuple< AXISCONFIG... > & GetAxes () const
 Get the axes of this histogram.
 
const RAxisBaseGetAxis (int iAxis) const final
 Normalized axes access, converting from actual axis type to base class.
 
CoordArray_t GetBinCenter (int binidx) const final
 Get the center coordinates of the bin with index binidx.
 
Weight_t GetBinContent (const CoordArray_t &x) const final
 Get the content of the bin at position x.
 
CoordArray_t GetBinFrom (int binidx) const final
 Get the coordinates of the low limit of the bin with index binidx.
 
int GetBinIndex (const CoordArray_t &x) const final
 Get the bin index for the given coordinates x.
 
int GetBinIndexAndGrow (const CoordArray_t &x) const final
 Get the bin index for the given coordinates x, growing the axes as needed.
 
int GetBinIndexFromLocalBins (const BinArray_t &x) const final
 Get the bin index for the given local per-axis bin indices x, using ComputeGlobalBin().
 
CoordArray_t GetBinTo (int binidx) const final
 Get the coordinates of the high limit of the bin with index binidx.
 
double GetBinUncertainty (const CoordArray_t &x) const final
 Get the bin uncertainty for the bin at coordinate x.
 
double GetBinUncertainty (int binidx) const final
 Return the uncertainties for the given bin index.
 
FillFunc_t GetFillFunc () const final
 Retrieve the fill function for this histogram implementation, to prevent the virtual function call for high-frequency fills.
 
BinArray_t GetLocalBins (int binidx) const final
 Get the local per-axis bin indices x for the given bin index, using ComputeLocalBins().
 
AxisIterRange_t< DATA::GetNDim()> GetRange () const final
 Get the begin() and end() for each axis.
 
void GrowAxis (int, double)
 Grow the axis number iAxis to fit the coordinate x.
 
bool HasBinUncertainty () const final
 Whether this histogram's statistics provide storage for uncertainties, or whether uncertainties are determined as poisson uncertainty of the content.
 
template<int NDIMS>
BinArray_t LocalBinsToVirtualBins (const BinArray_t &localBins) const
 Converts local axis bins from the standard kUnderflowBin/kOverflowBin for under/overflow bin indexing convention, to a "virtual bin" convention where the underflow bin has index 0 and the overflow bin has index N+1 where N is the axis' number of regular bins.
 
template<int NDIMS>
BinArray_t VirtualBinsToLocalBins (const BinArray_t &virtualBins) const
 Converts zero-based virtual bins where the underflow bin has index 0 and the overflow bin has index N+1 where N is the axis' number of regular bins, to the standard kUnderflowBin/kOverflowBin for under/overflow bin indexing convention.
 
- Public Member Functions inherited from ROOT::Experimental::Detail::RHistImplBase< DATA >
 RHistImplBase ()=default
 
 RHistImplBase (const RHistImplBase &)=default
 
 RHistImplBase (RHistImplBase &&)=default
 
 RHistImplBase (size_t numBins, size_t numOverflowBins)
 
 RHistImplBase (std::string_view title, size_t numBins, size_t numOverflowBins)
 
void AddBinContent (int binidx, Weight_t w)
 Add w to the bin at index bin.
 
Weight_tGetBinContent (int binidx)
 Get the bin content (sum of weights) for bin index binidx (non-const).
 
Weight_t GetBinContent (int binidx) const
 Get the bin content (sum of weights) for bin index binidx.
 
double GetBinContentAsDouble (int binidx) const final
 Get the bin content (sum of weights) for bin index binidx, cast to double.
 
int GetNBins () const noexcept final
 Get the number of bins in this histogram, including possible under- and overflow bins.
 
int GetNBinsNoOver () const noexcept final
 Get the number of bins in this histogram, excluding possible under- and overflow bins.
 
int GetNOverflowBins () const noexcept final
 Get the number of under- and overflow bins of this histogram, excluding all regular bins.
 
const Stat_tGetStat () const noexcept
 Const access to statistics.
 
Stat_tGetStat () noexcept
 Non-const access to statistics.
 
- Public Member Functions inherited from ROOT::Experimental::Detail::RHistImplPrecisionAgnosticBase< DATA::GetNDim()>
 RHistImplPrecisionAgnosticBase ()=default
 
 RHistImplPrecisionAgnosticBase (const RHistImplPrecisionAgnosticBase &)=default
 
 RHistImplPrecisionAgnosticBase (RHistImplPrecisionAgnosticBase &&)=default
 
 RHistImplPrecisionAgnosticBase (std::string_view title)
 
virtual ~RHistImplPrecisionAgnosticBase ()
 
virtual int GetBinIndex (const CoordArray_t &x) const=0
 Given the coordinate x, determine the index of the bin.
 
virtual int GetBinIndexAndGrow (const CoordArray_t &x) const=0
 Given the coordinate x, determine the index of the bin, possibly growing axes for which x is out of range.
 
virtual int GetBinIndexFromLocalBins (const BinArray_t &x) const=0
 Given the local per-axis bins x, determine the index of the bin.
 
const std::string & GetTitle () const
 Get the histogram title.
 

Private Attributes

std::tuple< AXISCONFIG... > fAxes
 The histogram's axes.
 

Iterator interface

using const_iterator = RHistBinIter< const ImplBase_t >
 
using iterator = RHistBinIter< ImplBase_t >
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 

Additional Inherited Members

- Static Public Member Functions inherited from ROOT::Experimental::Detail::RHistImplPrecisionAgnosticBase< DATA::GetNDim()>
static constexpr int GetNDim ()
 Number of dimensions of the coordinates.
 

#include <ROOT/RHistImpl.hxx>

Inheritance diagram for ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >:
[legend]

Member Typedef Documentation

◆ AxisIterRange_t

template<class DATA , class... AXISCONFIG>
template<int NDIMS = DATA::GetNDim()>
using ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::AxisIterRange_t = typename Hist::AxisIterRange_t<NDIMS>

Definition at line 734 of file RHistImpl.hxx.

◆ BinArray_t

template<class DATA , class... AXISCONFIG>
using ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::BinArray_t = typename ImplBase_t::BinArray_t

Definition at line 730 of file RHistImpl.hxx.

◆ const_iterator

template<class DATA , class... AXISCONFIG>
using ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::const_iterator = RHistBinIter<const ImplBase_t>

Definition at line 1125 of file RHistImpl.hxx.

◆ CoordArray_t

template<class DATA , class... AXISCONFIG>
using ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::CoordArray_t = typename ImplBase_t::CoordArray_t

Definition at line 729 of file RHistImpl.hxx.

◆ FillFunc_t

template<class DATA , class... AXISCONFIG>
using ROOT::Experimental::Detail::RHistImplBase< DATA >::FillFunc_t = void (RHistImplBase::*)(const CoordArray_t &x, Weight_t w)

Type of the Fill(x, w) function.

Definition at line 164 of file RHistImpl.hxx.

◆ ImplBase_t

template<class DATA , class... AXISCONFIG>
using ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::ImplBase_t = RHistImplBase<DATA>

Definition at line 728 of file RHistImpl.hxx.

◆ iterator

template<class DATA , class... AXISCONFIG>
using ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::iterator = RHistBinIter<ImplBase_t>

Definition at line 1126 of file RHistImpl.hxx.

◆ Weight_t

template<class DATA , class... AXISCONFIG>
using ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::Weight_t = typename ImplBase_t::Weight_t

Definition at line 731 of file RHistImpl.hxx.

Constructor & Destructor Documentation

◆ RHistImpl() [1/3]

template<class DATA , class... AXISCONFIG>
ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::RHistImpl ( TRootIOCtor )

Definition at line 1135 of file RHistImpl.hxx.

◆ RHistImpl() [2/3]

template<class DATA , class... AXISCONFIG>
ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::RHistImpl ( AXISCONFIG...  axisArgs)

Definition at line 1139 of file RHistImpl.hxx.

◆ RHistImpl() [3/3]

template<class DATA , class... AXISCONFIG>
ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::RHistImpl ( std::string_view  title,
AXISCONFIG...  axisArgs 
)

Definition at line 1144 of file RHistImpl.hxx.

Member Function Documentation

◆ begin() [1/2]

template<class DATA , class... AXISCONFIG>
const_iterator ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::begin ( ) const
inlinenoexcept

Definition at line 1128 of file RHistImpl.hxx.

◆ begin() [2/2]

template<class DATA , class... AXISCONFIG>
iterator ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::begin ( )
inlinenoexcept

Definition at line 1127 of file RHistImpl.hxx.

◆ Clone()

template<class DATA , class... AXISCONFIG>
std::unique_ptr< ImplBase_t > ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::Clone ( ) const
inlineoverridevirtual

Implements ROOT::Experimental::Detail::RHistImplBase< DATA >.

Definition at line 744 of file RHistImpl.hxx.

◆ ComputeGlobalBin()

template<class DATA , class... AXISCONFIG>
template<int NDIMS>
int ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::ComputeGlobalBin ( BinArray_t local_bins) const
inline

Computes the global index of a certain bin on an NDIMS-dimensional histogram, knowing the local per-axis bin indices as returned by calling FindBin() on each axis.

Definition at line 811 of file RHistImpl.hxx.

◆ ComputeGlobalBinRaw()

template<class DATA , class... AXISCONFIG>
template<int NDIMS, typename BINTYPE >
int ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::ComputeGlobalBinRaw ( const BinArray_t zeroBasedLocalBins,
BINTYPE  GetNBinType 
) const
inline

Computes a zero-based global bin index, given...

  • A set of zero-based per-axis bin indices
  • The number of considered bins on each axis (can be either GetNBinsNoOver or GetNBins depending on what you are trying to do)
  • A policy of treating all bins qs regular (i.e. no negative indices)

Definition at line 767 of file RHistImpl.hxx.

◆ ComputeLocalBins()

template<class DATA , class... AXISCONFIG>
template<int NDIMS>
BinArray_t ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::ComputeLocalBins ( int  global_bin) const
inline

Computes the local per-axis bin indices of a certain bin on an NDIMS-dimensional histogram, knowing the global histogram bin index.

Definition at line 867 of file RHistImpl.hxx.

◆ ComputeLocalBinsRaw()

template<class DATA , class... AXISCONFIG>
template<int NDIMS, typename BINTYPE >
BinArray_t ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::ComputeLocalBinsRaw ( int  zeroBasedGlobalBin,
BINTYPE  GetNBinType 
) const
inline

Computes zero-based local bin indices, given...

  • A zero-based global bin index
  • The number of considered bins on each axis (can be either GetNBinsNoOver or GetNBins depending on what you are trying to do)
  • A policy of treating all bins as regular (i.e. no negative indices)

Definition at line 780 of file RHistImpl.hxx.

◆ end() [1/2]

template<class DATA , class... AXISCONFIG>
const_iterator ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::end ( ) const
inlinenoexcept

Definition at line 1130 of file RHistImpl.hxx.

◆ end() [2/2]

template<class DATA , class... AXISCONFIG>
iterator ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::end ( )
inlinenoexcept

Definition at line 1129 of file RHistImpl.hxx.

◆ Fill()

template<class DATA , class... AXISCONFIG>
void ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::Fill ( const CoordArray_t x,
Weight_t  w = 1. 
)
inline

Add a single weight w to the bin at coordinate x.

Definition at line 1077 of file RHistImpl.hxx.

◆ FillN() [1/2]

template<class DATA , class... AXISCONFIG>
void ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::FillN ( const std::span< const CoordArray_t xN)
inlinefinalvirtual

Fill an array of weightN to the bins specified by coordinates xN.

For each element i, the weight weightN[i] will be added to the bin at the coordinate xN[i]

Implements ROOT::Experimental::Detail::RHistImplBase< DATA >.

Definition at line 1069 of file RHistImpl.hxx.

◆ FillN() [2/2]

template<class DATA , class... AXISCONFIG>
void ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::FillN ( const std::span< const CoordArray_t xN,
const std::span< const Weight_t weightN 
)
inlinefinalvirtual

Fill an array of weightN to the bins specified by coordinates xN.

For each element i, the weight weightN[i] will be added to the bin at the coordinate xN[i]

Note
xN and weightN must have the same size!

Implements ROOT::Experimental::Detail::RHistImplBase< DATA >.

Definition at line 1052 of file RHistImpl.hxx.

◆ GetAxes()

template<class DATA , class... AXISCONFIG>
const std::tuple< AXISCONFIG... > & ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetAxes ( ) const
inline

Get the axes of this histogram.

Definition at line 755 of file RHistImpl.hxx.

◆ GetAxis()

template<class DATA , class... AXISCONFIG>
const RAxisBase & ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetAxis ( int  iAxis) const
inlinefinalvirtual

Normalized axes access, converting from actual axis type to base class.

Implements ROOT::Experimental::Detail::RHistImplPrecisionAgnosticBase< DATA::GetNDim()>.

Definition at line 758 of file RHistImpl.hxx.

◆ GetBinCenter()

template<class DATA , class... AXISCONFIG>
CoordArray_t ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetBinCenter ( int  binidx) const
inlinefinalvirtual

Get the center coordinates of the bin with index binidx.

Implements ROOT::Experimental::Detail::RHistImplPrecisionAgnosticBase< DATA::GetNDim()>.

Definition at line 1022 of file RHistImpl.hxx.

◆ GetBinContent()

template<class DATA , class... AXISCONFIG>
Weight_t ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetBinContent ( const CoordArray_t x) const
inlinefinalvirtual

Get the content of the bin at position x.

Implements ROOT::Experimental::Detail::RHistImplBase< DATA >.

Definition at line 1084 of file RHistImpl.hxx.

◆ GetBinFrom()

template<class DATA , class... AXISCONFIG>
CoordArray_t ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetBinFrom ( int  binidx) const
inlinefinalvirtual

Get the coordinates of the low limit of the bin with index binidx.

Implements ROOT::Experimental::Detail::RHistImplPrecisionAgnosticBase< DATA::GetNDim()>.

Definition at line 1031 of file RHistImpl.hxx.

◆ GetBinIndex()

template<class DATA , class... AXISCONFIG>
int ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetBinIndex ( const CoordArray_t x) const
inlinefinal

Get the bin index for the given coordinates x.

The use of RFindLocalBins allows to convert the coordinates to local per-axis bin indices before using ComputeGlobalBin().

Definition at line 978 of file RHistImpl.hxx.

◆ GetBinIndexAndGrow()

template<class DATA , class... AXISCONFIG>
int ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetBinIndexAndGrow ( const CoordArray_t x) const
inlinefinal

Get the bin index for the given coordinates x, growing the axes as needed.

The use of RFindLocalBins allows to convert the coordinates to local per-axis bin indices before using ComputeGlobalBin().

TODO: implement growable behavior

Definition at line 991 of file RHistImpl.hxx.

◆ GetBinIndexFromLocalBins()

template<class DATA , class... AXISCONFIG>
int ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetBinIndexFromLocalBins ( const BinArray_t x) const
inlinefinal

Get the bin index for the given local per-axis bin indices x, using ComputeGlobalBin().

Definition at line 1006 of file RHistImpl.hxx.

◆ GetBinTo()

template<class DATA , class... AXISCONFIG>
CoordArray_t ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetBinTo ( int  binidx) const
inlinefinalvirtual

Get the coordinates of the high limit of the bin with index binidx.

Implements ROOT::Experimental::Detail::RHistImplPrecisionAgnosticBase< DATA::GetNDim()>.

Definition at line 1040 of file RHistImpl.hxx.

◆ GetBinUncertainty() [1/2]

template<class DATA , class... AXISCONFIG>
double ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetBinUncertainty ( const CoordArray_t x) const
inlinefinalvirtual

Get the bin uncertainty for the bin at coordinate x.

Implements ROOT::Experimental::Detail::RHistImplBase< DATA >.

Definition at line 1094 of file RHistImpl.hxx.

◆ GetBinUncertainty() [2/2]

template<class DATA , class... AXISCONFIG>
double ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetBinUncertainty ( int  binidx) const
inlinefinalvirtual

Return the uncertainties for the given bin index.

Implements ROOT::Experimental::Detail::RHistImplPrecisionAgnosticBase< DATA::GetNDim()>.

Definition at line 1091 of file RHistImpl.hxx.

◆ GetFillFunc()

template<class DATA , class... AXISCONFIG>
FillFunc_t ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetFillFunc ( ) const
inlinefinalvirtual

Retrieve the fill function for this histogram implementation, to prevent the virtual function call for high-frequency fills.

Implements ROOT::Experimental::Detail::RHistImplBase< DATA >.

Definition at line 750 of file RHistImpl.hxx.

◆ GetLocalBins()

template<class DATA , class... AXISCONFIG>
BinArray_t ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetLocalBins ( int  binidx) const
inlinefinalvirtual

Get the local per-axis bin indices x for the given bin index, using ComputeLocalBins().

Implements ROOT::Experimental::Detail::RHistImplPrecisionAgnosticBase< DATA::GetNDim()>.

Definition at line 1015 of file RHistImpl.hxx.

◆ GetRange()

template<class DATA , class... AXISCONFIG>
AxisIterRange_t< DATA::GetNDim()> ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GetRange ( ) const
inlinefinalvirtual

Get the begin() and end() for each axis.

Implements ROOT::Experimental::Detail::RHistImplPrecisionAgnosticBase< DATA::GetNDim()>.

Definition at line 1106 of file RHistImpl.hxx.

◆ GrowAxis()

template<class DATA , class... AXISCONFIG>
void ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::GrowAxis ( int  ,
double   
)
inline

Grow the axis number iAxis to fit the coordinate x.

The histogram (conceptually) combines pairs of bins along this axis until x is within the range of the axis. The axis must support growing for this to work (e.g. a RAxisGrow).

Definition at line 1118 of file RHistImpl.hxx.

◆ HasBinUncertainty()

template<class DATA , class... AXISCONFIG>
bool ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::HasBinUncertainty ( ) const
inlinefinalvirtual

Whether this histogram's statistics provide storage for uncertainties, or whether uncertainties are determined as poisson uncertainty of the content.

Implements ROOT::Experimental::Detail::RHistImplPrecisionAgnosticBase< DATA::GetNDim()>.

Definition at line 1102 of file RHistImpl.hxx.

◆ LocalBinsToVirtualBins()

template<class DATA , class... AXISCONFIG>
template<int NDIMS>
BinArray_t ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::LocalBinsToVirtualBins ( const BinArray_t localBins) const
inline

Converts local axis bins from the standard kUnderflowBin/kOverflowBin for under/overflow bin indexing convention, to a "virtual bin" convention where the underflow bin has index 0 and the overflow bin has index N+1 where N is the axis' number of regular bins.

Definition at line 791 of file RHistImpl.hxx.

◆ VirtualBinsToLocalBins()

template<class DATA , class... AXISCONFIG>
template<int NDIMS>
BinArray_t ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::VirtualBinsToLocalBins ( const BinArray_t virtualBins) const
inline

Converts zero-based virtual bins where the underflow bin has index 0 and the overflow bin has index N+1 where N is the axis' number of regular bins, to the standard kUnderflowBin/kOverflowBin for under/overflow bin indexing convention.

Definition at line 802 of file RHistImpl.hxx.

Member Data Documentation

◆ fAxes

template<class DATA , class... AXISCONFIG>
std::tuple<AXISCONFIG...> ROOT::Experimental::Detail::RHistImpl< DATA, AXISCONFIG >::fAxes
private

The histogram's axes.

Definition at line 737 of file RHistImpl.hxx.

  • hist/histv7/inc/ROOT/RHistImpl.hxx