Logo ROOT  
Reference Guide
RooDataHistSliceIter.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id$
5  * Authors: *
6  * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7  * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8  * *
9  * Copyright (c) 2000-2005, Regents of the University of California *
10  * and Stanford University. All rights reserved. *
11  * *
12  * Redistribution and use in source and binary forms, *
13  * with or without modification, are permitted according to the terms *
14  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15  *****************************************************************************/
16 #ifndef ROO_DATA_HIST_SLICE_ITER
17 #define ROO_DATA_HIST_SLICE_ITER
18 
19 #include "TIterator.h"
20 #include "RooArgSet.h"
21 
22 class RooDataHist;
23 
25 
27 public:
28  // Constructors, assignment etc.
30  virtual ~RooDataHistSliceIter() ;
31 
32  // Iterator implementation
33  virtual const TCollection* GetCollection() const ;
34  virtual TObject* Next() ;
35  virtual void Reset() ;
36  virtual bool operator!=(const TIterator &aIter) const ;
37  virtual TObject *operator*() const ;
38 protected:
39 
40  friend class RooDataHist ;
41  RooDataHistSliceIter(RooDataHist& hist, RooAbsArg& sliceArg) ;
42 
49 
51  // Prohibit iterator assignment
52  return *this ;
53  }
54 
55  ClassDef(RooDataHistSliceIter,0) // Iterator over a one-dimensional slice of a RooDataHist
56 };
57 
58 #endif
RooDataHistSliceIter::RooDataHistSliceIter
RooDataHistSliceIter(const RooDataHistSliceIter &other)
Copy constructor.
Definition: RooDataHistSliceIter.cxx:78
RooArgSet.h
RooDataHistSliceIter::operator!=
virtual bool operator!=(const TIterator &aIter) const
Returns true if position of this iterator differs from position of iterator 'aIter'.
Definition: RooDataHistSliceIter.cxx:158
RooDataHistSliceIter::_curStep
Int_t _curStep
Definition: RooDataHistSliceIter.h:48
RooDataHistSliceIter
RooDataHistSliceIter iterates over all bins in a RooDataHist that occur in a slice defined by the bin...
Definition: RooDataHistSliceIter.h:26
RooDataHistSliceIter::_sliceArg
RooAbsArg * _sliceArg
Definition: RooDataHistSliceIter.h:44
RooDataHistSliceIter::operator=
TIterator & operator=(const TIterator &)
Definition: RooDataHistSliceIter.h:50
RooDataHistSliceIter::_stepSize
Int_t _stepSize
Definition: RooDataHistSliceIter.h:46
RooDataHistSliceIter::_hist
RooDataHist * _hist
Definition: RooDataHistSliceIter.h:43
RooDataHistSliceIter::operator*
virtual TObject * operator*() const
Iterator dereference operator, not functional for this iterator.
Definition: RooDataHistSliceIter.cxx:144
TIterator
Iterator abstract base class.
Definition: TIterator.h:30
RooDataHistSliceIter::~RooDataHistSliceIter
virtual ~RooDataHistSliceIter()
Destructor.
Definition: RooDataHistSliceIter.cxx:94
RooDataHistSliceIter::GetCollection
virtual const TCollection * GetCollection() const
Dummy.
Definition: RooDataHistSliceIter.cxx:103
RooDataHistSliceIter::_baseIndex
Int_t _baseIndex
Definition: RooDataHistSliceIter.h:45
RooDataHist
The RooDataHist is a container class to hold N-dimensional binned data.
Definition: RooDataHist.h:39
RooDataHistSliceIter::Reset
virtual void Reset()
Reset iterator position to beginning.
Definition: RooDataHistSliceIter.cxx:134
TIterator.h
pTIterator
TIterator * pTIterator
Definition: RooDataHistSliceIter.h:22
RooDataHistSliceIter::_nStep
Int_t _nStep
Definition: RooDataHistSliceIter.h:47
RooDataHistSliceIter::Next
virtual TObject * Next()
Iterator increment operator.
Definition: RooDataHistSliceIter.cxx:114
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooAbsArg
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
Definition: RooAbsArg.h:72
TCollection
Collection abstract base class.
Definition: TCollection.h:63
int