7 #ifndef AIDA_IHISTOGRAM2D_H
8 #define AIDA_IHISTOGRAM2D_H 1
15 #include "AIDA/IHistogram.h"
43 virtual bool fill(
double x,
double y,
double weight = 1.) = 0;
52 virtual double binMeanX(
int indexX,
int indexY)
const = 0;
61 virtual double binMeanY(
int indexX,
int indexY)
const = 0;
70 virtual int binEntries(
int indexX,
int indexY)
const = 0;
97 virtual double binHeight(
int indexX,
int indexY)
const = 0;
106 virtual double binHeightX(
int index)
const = 0;
115 virtual double binHeightY(
int index)
const = 0;
124 virtual double binError(
int indexX,
int indexY)
const = 0;
131 virtual double meanX()
const = 0;
138 virtual double meanY()
const = 0;
145 virtual double rmsX()
const = 0;
152 virtual double rmsY()
const = 0;
virtual bool fill(double x, double y, double weight=1.)=0
Fill the IHistogram2D with a couple of values and the corresponding weight.
virtual ~IHistogram2D()
Destructor.
Definition: IHistogram2D.h:32
virtual double rmsX() const =0
The RMS of the IHistogram2D along the x axis.
virtual int coordToIndexY(double coord) const =0
Get the bin number corresponding to a given coordinate along the y axis.
virtual double rmsY() const =0
The RMS of the IHistogram2D along the y axis.
virtual double binHeight(int indexX, int indexY) const =0
Total height of a give bin (ie the sum of the weights in this bin).
virtual double binError(int indexX, int indexY) const =0
The error of a given bin.
virtual int binEntriesX(int index) const =0
Sum of all the entries of the bins along a given x bin.
virtual double binHeightY(int index) const =0
Sum of all the heights of the bins along a given y bin.
An IAxis represents a binned histogram axis.
Definition: IAxis.h:26
virtual double meanY() const =0
The mean of the IHistogram2D along the y axis.
virtual int binEntries(int indexX, int indexY) const =0
Number of entries in the corresponding bin (ie the number of times fill was called for this bin)...
virtual double binMeanX(int indexX, int indexY) const =0
The weighted mean along the x axis of a given bin.
virtual double meanX() const =0
The mean of the IHistogram2D along the x axis.
User level interface to 2D Histogram.
Definition: IHistogram2D.h:28
virtual bool add(const IHistogram2D &hist)=0
Add to this IHistogram2D the contents of another IHistogram2D.
virtual int coordToIndexX(double coord) const =0
Get the bin number corresponding to a given coordinate along the x axis.
virtual int binEntriesY(int index) const =0
Sum of all the entries of the bins along a given y bin.
virtual const IAxis & yAxis() const =0
Get the y axis of the IHistogram2D.
virtual double binHeightX(int index) const =0
Sum of all the heights of the bins along a given x bin.
virtual double binMeanY(int indexX, int indexY) const =0
The weighted mean along the y axis of a given bin.
virtual const IAxis & xAxis() const =0
Get the x axis of the IHistogram2D.
User level interface to Histogram.
Definition: IHistogram.h:26