/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 *    File: $Id: RooDataHistSliceIter.h 21379 2007-12-14 15:12:29Z wouter $
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/
#ifndef ROO_DATA_HIST_SLICE_ITER
#define ROO_DATA_HIST_SLICE_ITER

#include "Riosfwd.h"
#include "TIterator.h"
#include "RooArgSet.h"
#include "TObjString.h"
class RooDataHist ;

typedef TIterator* pTIterator ;

class RooDataHistSliceIter : public TIterator {
public:
  // Constructors, assignment etc.
  RooDataHistSliceIter(const RooDataHistSliceIter& other) ;
  virtual ~RooDataHistSliceIter() ;

  // Iterator implementation
  virtual const TCollection* GetCollection() const ;
  virtual TObject* Next() ;
  virtual void Reset() ;

protected:
  
  friend class RooDataHist ;
  RooDataHistSliceIter(RooDataHist& hist, RooAbsArg& sliceArg) ;

  RooDataHist* _hist ;
  RooAbsArg* _sliceArg ;  
  Int_t      _baseIndex ;
  Int_t      _stepSize ;
  Int_t      _nStep ;
  Int_t      _curStep ;
  
  TIterator& operator=(const TIterator&) { return *this ; } // forbidden for now


  ClassDef(RooDataHistSliceIter,0) // Iterator over a one-dimensional slice of a RooDataHist
};

#endif

Last update: Thu Jan 17 08:44:25 2008

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.