Revision df96d2ad688832a6c0a6a9186d26a850558254bd authored by Rene Brun on 01 February 2002, 06:55:05 UTC, committed by Rene Brun on 01 February 2002, 06:55:05 UTC

git-svn-id: http://root.cern.ch/svn/root/trunk@3824 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 9ba9693
Raw File
RooCatBinIter.rdl
/*****************************************************************************
 * Project: BaBar detector at the SLAC PEP-II B-factory
 * Package: RooFitCore
 *    File: $Id$
 * Authors:
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu
 *   DK, David Kirkby, Stanford University, kirkby@hep.stanford.edu
 * History:
 *   16-Aug-2001 WV Created initial version
 *
 * Copyright (C) 2001 University of California
 *****************************************************************************/
#ifndef ROO_CAT_BIN_ITER
#define ROO_CAT_BIN_ITER

#include <iostream.h>
#include "RooFitCore/RooAbsArg.hh"
#include "RooFitCore/RooAbsBinIter.hh"

class RooCatBinIter : public RooAbsBinIter {
public:

  // Constructors, assignment etc.
  RooCatBinIter(const RooAbsArg& arg) ;
  RooCatBinIter(const RooCatBinIter& other) ;
  virtual ~RooCatBinIter() ;

  // Iterator implementation
  virtual RooAbsArg* next() ;
  inline void reset() ; 
  
  virtual Double_t currentCenter() const ;
  virtual Double_t currentLow() const  ;
  virtual Double_t currentHigh() const ;

protected:

  RooAbsArg* _arg ;
  Int_t _curBin ;

  ClassDef(RooCatBinIter,0) // Iterator over all bins of a RooAbsCategory
};

#endif
back to top