RAIDA
1.9.0
|
#include <IHistogram1DROOT.h>
Public Member Functions | |
virtual | ~IHistogram1DROOT () |
Destructor. | |
IHistogram1DROOT (const std::string &name, const std::string &title, int nBins, double lowerEdge, double upperEdge, const std::string &options="") | |
IHistogram1DROOT (const std::string &name, const std::string &title, const std::vector< double > &binEdges, const std::string &options="") | |
IHistogram1DROOT (const std::string &name, const IHistogram1DROOT &hist) | |
IHistogram1DROOT (const std::string &name, const IHistogram2DROOT &hist, char axis, int lowerBin=-2, int upperBin=-1) | |
virtual bool | fill (double x, double weight=1.) |
Fill the IHistogram1D with a value and the corresponding weight. More... | |
virtual double | binMean (int index) const |
The weighted mean of a bin. More... | |
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 Histogram's dimension. 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 |
Sum of the entries in all the IHistogram's bins, i.e in-range bins, UNDERFLOW and OVERFLOW. More... | |
virtual int | extraEntries () const |
Number of entries in the UNDERFLOW and OVERFLOW bins. More... | |
virtual double | sumBinHeights () const |
Sum of in-range bin heights in the IHistogram, UNDERFLOW and OVERFLOW bins are excluded. 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 int | binEntries (int index) const |
The weighted mean of a bin. More... | |
virtual double | binHeight (int index) const |
Total height of the corresponding bin (ie the sum of the weights in this bin). More... | |
virtual double | binError (int index) const |
The error of a given bin. More... | |
virtual double | mean () const |
The mean of the whole IHistogram1D. More... | |
virtual double | rms () const |
The RMS of the whole IHistogram1D. More... | |
virtual const IAxis & | axis () const |
Get the x axis of the IHistogram1D. More... | |
virtual int | coordToIndex (double coord) const |
Get the bin number corresponding to a given coordinate along the x axis. More... | |
virtual bool | add (const IHistogram1D &hist) |
Add to this IHistogram1D the contents of another IHistogram1D. More... | |
virtual bool | subtract (const IHistogram1D &hist) |
virtual bool | multiply (const IHistogram1D &hist) |
virtual bool | divide (const IHistogram1D &hist) |
virtual void | printContents () const |
Print out the contents of a histogram to the screen. More... | |
Public Member Functions inherited from AIDA::IHistogram1D | |
virtual | ~IHistogram1D () |
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 IAxis;
User level interface to 1D Histogram.
|
virtual |
Add to this IHistogram1D the contents of another IHistogram1D.
hist | The IHistogram1D to be added to this IHistogram1D. |
Implements AIDA::IHistogram1D.
References AIDA::IHistogram1D::axis(), axis(), and AIDA::IAxis::bins().
|
virtual |
Sum of the entries in all the IHistogram's bins, i.e in-range bins, UNDERFLOW and OVERFLOW.
This is equivalent to the number of times the method fill was invoked.
Implements AIDA::IHistogram.
Referenced by printContents().
|
virtual |
Get the x axis of the IHistogram1D.
Implements AIDA::IHistogram1D.
Referenced by add(), binEntries(), binError(), binHeight(), binMean(), coordToIndex(), and printContents().
|
virtual |
The weighted mean of a bin.
index | The bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
index | The bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
Implements AIDA::IHistogram1D.
References axis().
Referenced by printContents().
|
virtual |
The error of a given bin.
index | The bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
Implements AIDA::IHistogram1D.
References axis().
Referenced by printContents().
|
virtual |
Total height of the corresponding bin (ie the sum of the weights in this bin).
index | The bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
Implements AIDA::IHistogram1D.
References axis().
Referenced by printContents().
|
virtual |
The weighted mean of a bin.
index | The bin number (0...N-1) or OVERFLOW or UNDERFLOW. |
Implements AIDA::IHistogram1D.
References axis().
Referenced by printContents().
|
virtual |
Get the bin number corresponding to a given coordinate along the x axis.
This is a convenience method, equivalent to axis().coordToIndex(coord)
.
coord | The coordinalte along the x axis. |
Implements AIDA::IHistogram1D.
References axis().
|
virtual |
|
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 IHistogram1D with a value and the corresponding weight.
x | The value to be filled in. |
weight | The corresponding weight (by default 1). |
Implements AIDA::IHistogram1D.
|
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 whole IHistogram1D.
Implements AIDA::IHistogram1D.
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(), axis(), binEntries(), binError(), binHeight(), AIDA::IAxis::binLowerEdge(), binMean(), AIDA::IAxis::bins(), entries(), extraEntries(), AIDA::IAxis::lowerEdge(), maxBinHeight(), mean(), minBinHeight(), rms(), sumAllBinHeights(), sumBinHeights(), sumExtraBinHeights(), title(), and AIDA::IAxis::upperEdge().
|
virtual |
Reset the Histogram; as if just created.
Implements AIDA::IBaseHistogram.
|
virtual |
The RMS of the whole IHistogram1D.
Implements AIDA::IHistogram1D.
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.
References sumBinHeights().
Referenced by printContents().
|
virtual |
Sum of in-range bin heights in the IHistogram, UNDERFLOW and OVERFLOW bins are excluded.
Implements AIDA::IHistogram.
Referenced by printContents(), and sumAllBinHeights().
|
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().