#ifndef ROO_UNIFORM_BINNING
#define ROO_UNIFORM_BINNING
#include "Rtypes.h"
#include "RooAbsBinning.h"
class TIterator ;
class RooUniformBinning : public RooAbsBinning {
public:
RooUniformBinning(const char* name=0) ;
RooUniformBinning(Double_t xlo, Double_t xhi, Int_t nBins, const char* name=0) ;
RooUniformBinning(const RooUniformBinning& other, const char* name=0) ;
RooAbsBinning* clone(const char* name=0) const { return new RooUniformBinning(*this,name?name:GetName()) ; }
virtual ~RooUniformBinning() ;
virtual void setRange(Double_t xlo, Double_t xhi) ;
virtual Int_t numBoundaries() const { return _nbins + 1 ; }
virtual Int_t binNumber(Double_t x) const ;
virtual Double_t lowBound() const { return _xlo ; }
virtual Double_t highBound() const { return _xhi ; }
virtual Double_t binCenter(Int_t bin) const ;
virtual Double_t binWidth(Int_t bin) const ;
virtual Double_t binLow(Int_t bin) const ;
virtual Double_t binHigh(Int_t bin) const ;
virtual Double_t averageBinWidth() const { return _binw ; }
virtual Double_t* array() const ;
protected:
mutable Double_t* _array ;
Double_t _xlo ;
Double_t _xhi ;
Int_t _nbins ;
Double_t _binw ;
ClassDef(RooUniformBinning,1)
};
#endif
Last change: Wed Jun 25 08:34:30 2008
Last generated: 2008-06-25 08:34
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.