Logo ROOT   6.10/09
Reference Guide
List of all members | Public Types | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::Detail::THistBinRef< HISTIMPL > Class Template Reference

template<class HISTIMPL>
class ROOT::Experimental::Detail::THistBinRef< HISTIMPL >

Represents a bin reference.

Value of the bin iteration.

Provides access to bin content, bin geometry (from, to, center), and statistics (for instance higher moments) associated to the bin.

Definition at line 33 of file THistBinIter.hxx.

Public Types

using CoordArray_t = typename HISTIMPL::CoordArray_t
 
using HistBinStat_t = decltype(((HISTIMPL *) 0x123) ->GetStat().GetView(1))
 
using HistImpl_t = HISTIMPL
 
using Weight_t = typename HISTIMPL::Weight_t
 

Public Member Functions

 THistBinRef (HistImpl_t &hist, size_t idx)
 Construct from a histogram. More...
 
Statistics operations

Get the bin content (or reference to it, for non-const HistImpl_t).

auto GetContent ()
 
double GetUncertainty () const
 Get the bin uncertainty. More...
 
HistBinStat_t GetStat () const
 Get a (const, for const HistImpl_t) reference to the bin-view of the histogram statistics (uncertainty etc). More...
 
Bin operations

Get the bin center as an array over all dimensions.

CoordArray_t GetCenter () const
 
CoordArray_t GetFrom () const
 Get the bin lower edge as an array over all dimensions. More...
 
CoordArray_t GetTo () const
 Get the bin upper edge as an array over all dimensions. More...
 

Private Attributes

HistImpl_tfHist
 The bin's histogram. More...
 
size_t fIndex = 0
 Bin index. More...
 
HistBinStat_t fStatView
 

#include <ROOT/THistBinIter.hxx>

Member Typedef Documentation

◆ CoordArray_t

template<class HISTIMPL >
using ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::CoordArray_t = typename HISTIMPL::CoordArray_t

Definition at line 36 of file THistBinIter.hxx.

◆ HistBinStat_t

template<class HISTIMPL >
using ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::HistBinStat_t = decltype(((HISTIMPL*)0x123)->GetStat().GetView(1))

Definition at line 38 of file THistBinIter.hxx.

◆ HistImpl_t

template<class HISTIMPL >
using ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::HistImpl_t = HISTIMPL

Definition at line 35 of file THistBinIter.hxx.

◆ Weight_t

template<class HISTIMPL >
using ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::Weight_t = typename HISTIMPL::Weight_t

Definition at line 37 of file THistBinIter.hxx.

Constructor & Destructor Documentation

◆ THistBinRef()

template<class HISTIMPL >
ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::THistBinRef ( HistImpl_t hist,
size_t  idx 
)
inline

Construct from a histogram.

Definition at line 47 of file THistBinIter.hxx.

Member Function Documentation

◆ GetCenter()

template<class HISTIMPL >
CoordArray_t ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::GetCenter ( ) const
inline

Definition at line 66 of file THistBinIter.hxx.

◆ GetContent()

template<class HISTIMPL >
auto ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::GetContent ( )
inline

Definition at line 53 of file THistBinIter.hxx.

◆ GetFrom()

template<class HISTIMPL >
CoordArray_t ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::GetFrom ( ) const
inline

Get the bin lower edge as an array over all dimensions.

Definition at line 69 of file THistBinIter.hxx.

◆ GetStat()

template<class HISTIMPL >
HistBinStat_t ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::GetStat ( ) const
inline

Get a (const, for const HistImpl_t) reference to the bin-view of the histogram statistics (uncertainty etc).

Definition at line 60 of file THistBinIter.hxx.

◆ GetTo()

template<class HISTIMPL >
CoordArray_t ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::GetTo ( ) const
inline

Get the bin upper edge as an array over all dimensions.

Definition at line 72 of file THistBinIter.hxx.

◆ GetUncertainty()

template<class HISTIMPL >
double ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::GetUncertainty ( ) const
inline

Get the bin uncertainty.

Definition at line 56 of file THistBinIter.hxx.

Member Data Documentation

◆ fHist

template<class HISTIMPL >
HistImpl_t* ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::fHist
private

The bin's histogram.

Definition at line 42 of file THistBinIter.hxx.

◆ fIndex

template<class HISTIMPL >
size_t ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::fIndex = 0
private

Bin index.

Definition at line 41 of file THistBinIter.hxx.

◆ fStatView

template<class HISTIMPL >
HistBinStat_t ROOT::Experimental::Detail::THistBinRef< HISTIMPL >::fStatView
private

Definition at line 43 of file THistBinIter.hxx.


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