Logo ROOT   6.18/05
Reference Guide
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
RooDataHistSliceIter Class Reference

RooDataHistSliceIter iterates over all bins in a RooDataHist that occur in a slice defined by the bin coordinates of the input sliceSet.

Definition at line 26 of file RooDataHistSliceIter.h.

Public Member Functions

 RooDataHistSliceIter (const RooDataHistSliceIter &other)
 Copy constructor. More...
 
virtual ~RooDataHistSliceIter ()
 Destructor. More...
 
virtual const TCollectionGetCollection () const
 Dummy. More...
 
virtual TObjectNext ()
 Iterator increment operator. More...
 
virtual bool operator!= (const TIterator &aIter) const
 Returns true if position of this iterator differs from position of iterator 'aIter'. More...
 
virtual TObjectoperator* () const
 Iterator dereference operator, not functional for this iterator. More...
 
virtual void Reset ()
 Reset iterator position to beginning. More...
 
- Public Member Functions inherited from TIterator
virtual ~TIterator ()
 
virtual const TCollectionGetCollection () const =0
 
virtual Option_tGetOption () const
 
virtual TObjectNext ()=0
 
virtual Bool_t operator!= (const TIterator &) const
 Compare two iterator objects. More...
 
TObjectoperator() ()
 
virtual TObjectoperator* () const
 Return current object or nullptr. More...
 
virtual TIteratoroperator= (const TIterator &)
 
Bool_t operator== (const TIterator &other) const
 
virtual void Reset ()=0
 

Protected Member Functions

 RooDataHistSliceIter (RooDataHist &hist, RooAbsArg &sliceArg)
 Construct an iterator over all bins of RooDataHist 'hist' in the slice defined by the values of the arguments in 'sliceArg'. More...
 
TIteratoroperator= (const TIterator &)
 
- Protected Member Functions inherited from TIterator
 TIterator ()
 
 TIterator (const TIterator &)
 

Protected Attributes

Int_t _baseIndex
 
Int_t _curStep
 
RooDataHist_hist
 
Int_t _nStep
 
RooAbsArg_sliceArg
 
Int_t _stepSize
 

Friends

class RooDataHist
 

#include <RooDataHistSliceIter.h>

Inheritance diagram for RooDataHistSliceIter:
[legend]

Constructor & Destructor Documentation

◆ RooDataHistSliceIter() [1/2]

RooDataHistSliceIter::RooDataHistSliceIter ( const RooDataHistSliceIter other)

Copy constructor.

Definition at line 78 of file RooDataHistSliceIter.cxx.

◆ ~RooDataHistSliceIter()

RooDataHistSliceIter::~RooDataHistSliceIter ( )
virtual

Destructor.

Definition at line 94 of file RooDataHistSliceIter.cxx.

◆ RooDataHistSliceIter() [2/2]

RooDataHistSliceIter::RooDataHistSliceIter ( RooDataHist hist,
RooAbsArg sliceArg 
)
protected

Construct an iterator over all bins of RooDataHist 'hist' in the slice defined by the values of the arguments in 'sliceArg'.

Definition at line 45 of file RooDataHistSliceIter.cxx.

Member Function Documentation

◆ GetCollection()

const TCollection * RooDataHistSliceIter::GetCollection ( ) const
virtual

Dummy.

Implements TIterator.

Definition at line 103 of file RooDataHistSliceIter.cxx.

◆ Next()

TObject * RooDataHistSliceIter::Next ( )
virtual

Iterator increment operator.

Implements TIterator.

Definition at line 114 of file RooDataHistSliceIter.cxx.

◆ operator!=()

bool RooDataHistSliceIter::operator!= ( const TIterator aIter) const
virtual

Returns true if position of this iterator differs from position of iterator 'aIter'.

Reimplemented from TIterator.

Definition at line 158 of file RooDataHistSliceIter.cxx.

◆ operator*()

TObject * RooDataHistSliceIter::operator* ( ) const
virtual

Iterator dereference operator, not functional for this iterator.

Reimplemented from TIterator.

Definition at line 144 of file RooDataHistSliceIter.cxx.

◆ operator=()

TIterator & RooDataHistSliceIter::operator= ( const TIterator )
inlineprotectedvirtual

Reimplemented from TIterator.

Definition at line 50 of file RooDataHistSliceIter.h.

◆ Reset()

void RooDataHistSliceIter::Reset ( void  )
virtual

Reset iterator position to beginning.

Implements TIterator.

Definition at line 134 of file RooDataHistSliceIter.cxx.

Friends And Related Function Documentation

◆ RooDataHist

friend class RooDataHist
friend

Definition at line 40 of file RooDataHistSliceIter.h.

Member Data Documentation

◆ _baseIndex

Int_t RooDataHistSliceIter::_baseIndex
protected

Definition at line 45 of file RooDataHistSliceIter.h.

◆ _curStep

Int_t RooDataHistSliceIter::_curStep
protected

Definition at line 48 of file RooDataHistSliceIter.h.

◆ _hist

RooDataHist* RooDataHistSliceIter::_hist
protected

Definition at line 43 of file RooDataHistSliceIter.h.

◆ _nStep

Int_t RooDataHistSliceIter::_nStep
protected

Definition at line 47 of file RooDataHistSliceIter.h.

◆ _sliceArg

RooAbsArg* RooDataHistSliceIter::_sliceArg
protected

Definition at line 44 of file RooDataHistSliceIter.h.

◆ _stepSize

Int_t RooDataHistSliceIter::_stepSize
protected

Definition at line 46 of file RooDataHistSliceIter.h.

Libraries for RooDataHistSliceIter:
[legend]

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