User level interface to a 1D Cloud.
More...
#include <ICloud1D.h>
User level interface to a 1D Cloud.
- Author
- The AIDA team (http://aida.freehep.org/)
virtual bool AIDA::ICloud1D::convert |
( |
int |
nBins, |
|
|
double |
lowerEdge, |
|
|
double |
upperEdge |
|
) |
| |
|
pure virtual |
Convert internally the ICloud1D to an IHistogram1D with given number of bins, upper edge and lower edge.
- Parameters
-
nBins | The number of bins. |
lowerEdge | The lower edge. |
upperEdge | The upper edge. |
- Returns
- false If the ICloud1D has already been converted.
Implemented in AIDA::ICloud1DROOT.
virtual bool AIDA::ICloud1D::fill |
( |
double |
x, |
|
|
double |
weight = 1. |
|
) |
| |
|
pure virtual |
Fill the ICloud1D with a value and a corresponding weight.
- Parameters
-
x | The value. |
weight | The corresponding weight. By default it is 1. |
- Returns
- false If the ICloud1D is full, if the weight's value is is not between 0 and 1.
Implemented in AIDA::ICloud1DROOT.
virtual bool AIDA::ICloud1D::fillHistogram |
( |
IHistogram1D & |
hist | ) |
const |
|
pure virtual |
virtual const IHistogram1D& AIDA::ICloud1D::histogram |
( |
| ) |
const |
|
pure virtual |
virtual double AIDA::ICloud1D::lowerEdge |
( |
| ) |
const |
|
pure virtual |
virtual double AIDA::ICloud1D::mean |
( |
| ) |
const |
|
pure virtual |
virtual double AIDA::ICloud1D::rms |
( |
| ) |
const |
|
pure virtual |
virtual double AIDA::ICloud1D::upperEdge |
( |
| ) |
const |
|
pure virtual |
virtual double AIDA::ICloud1D::value |
( |
int |
index | ) |
const |
|
pure virtual |
Get the value corresponding to a given entry.
- Parameters
-
- Returns
- The value of the index-th entry. If the ICloud1D has already been converted, 0 is returned.
Implemented in AIDA::ICloud1DROOT.
virtual double AIDA::ICloud1D::weight |
( |
int |
index | ) |
const |
|
pure virtual |
Get the weight corresponding to a given entry.
- Parameters
-
- Returns
- The weight of the index-th entry. If the ICloud1D has already been converted, 0 is returned.
Implemented in AIDA::ICloud1DROOT.
The documentation for this class was generated from the following file: