Logo ROOT   6.08/07
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 "Riosfwd.h"
20 #include "TIterator.h"
21 #include "RooArgSet.h"
22 #include "TObjString.h"
23 class RooDataHist ;
24 
25 typedef TIterator* pTIterator ;
26 
28 public:
29  // Constructors, assignment etc.
31  virtual ~RooDataHistSliceIter() ;
32 
33  // Iterator implementation
34  virtual const TCollection* GetCollection() const ;
35  virtual TObject* Next() ;
36  virtual void Reset() ;
37  virtual bool operator!=(const TIterator &aIter) const ;
38  virtual TObject *operator*() const ;
39 protected:
40 
41  friend class RooDataHist ;
42  RooDataHistSliceIter(RooDataHist& hist, RooAbsArg& sliceArg) ;
43 
50 
52  // Prohibit iterator assignment
53  return *this ;
54  }
55 
56  ClassDef(RooDataHistSliceIter,0) // Iterator over a one-dimensional slice of a RooDataHist
57 };
58 
59 #endif
TIterator & operator=(const TIterator &)
TIterator * pTIterator
virtual bool operator!=(const TIterator &aIter) const
Returns true if position of this iterator differs from position of iterator 'aIter'.
int Int_t
Definition: RtypesCore.h:41
Iterator abstract base class.
Definition: TIterator.h:32
virtual TObject * operator*() const
Iterator dereference operator, not functional for this iterator.
virtual const TCollection * GetCollection() const
Dummy.
virtual TObject * Next()
Iterator increment operator.
RooDataSet is a container class to hold N-dimensional binned data.
Definition: RooDataHist.h:40
#define ClassDef(name, id)
Definition: Rtypes.h:254
Collection abstract base class.
Definition: TCollection.h:48
Mother of all ROOT objects.
Definition: TObject.h:37
RooDataHistSliceIter(const RooDataHistSliceIter &other)
Copy constructor.
RooDataHistSliceIter iterates over all bins in a RooDataHist that occur in a slice defined by the bin...
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
Definition: RooAbsArg.h:66
virtual void Reset()
Reset iterator position to beginning.
virtual ~RooDataHistSliceIter()
Destructor.