Logo ROOT   6.14/05
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 #include "TObjString.h"
22 class RooDataHist ;
23 
24 typedef TIterator* pTIterator ;
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
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:30
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:320
Collection abstract base class.
Definition: TCollection.h:63
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.