41 void binNumbers(
double const *
x,
int * bins, std::size_t
n,
int coef)
const override;
44 void setRange(
double xlo,
double xhi)
override;
60 double*
array()
const override;
#define ClassDefOverride(name, id)
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
Int_t numBins() const
Return number of bins.
Abstract interface for all probability density functions.
Class RooBinning is an implements RooAbsBinning in terms of an array of boundary values,...
double binLow(Int_t bin) const override
Return the lower bound of the requested bin.
double * array() const override
Return array of boundary values.
void updateBinCount()
Update the internal bin counter.
double highBound() const override
Return the upper bound value.
Int_t _blo
! bin number for _xlo
std::vector< double > _boundaries
Boundaries.
Int_t numBoundaries() const override
Return the number boundaries.
double averageBinWidth() const override
Return the average bin width.
~RooBinning() override
Destructor.
bool addBoundary(double boundary)
Add bin boundary at given value.
void binNumbers(double const *x, int *bins, std::size_t n, int coef) const override
Return sequential bin number that contains value x where bin zero is the first bin with an upper boun...
void addUniform(Int_t nBins, double xlo, double xhi)
Add array of nbins uniformly sized bins in range [xlo,xhi].
double binCenter(Int_t bin) const override
Return the position of the center of bin 'bin'.
RooAbsBinning * clone(const char *name=nullptr) const override
double binHigh(Int_t bin) const override
Return the upper bound of the requested bin.
bool _ownBoundHi
Does the upper bound coincide with a bin boundary.
double * _array
! Array of boundaries
double binWidth(Int_t bin) const override
Return the width of the requested bin.
Int_t _nbins
Number of bins.
void addBoundaryPair(double boundary, double mirrorPoint=0)
Add pair of boundaries: one at 'boundary' and one at 2*mirrorPoint-boundary.
bool _ownBoundLo
Does the lower bound coincide with a bin boundary.
double lowBound() const override
Return the lower bound value.
bool removeBoundary(double boundary)
Remove boundary at given value.
virtual double nearestBoundary(double x) const
Return the value of the nearest boundary to x.
bool binEdges(Int_t bin, double &xlo, double &xhi) const
Return upper and lower bound of bin 'bin'.
void setRange(double xlo, double xhi) override
Change the defined range associated with this binning.
static constexpr double infinity()
Return internal infinity representation.
RooRealVar represents a variable that can be changed from the outside.
const char * GetName() const override
Returns name of object.