Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TBinIterator Class Reference

Definition at line 29 of file THistRange.h.

Public Types

enum  ERangeType { kHistRange , kAxisBins , kAllBins , kUnOfBins }
 enum defining option range type: More...
 

Public Member Functions

 TBinIterator (const TH1 *h, ERangeType type)
 constructor of TBInIterator taking as input an histogram pointer This constructors set iterator, the global bin, to its first value (begin)
 
bool operator!= (const TBinIterator &rhs) const
 
intoperator* ()
 
TBinIteratoroperator++ ()
 
TBinIterator operator++ (int)
 
bool operator== (const TBinIterator &rhs) const
 

Static Public Member Functions

static TBinIterator End ()
 

Private Member Functions

 TBinIterator ()
 
void SetGlobalBin ()
 Compute global bin number given x,y,x bin numbers.
 

Private Attributes

int fBin
 Global bin number used to advanced.
 
int fDim
 Histogram dimension.
 
int fNx
 Total x size (nbins+2)
 
int fNy
 y size
 
int fNz
 z size
 
int fXbin
 Bin X number.
 
int fXmax
 Max x value.
 
int fXmin
 Min x value.
 
int fYbin
 Bin y number.
 
int fYmax
 Max y value.
 
int fYmin
 Min y value.
 
int fZbin
 Bin Z number.
 
int fZmax
 Max z value.
 
int fZmin
 Min z value.
 

Friends

class THistRange
 

#include <THistRange.h>

Member Enumeration Documentation

◆ ERangeType

enum defining option range type:

Enumerator
kHistRange 

use range provided by histogram

kAxisBins 

use allbins within axis limits (no underflow/overflows)

kAllBins 

use all bins including underflows/overflows

kUnOfBins 

collection of all underflow/overflow bins

Definition at line 70 of file THistRange.h.

Constructor & Destructor Documentation

◆ TBinIterator() [1/2]

TBinIterator::TBinIterator ( )
inlineprivate

Definition at line 60 of file THistRange.h.

◆ TBinIterator() [2/2]

TBinIterator::TBinIterator ( const TH1 h,
ERangeType  type 
)

constructor of TBInIterator taking as input an histogram pointer This constructors set iterator, the global bin, to its first value (begin)

Definition at line 28 of file THistRange.cxx.

Member Function Documentation

◆ End()

static TBinIterator TBinIterator::End ( )
inlinestatic

Definition at line 82 of file THistRange.h.

◆ operator!=()

bool TBinIterator::operator!= ( const TBinIterator rhs) const
inline

Definition at line 135 of file THistRange.h.

◆ operator*()

int & TBinIterator::operator* ( )
inline

Definition at line 136 of file THistRange.h.

◆ operator++() [1/2]

TBinIterator & TBinIterator::operator++ ( )
inline

Definition at line 90 of file THistRange.h.

◆ operator++() [2/2]

TBinIterator TBinIterator::operator++ ( int  )
inline

Definition at line 127 of file THistRange.h.

◆ operator==()

bool TBinIterator::operator== ( const TBinIterator rhs) const
inline

Definition at line 134 of file THistRange.h.

◆ SetGlobalBin()

void TBinIterator::SetGlobalBin ( )
inlineprivate

Compute global bin number given x,y,x bin numbers.

Definition at line 49 of file THistRange.h.

Friends And Related Symbol Documentation

◆ THistRange

friend class THistRange
friend

Definition at line 67 of file THistRange.h.

Member Data Documentation

◆ fBin

int TBinIterator::fBin
private

Global bin number used to advanced.

Definition at line 31 of file THistRange.h.

◆ fDim

int TBinIterator::fDim
private

Histogram dimension.

Definition at line 46 of file THistRange.h.

◆ fNx

int TBinIterator::fNx
private

Total x size (nbins+2)

Definition at line 36 of file THistRange.h.

◆ fNy

int TBinIterator::fNy
private

y size

Definition at line 37 of file THistRange.h.

◆ fNz

int TBinIterator::fNz
private

z size

Definition at line 38 of file THistRange.h.

◆ fXbin

int TBinIterator::fXbin
private

Bin X number.

Definition at line 32 of file THistRange.h.

◆ fXmax

int TBinIterator::fXmax
private

Max x value.

Definition at line 40 of file THistRange.h.

◆ fXmin

int TBinIterator::fXmin
private

Min x value.

Definition at line 39 of file THistRange.h.

◆ fYbin

int TBinIterator::fYbin
private

Bin y number.

Definition at line 33 of file THistRange.h.

◆ fYmax

int TBinIterator::fYmax
private

Max y value.

Definition at line 42 of file THistRange.h.

◆ fYmin

int TBinIterator::fYmin
private

Min y value.

Definition at line 41 of file THistRange.h.

◆ fZbin

int TBinIterator::fZbin
private

Bin Z number.

Definition at line 34 of file THistRange.h.

◆ fZmax

int TBinIterator::fZmax
private

Max z value.

Definition at line 44 of file THistRange.h.

◆ fZmin

int TBinIterator::fZmin
private

Min z value.

Definition at line 43 of file THistRange.h.

Libraries for TBinIterator:

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