RAIDA
1.9.0
|
User level interface to 2D Histogram. More...
#include <IHistogram2D.h>
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 IAxis & | xAxis () const =0 |
Get the x axis of the IHistogram2D. More... | |
virtual const IAxis & | yAxis () 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... | |
User level interface to 2D Histogram.
|
pure virtual |
Add to this IHistogram2D the contents of another IHistogram2D.
hist | The IHistogram2D to be added to this IHistogram2D. |
Implemented in AIDA::IHistogram2DROOT.
Referenced by AIDA::IHistogramFactoryROOT::add().
|
pure virtual |
Number of entries in the corresponding bin (ie the number of times fill was called for this bin).
indexX | The x bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
indexY | The y bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
Implemented in AIDA::IHistogram2DROOT.
|
pure virtual |
Sum of all the entries of the bins along a given x bin.
This is equivalent to projectionX().binEntries(index)
.
index | The x bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
Implemented in AIDA::IHistogram2DROOT.
|
pure virtual |
Sum of all the entries of the bins along a given y bin.
This is equivalent to projectionY().binEntries(index)
.
index | The y bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
Implemented in AIDA::IHistogram2DROOT.
|
pure virtual |
The error of a given bin.
indexX | The x bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
indexY | The y bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
Implemented in AIDA::IHistogram2DROOT.
|
pure virtual |
Total height of a give bin (ie the sum of the weights in this bin).
indexX | The x bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
indexY | The y bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
Implemented in AIDA::IHistogram2DROOT.
|
pure virtual |
Sum of all the heights of the bins along a given x bin.
This is equivalent to projectionX().binHeight(index)
.
index | The x bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
Implemented in AIDA::IHistogram2DROOT.
|
pure virtual |
Sum of all the heights of the bins along a given y bin.
This is equivalent to projectionY().binHeight(index)
.
index | The y bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
Implemented in AIDA::IHistogram2DROOT.
|
pure virtual |
The weighted mean along the x axis of a given bin.
indexX | The x bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
indexY | The y bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
Implemented in AIDA::IHistogram2DROOT.
|
pure virtual |
The weighted mean along the y axis of a given bin.
indexX | The x bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
indexY | The y bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
Implemented in AIDA::IHistogram2DROOT.
|
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)
.
coord | The coordinalte along the x axis. |
Implemented in AIDA::IHistogram2DROOT.
|
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)
.
coord | The coordinalte along the y axis. |
Implemented in AIDA::IHistogram2DROOT.
|
pure virtual |
Fill the IHistogram2D with a couple of values and the corresponding weight.
x | The x value to be filled in. |
y | The y value to be filled in. |
weight | The corresponding weight (by default 1). |
Implemented in AIDA::IHistogram2DROOT.
Referenced by AIDA::ICloud2DROOT::fill(), and AIDA::ICloud2DROOT::fillHistogram().
|
pure virtual |
The mean of the IHistogram2D along the x axis.
Implemented in AIDA::IHistogram2DROOT.
Referenced by AIDA::ICloud2DROOT::meanX().
|
pure virtual |
The mean of the IHistogram2D along the y axis.
Implemented in AIDA::IHistogram2DROOT.
Referenced by AIDA::ICloud2DROOT::meanY().
|
pure virtual |
The RMS of the IHistogram2D along the x axis.
Implemented in AIDA::IHistogram2DROOT.
Referenced by AIDA::ICloud2DROOT::rmsX().
|
pure virtual |
The RMS of the IHistogram2D along the y axis.
Implemented in AIDA::IHistogram2DROOT.
Referenced by AIDA::ICloud2DROOT::rmsY().
|
pure virtual |
Get the x axis of the IHistogram2D.
Implemented in AIDA::IHistogram2DROOT.
Referenced by AIDA::IHistogram2DROOT::add(), AIDA::IHistogramFactoryROOT::add(), AIDA::IHistogramFactoryROOT::createCopy(), AIDA::IHistogramFactoryROOT::divide(), AIDA::IHistogramFactoryROOT::multiply(), and AIDA::IHistogramFactoryROOT::subtract().
|
pure virtual |
Get the y axis of the IHistogram2D.
Implemented in AIDA::IHistogram2DROOT.
Referenced by AIDA::IHistogram2DROOT::add(), AIDA::IHistogramFactoryROOT::add(), AIDA::IHistogramFactoryROOT::createCopy(), AIDA::IHistogramFactoryROOT::divide(), AIDA::IHistogramFactoryROOT::multiply(), and AIDA::IHistogramFactoryROOT::subtract().