RAIDA
1.9.0
|
#include <IHistogram2DROOT.h>
Public Member Functions | |
virtual | ~IHistogram2DROOT () |
Destructor. | |
IHistogram2DROOT () | |
Constructor. | |
IHistogram2DROOT (const std::string &name, const std::string &title, int nBinsX, double lowerEdgeX, double upperEdgeX, int nBinsY, double lowerEdgeY, double upperEdgeY, const std::string &options="") | |
IHistogram2DROOT (const std::string &name, const std::string &title, const std::vector< double > &binEdgesX, const std::vector< double > &binEdgesY, const std::string &options="") | |
IHistogram2DROOT (const std::string &name, const IHistogram2DROOT &hist) | |
IHistogram2DROOT (const std::string &name, const IHistogram3DROOT &hist, std::string axis, int lowerBin=-2, int upperBin=-1) | |
virtual bool | fill (double x, double y, double weight=1.) |
Fill the IHistogram2D with a couple of values and the corresponding weight. More... | |
virtual double | binMeanX (int indexX, int indexY) const |
The weighted mean along the x axis of a given bin. More... | |
virtual double | binMeanY (int indexX, int indexY) const |
The weighted mean along the y axis of a given bin. More... | |
virtual int | binEntries (int indexX, int indexY) const |
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 |
Sum of all the entries of the bins along a given x bin. More... | |
virtual int | binEntriesY (int index) const |
Sum of all the entries of the bins along a given y bin. More... | |
virtual double | binHeight (int indexX, int indexY) const |
Total height of a give bin (ie the sum of the weights in this bin). More... | |
virtual double | binHeightX (int index) const |
Sum of all the heights of the bins along a given x bin. More... | |
virtual double | binHeightY (int index) const |
Sum of all the heights of the bins along a given y bin. More... | |
virtual double | binError (int indexX, int indexY) const |
The error of a given bin. More... | |
virtual double | meanX () const |
The mean of the IHistogram2D along the x axis. More... | |
virtual double | meanY () const |
The mean of the IHistogram2D along the y axis. More... | |
virtual double | rmsX () const |
The RMS of the IHistogram2D along the x axis. More... | |
virtual double | rmsY () const |
The RMS of the IHistogram2D along the y axis. More... | |
virtual const IAxis & | xAxis () const |
Get the x axis of the IHistogram2D. More... | |
virtual const IAxis & | yAxis () const |
Get the y axis of the IHistogram2D. More... | |
virtual int | coordToIndexX (double coord) const |
Get the bin number corresponding to a given coordinate along the x axis. More... | |
virtual int | coordToIndexY (double coord) const |
Get the bin number corresponding to a given coordinate along the y axis. More... | |
virtual bool | add (const IHistogram2D &hist) |
Add to this IHistogram2D the contents of another IHistogram2D. More... | |
virtual bool | subtract (const IHistogram2D &hist) |
virtual bool | multiply (const IHistogram2D &hist) |
virtual bool | divide (const IHistogram2D &hist) |
virtual std::string | title () const |
Get the Histogram's title. More... | |
virtual bool | setTitle (const std::string &title) |
Set the histogram title. More... | |
virtual bool | setName (const std::string &name) |
virtual int | dimension () const |
Get the IAnnotation associated with the Histogram. More... | |
virtual bool | reset () |
Reset the Histogram; as if just created. More... | |
virtual int | entries () const |
Get the number of in-range entries in the Histogram. More... | |
virtual int | allEntries () const |
See IManagedObject for a description. More... | |
virtual int | extraEntries () const |
Number of entries in the UNDERFLOW and OVERFLOW bins. More... | |
virtual double | sumBinHeights () const |
Number of equivalent entries, i.e. More... | |
virtual double | sumAllBinHeights () const |
Sum of the heights of all the IHistogram's bins, i.e in-range bins, UNDERFLOW and OVERFLOW. More... | |
virtual double | sumExtraBinHeights () const |
Sum of heights in the UNDERFLOW and OVERFLOW bins. More... | |
virtual double | minBinHeight () const |
Minimum height of the in-range bins, i.e. More... | |
virtual double | maxBinHeight () const |
Maximum height of the in-range bins, i.e. More... | |
virtual bool | scale (double scaleFactor) |
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... | |
virtual void | printContents () const |
Print out the contents of a histogram to the screen. More... | |
Public Member Functions inherited from AIDA::IHistogram2D | |
virtual | ~IHistogram2D () |
Destructor. | |
Public Member Functions inherited from AIDA::IHistogram | |
virtual | ~IHistogram () |
Destructor. | |
Public Member Functions inherited from AIDA::IBaseHistogram | |
virtual | ~IBaseHistogram () |
Destructor. | |
Friends | |
class | IHistogramFactoryROOT |
class | IHistogram1DROOT |
class IAxis;
User level interface to 2D Histogram.
|
virtual |
Add to this IHistogram2D the contents of another IHistogram2D.
hist | The IHistogram2D to be added to this IHistogram2D. |
Implements AIDA::IHistogram2D.
References AIDA::IAxis::bins(), AIDA::IHistogram2D::xAxis(), xAxis(), AIDA::IHistogram2D::yAxis(), and yAxis().
|
virtual |
See IManagedObject for a description.
className | The name of the class to cast on. |
Implements AIDA::IHistogram.
Referenced by printContents().
|
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. |
Implements AIDA::IHistogram2D.
References xAxis(), and yAxis().
Referenced by printContents().
|
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. |
Implements AIDA::IHistogram2D.
References xAxis().
Referenced by printContents().
|
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. |
Implements AIDA::IHistogram2D.
References yAxis().
Referenced by printContents().
|
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. |
Implements AIDA::IHistogram2D.
References xAxis(), and yAxis().
Referenced by printContents().
|
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. |
Implements AIDA::IHistogram2D.
References xAxis(), and yAxis().
Referenced by printContents().
|
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. |
Implements AIDA::IHistogram2D.
References xAxis().
Referenced by printContents().
|
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. |
Implements AIDA::IHistogram2D.
References yAxis().
Referenced by printContents().
|
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. |
Implements AIDA::IHistogram2D.
References xAxis(), and yAxis().
Referenced by printContents().
|
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. |
Implements AIDA::IHistogram2D.
References xAxis(), and yAxis().
Referenced by printContents().
|
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. |
Implements AIDA::IHistogram2D.
References xAxis().
|
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. |
Implements AIDA::IHistogram2D.
References yAxis().
|
virtual |
Get the IAnnotation associated with the Histogram.
Implements AIDA::IBaseHistogram.
|
virtual |
Get the number of in-range entries in the Histogram.
Implements AIDA::IBaseHistogram.
Referenced by printContents().
|
virtual |
Number of entries in the UNDERFLOW and OVERFLOW bins.
Implements AIDA::IHistogram.
Referenced by printContents().
|
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). |
Implements AIDA::IHistogram2D.
|
virtual |
Maximum height of the in-range bins, i.e.
not considering the UNDERFLOW and OVERFLOW bins.
Implements AIDA::IHistogram.
Referenced by printContents().
|
virtual |
The mean of the IHistogram2D along the x axis.
Implements AIDA::IHistogram2D.
Referenced by printContents().
|
virtual |
The mean of the IHistogram2D along the y axis.
Implements AIDA::IHistogram2D.
Referenced by printContents().
|
virtual |
Minimum height of the in-range bins, i.e.
not considering the UNDERFLOW and OVERFLOW bins.
Implements AIDA::IHistogram.
Referenced by printContents().
|
virtual |
Print out the contents of a histogram to the screen.
This method is made for debugging purposes. It is not part of the AIDA Interface!
References allEntries(), binEntries(), binEntriesX(), binEntriesY(), binError(), binHeight(), binHeightX(), binHeightY(), AIDA::IAxis::binLowerEdge(), binMeanX(), binMeanY(), AIDA::IAxis::bins(), entries(), extraEntries(), AIDA::IAxis::lowerEdge(), maxBinHeight(), meanX(), meanY(), minBinHeight(), rmsX(), rmsY(), sumAllBinHeights(), sumBinHeights(), sumExtraBinHeights(), title(), AIDA::IAxis::upperEdge(), xAxis(), and yAxis().
|
virtual |
Reset the Histogram; as if just created.
Implements AIDA::IBaseHistogram.
|
virtual |
The RMS of the IHistogram2D along the x axis.
Implements AIDA::IHistogram2D.
Referenced by printContents().
|
virtual |
The RMS of the IHistogram2D along the y axis.
Implements AIDA::IHistogram2D.
Referenced by printContents().
|
virtual |
Scale the weights and the errors of all the IHistogram's bins (in-range and out-of-range ones) by a given scale factor.
scaleFactor | The scale factor. |
FIXME! richtige beruecksichtigung der Fehler im Zusammenhang mit dcale!
Implements AIDA::IHistogram.
|
virtual |
Set the histogram title.
title | The title. |
Implements AIDA::IBaseHistogram.
|
virtual |
Sum of the heights of all the IHistogram's bins, i.e in-range bins, UNDERFLOW and OVERFLOW.
Implements AIDA::IHistogram.
Referenced by printContents().
|
virtual |
Number of equivalent entries, i.e.
SUM[ weight ] ^ 2 / SUM[ weight^2 ]
Implements AIDA::IHistogram.
Referenced by printContents().
|
virtual |
Sum of heights in the UNDERFLOW and OVERFLOW bins.
Implements AIDA::IHistogram.
Referenced by printContents().
|
virtual |
Get the Histogram's title.
Implements AIDA::IBaseHistogram.
Referenced by printContents().
|
virtual |
Get the x axis of the IHistogram2D.
Implements AIDA::IHistogram2D.
Referenced by add(), binEntries(), binEntriesX(), binError(), binHeight(), binHeightX(), binMeanX(), binMeanY(), coordToIndexX(), and printContents().
|
virtual |
Get the y axis of the IHistogram2D.
Implements AIDA::IHistogram2D.
Referenced by add(), binEntries(), binEntriesY(), binError(), binHeight(), binHeightY(), binMeanX(), binMeanY(), coordToIndexY(), and printContents().