ROOT  6.06/09
Reference Guide
Public Types | Public Member Functions | Private Attributes | List of all members
ROOT::THistView< DIMENSIONS, PRECISION > Class Template Reference

template<int DIMENSIONS, class PRECISION>
class ROOT::THistView< DIMENSIONS, PRECISION >

A view on a histogram, selecting a range on a subset of dimensions.

Definition at line 49 of file THistView.h.

Public Types

using Hist_t = THist< DIMENSIONS, PRECISION >
 
using AxisIter_t = Hist::AxisIter_t< DIMENSIONS >
 
using AxisRange_t = Hist::AxisIterRange_t< DIMENSIONS >
 
using const_iterator = Internal::THistBinIter< THistViewOutOfRange >
 

Public Member Functions

 THistView (Hist_t &hist, int nbins, const AxisRange_t &range)
 
bool IsBinOutOfRange (int idx) const noexcept
 
void SetRange (int axis, double from, double to)
 
const_iterator begin () const noexcept
 
const_iterator end () const noexcept
 

Private Attributes

Hist_tfHist
 
int fNBins = 0
 
AxisRange_t fRange
 

#include <ROOT/THistView.h>

+ Collaboration diagram for ROOT::THistView< DIMENSIONS, PRECISION >:

Member Typedef Documentation

template<int DIMENSIONS, class PRECISION >
using ROOT::THistView< DIMENSIONS, PRECISION >::AxisIter_t = Hist::AxisIter_t<DIMENSIONS>

Definition at line 52 of file THistView.h.

template<int DIMENSIONS, class PRECISION >
using ROOT::THistView< DIMENSIONS, PRECISION >::AxisRange_t = Hist::AxisIterRange_t<DIMENSIONS>

Definition at line 53 of file THistView.h.

template<int DIMENSIONS, class PRECISION >
using ROOT::THistView< DIMENSIONS, PRECISION >::const_iterator = Internal::THistBinIter<THistViewOutOfRange>

Definition at line 55 of file THistView.h.

template<int DIMENSIONS, class PRECISION >
using ROOT::THistView< DIMENSIONS, PRECISION >::Hist_t = THist<DIMENSIONS, PRECISION>

Definition at line 51 of file THistView.h.

Constructor & Destructor Documentation

template<int DIMENSIONS, class PRECISION >
ROOT::THistView< DIMENSIONS, PRECISION >::THistView ( Hist_t hist,
int  nbins,
const AxisRange_t range 
)
inline

Definition at line 57 of file THistView.h.

Member Function Documentation

template<int DIMENSIONS, class PRECISION >
const_iterator ROOT::THistView< DIMENSIONS, PRECISION >::begin ( ) const
inlinenoexcept

Definition at line 70 of file THistView.h.

template<int DIMENSIONS, class PRECISION >
const_iterator ROOT::THistView< DIMENSIONS, PRECISION >::end ( ) const
inlinenoexcept

Definition at line 78 of file THistView.h.

template<int DIMENSIONS, class PRECISION >
bool ROOT::THistView< DIMENSIONS, PRECISION >::IsBinOutOfRange ( int  idx) const
inlinenoexcept

Definition at line 60 of file THistView.h.

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

template<int DIMENSIONS, class PRECISION >
void ROOT::THistView< DIMENSIONS, PRECISION >::SetRange ( int  axis,
double  from,
double  to 
)
inline

Definition at line 64 of file THistView.h.

Member Data Documentation

template<int DIMENSIONS, class PRECISION >
Hist_t& ROOT::THistView< DIMENSIONS, PRECISION >::fHist
private
template<int DIMENSIONS, class PRECISION >
int ROOT::THistView< DIMENSIONS, PRECISION >::fNBins = 0
private

Definition at line 85 of file THistView.h.

template<int DIMENSIONS, class PRECISION >
AxisRange_t ROOT::THistView< DIMENSIONS, PRECISION >::fRange
private

Definition at line 86 of file THistView.h.

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


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