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
22class RooDataHist;
23
25
27public:
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 ;
38protected:
39
40 friend class RooDataHist ;
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 * pTIterator
#define ClassDef(name, id)
Definition: Rtypes.h:322
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
Definition: RooAbsArg.h:73
RooDataHistSliceIter iterates over all bins in a RooDataHist that occur in a slice defined by the bin...
RooDataHistSliceIter(const RooDataHistSliceIter &other)
Copy constructor.
TIterator & operator=(const TIterator &)
virtual ~RooDataHistSliceIter()
Destructor.
virtual TObject * Next()
Iterator increment operator.
virtual bool operator!=(const TIterator &aIter) const
Returns true if position of this iterator differs from position of iterator 'aIter'.
virtual void Reset()
Reset iterator position to beginning.
virtual const TCollection * GetCollection() const
Dummy.
virtual TObject * operator*() const
Iterator dereference operator, not functional for this iterator.
The RooDataHist is a container class to hold N-dimensional binned data.
Definition: RooDataHist.h:40
Collection abstract base class.
Definition: TCollection.h:63
Iterator abstract base class.
Definition: TIterator.h:30
Mother of all ROOT objects.
Definition: TObject.h:37