#ifndef ROO_ABS_BINNING
#define ROO_ABS_BINNING
#include "Rtypes.h"
#include "RooPrintable.h"
#include "TNamed.h"
class TIterator ;
class RooAbsRealLValue ;
class RooAbsReal ;
class RooAbsBinning : public TNamed, public RooPrintable {
public:
RooAbsBinning(const char* name=0) ;
RooAbsBinning(const RooAbsBinning& other, const char* name=0) : TNamed(name,name), RooPrintable(other) {
}
virtual TObject* Clone(const char* newname=0) const { return clone(newname) ; }
virtual RooAbsBinning* clone(const char* name=0) const = 0 ;
virtual ~RooAbsBinning() ;
Int_t numBins() const {
return numBoundaries()-1 ;
}
virtual Int_t numBoundaries() const = 0 ;
virtual Int_t binNumber(Double_t x) const = 0 ;
virtual Double_t binCenter(Int_t bin) const = 0 ;
virtual Double_t binWidth(Int_t bin) const = 0 ;
virtual Double_t binLow(Int_t bin) const = 0 ;
virtual Double_t binHigh(Int_t bin) const = 0 ;
virtual void setRange(Double_t xlo, Double_t xhi) = 0 ;
virtual void setMin(Double_t xlo) {
setRange(xlo,highBound()) ;
}
virtual void setMax(Double_t xhi) {
setRange(lowBound(),xhi) ;
}
virtual Double_t lowBound() const = 0 ;
virtual Double_t highBound() const = 0 ;
virtual Double_t averageBinWidth() const = 0 ;
virtual Double_t* array() const = 0 ;
inline virtual void Print(Option_t *options= 0) const {
printStream(defaultPrintStream(),defaultPrintContents(options),defaultPrintStyle(options));
}
virtual void printName(ostream& os) const ;
virtual void printTitle(ostream& os) const ;
virtual void printClassName(ostream& os) const ;
virtual void printArgs(ostream& os) const ;
virtual void printValue(ostream& os) const ;
virtual Bool_t isParameterized() const {
return kFALSE ;
}
virtual RooAbsReal* lowBoundFunc() const {
return 0 ;
}
virtual RooAbsReal* highBoundFunc() const {
return 0 ;
}
virtual Bool_t isShareable() const {
return kTRUE ;
}
virtual void insertHook(RooAbsRealLValue&) const {
} ;
virtual void removeHook(RooAbsRealLValue&) const {
} ;
protected:
ClassDef(RooAbsBinning,2)
};
#endif
Last change: Wed Jun 25 08:31:28 2008
Last generated: 2008-06-25 08:31
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.