RAIDA  1.9.0
Public Member Functions | List of all members
AIDA::IHistogram2D Class Referenceabstract

User level interface to 2D Histogram. More...

#include <IHistogram2D.h>

Inheritance diagram for AIDA::IHistogram2D:
AIDA::IHistogram AIDA::IBaseHistogram AIDA::IHistogram2DROOT

Public Member Functions

virtual ~IHistogram2D ()
 Destructor.
 
virtual bool fill (double x, double y, double weight=1.)=0
 Fill the IHistogram2D with a couple of values and the corresponding weight. More...
 
virtual double binMeanX (int indexX, int indexY) const =0
 The weighted mean along the x axis of a given bin. More...
 
virtual double binMeanY (int indexX, int indexY) const =0
 The weighted mean along the y axis of a given bin. More...
 
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). More...
 
virtual int binEntriesX (int index) const =0
 Sum of all the entries of the bins along a given x bin. More...
 
virtual int binEntriesY (int index) const =0
 Sum of all the entries of the bins along a given y bin. More...
 
virtual double binHeight (int indexX, int indexY) const =0
 Total height of a give bin (ie the sum of the weights in this bin). More...
 
virtual double binHeightX (int index) const =0
 Sum of all the heights of the bins along a given x bin. More...
 
virtual double binHeightY (int index) const =0
 Sum of all the heights of the bins along a given y bin. More...
 
virtual double binError (int indexX, int indexY) const =0
 The error of a given bin. More...
 
virtual double meanX () const =0
 The mean of the IHistogram2D along the x axis. More...
 
virtual double meanY () const =0
 The mean of the IHistogram2D along the y axis. More...
 
virtual double rmsX () const =0
 The RMS of the IHistogram2D along the x axis. More...
 
virtual double rmsY () const =0
 The RMS of the IHistogram2D along the y axis. More...
 
virtual const IAxisxAxis () const =0
 Get the x axis of the IHistogram2D. More...
 
virtual const IAxisyAxis () const =0
 Get the y axis of the IHistogram2D. More...
 
virtual int coordToIndexX (double coord) const =0
 Get the bin number corresponding to a given coordinate along the x axis. More...
 
virtual int coordToIndexY (double coord) const =0
 Get the bin number corresponding to a given coordinate along the y axis. More...
 
virtual bool add (const IHistogram2D &hist)=0
 Add to this IHistogram2D the contents of another IHistogram2D. More...
 
- Public Member Functions inherited from AIDA::IHistogram
virtual ~IHistogram ()
 Destructor.
 
virtual int allEntries () const =0
 Sum of the entries in all the IHistogram's bins, i.e in-range bins, UNDERFLOW and OVERFLOW. More...
 
virtual int extraEntries () const =0
 Number of entries in the UNDERFLOW and OVERFLOW bins. More...
 
virtual double sumBinHeights () const =0
 Number of equivalent entries, i.e. More...
 
virtual double sumAllBinHeights () const =0
 Sum of the heights of all the IHistogram's bins, i.e in-range bins, UNDERFLOW and OVERFLOW. More...
 
virtual double sumExtraBinHeights () const =0
 Sum of heights in the UNDERFLOW and OVERFLOW bins. More...
 
virtual double minBinHeight () const =0
 Minimum height of the in-range bins, i.e. More...
 
virtual double maxBinHeight () const =0
 Maximum height of the in-range bins, i.e. More...
 
virtual bool scale (double scaleFactor)=0
 Scale the weights and the errors of all the IHistogram's bins (in-range and out-of-range ones) by a given scale factor. More...
 
- Public Member Functions inherited from AIDA::IBaseHistogram
virtual ~IBaseHistogram ()
 Destructor.
 
virtual std::string title () const =0
 Get the Histogram's title. More...
 
virtual bool setTitle (const std::string &title)=0
 Set the histogram title. More...
 
virtual int dimension () const =0
 Get the IAnnotation associated with the Histogram. More...
 
virtual bool reset ()=0
 Reset the Histogram; as if just created. More...
 
virtual int entries () const =0
 Get the number of in-range entries in the Histogram. More...
 

Detailed Description

User level interface to 2D Histogram.

Author
The AIDA team (http://aida.freehep.org/)

Member Function Documentation

virtual bool AIDA::IHistogram2D::add ( const IHistogram2D hist)
pure virtual

Add to this IHistogram2D the contents of another IHistogram2D.

Parameters
histThe IHistogram2D to be added to this IHistogram2D.
Returns
false If the IHistogram2Ds binnings are incompatible.

Implemented in AIDA::IHistogram2DROOT.

Referenced by AIDA::IHistogramFactoryROOT::add().

virtual int AIDA::IHistogram2D::binEntries ( int  indexX,
int  indexY 
) const
pure virtual

Number of entries in the corresponding bin (ie the number of times fill was called for this bin).

Parameters
indexXThe x bin number (0...N-1) or OVERFLOW or UNDERFLOW.
indexYThe y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The number of entries in the corresponding bin.

Implemented in AIDA::IHistogram2DROOT.

virtual int AIDA::IHistogram2D::binEntriesX ( int  index) const
pure virtual

Sum of all the entries of the bins along a given x bin.

This is equivalent to projectionX().binEntries(index).

Parameters
indexThe x bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The number of entries in the corresponding set of bins.

Implemented in AIDA::IHistogram2DROOT.

virtual int AIDA::IHistogram2D::binEntriesY ( int  index) const
pure virtual

Sum of all the entries of the bins along a given y bin.

This is equivalent to projectionY().binEntries(index).

Parameters
indexThe y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The number of entries in the corresponding set of bins.

Implemented in AIDA::IHistogram2DROOT.

virtual double AIDA::IHistogram2D::binError ( int  indexX,
int  indexY 
) const
pure virtual

The error of a given bin.

Parameters
indexXThe x bin number (0...N-1) or OVERFLOW or UNDERFLOW.
indexYThe y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The error on the corresponding bin.

Implemented in AIDA::IHistogram2DROOT.

virtual double AIDA::IHistogram2D::binHeight ( int  indexX,
int  indexY 
) const
pure virtual

Total height of a give bin (ie the sum of the weights in this bin).

Parameters
indexXThe x bin number (0...N-1) or OVERFLOW or UNDERFLOW.
indexYThe y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The height of the corresponding bin.

Implemented in AIDA::IHistogram2DROOT.

virtual double AIDA::IHistogram2D::binHeightX ( int  index) const
pure virtual

Sum of all the heights of the bins along a given x bin.

This is equivalent to projectionX().binHeight(index).

Parameters
indexThe x bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The sum of the heights in the corresponding set of bins.

Implemented in AIDA::IHistogram2DROOT.

virtual double AIDA::IHistogram2D::binHeightY ( int  index) const
pure virtual

Sum of all the heights of the bins along a given y bin.

This is equivalent to projectionY().binHeight(index).

Parameters
indexThe y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The sum of the heights in the corresponding set of bins.

Implemented in AIDA::IHistogram2DROOT.

virtual double AIDA::IHistogram2D::binMeanX ( int  indexX,
int  indexY 
) const
pure virtual

The weighted mean along the x axis of a given bin.

Parameters
indexXThe x bin number (0...N-1) or OVERFLOW or UNDERFLOW.
indexYThe y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The mean of the corresponding bin along the x axis.

Implemented in AIDA::IHistogram2DROOT.

virtual double AIDA::IHistogram2D::binMeanY ( int  indexX,
int  indexY 
) const
pure virtual

The weighted mean along the y axis of a given bin.

Parameters
indexXThe x bin number (0...N-1) or OVERFLOW or UNDERFLOW.
indexYThe y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The mean of the corresponding bin along the y axis.

Implemented in AIDA::IHistogram2DROOT.

virtual int AIDA::IHistogram2D::coordToIndexX ( double  coord) const
pure virtual

Get the bin number corresponding to a given coordinate along the x axis.

This is a convenience method, equivalent to xAxis().coordToIndex(coord).

See Also
IAxis::coordToIndex(double)
Parameters
coordThe coordinalte along the x axis.
Returns
The corresponding bin number.

Implemented in AIDA::IHistogram2DROOT.

virtual int AIDA::IHistogram2D::coordToIndexY ( double  coord) const
pure virtual

Get the bin number corresponding to a given coordinate along the y axis.

This is a convenience method, equivalent to yAxis().coordToIndex(coord).

See Also
IAxis::coordToIndex(double)
Parameters
coordThe coordinalte along the y axis.
Returns
The corresponding bin number.

Implemented in AIDA::IHistogram2DROOT.

virtual bool AIDA::IHistogram2D::fill ( double  x,
double  y,
double  weight = 1. 
)
pure virtual

Fill the IHistogram2D with a couple of values and the corresponding weight.

Parameters
xThe x value to be filled in.
yThe y value to be filled in.
weightThe corresponding weight (by default 1).
Returns
false If the weight is <0 or >1 (?).

Implemented in AIDA::IHistogram2DROOT.

Referenced by AIDA::ICloud2DROOT::fill(), and AIDA::ICloud2DROOT::fillHistogram().

virtual double AIDA::IHistogram2D::meanX ( ) const
pure virtual

The mean of the IHistogram2D along the x axis.

Returns
The mean of the IHistogram2D along the x axis.

Implemented in AIDA::IHistogram2DROOT.

Referenced by AIDA::ICloud2DROOT::meanX().

virtual double AIDA::IHistogram2D::meanY ( ) const
pure virtual

The mean of the IHistogram2D along the y axis.

Returns
The mean of the IHistogram2D along the y axis.

Implemented in AIDA::IHistogram2DROOT.

Referenced by AIDA::ICloud2DROOT::meanY().

virtual double AIDA::IHistogram2D::rmsX ( ) const
pure virtual

The RMS of the IHistogram2D along the x axis.

Returns
The RMS if the IHistogram2D along the x axis.

Implemented in AIDA::IHistogram2DROOT.

Referenced by AIDA::ICloud2DROOT::rmsX().

virtual double AIDA::IHistogram2D::rmsY ( ) const
pure virtual

The RMS of the IHistogram2D along the y axis.

Returns
The RMS if the IHistogram2D along the y axis.

Implemented in AIDA::IHistogram2DROOT.

Referenced by AIDA::ICloud2DROOT::rmsY().

virtual const IAxis& AIDA::IHistogram2D::xAxis ( ) const
pure virtual
virtual const IAxis& AIDA::IHistogram2D::yAxis ( ) const
pure virtual

The documentation for this class was generated from the following file: