RAIDA
1.9.0
|
User level interface to a 1D Cloud. More...
#include <ICloud1DROOT.h>
Public Member Functions | |
virtual | ~ICloud1DROOT () |
Destructor. | |
ICloud1DROOT (const std::string &path, const std::string &title, int nMax, ITree *usedTree, const std::string &options="") | |
Constructor. | |
ICloud1DROOT (const std::string &path, ITree *usedTree, const ICloud1DROOT &cloud) | |
virtual bool | fill (double x, double weight=1.) |
Fill the ICloud1D with a value and a corresponding weight. More... | |
virtual double | lowerEdge () const |
Get the lower edge of the ICloud1D. More... | |
virtual double | upperEdge () const |
Get the upper edge of the ICloud1D. More... | |
virtual double | value (int index) const |
Get the value corresponding to a given entry. More... | |
virtual double | weight (int index) const |
Get the weight corresponding to a given entry. More... | |
virtual double | mean () const |
Get the mean of the ICloud1D. More... | |
virtual double | rms () const |
Get the RMS of the ICloud1D. More... | |
virtual bool | myConvert (int nBins, double lowerEdge, double upperEdge) const |
Convert internally the ICloud1D to an IHistogram1D with given number of bins, upper edge and lower edge. More... | |
virtual bool | convert (int nBins, double lowerEdge, double upperEdge) |
Convert internally the ICloud1D to an IHistogram1D with given number of bins, upper edge and lower edge. More... | |
virtual const IHistogram1D & | histogram () const |
Convert internally the ICloud1D to an IHistogram1D with given bin edges. More... | |
virtual bool | fillHistogram (IHistogram1D &hist) const |
Project the ICloud1D on an IHistogram1D. More... | |
virtual double | sumOfWeights () const |
Get the sum of weights of all the entries. More... | |
virtual bool | myConvertToHistogram () const |
Convert the ICloud to an IHistogram using the default number of bins. More... | |
virtual bool | convertToHistogram () |
Convert the ICloud to an IHistogram using the default number of bins. More... | |
virtual bool | isConverted () const |
Check if the ICloud has been converted to an IHistogram. More... | |
virtual int | maxEntries () const |
Get the number of entries after which the cloud will be converted to an IHistogram. More... | |
virtual bool | scale (double scaleFactor) |
Scale the weights by a given factor. 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 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... | |
Public Member Functions inherited from AIDA::ICloud1D | |
virtual | ~ICloud1D () |
Destructor. | |
Public Member Functions inherited from AIDA::ICloud | |
virtual | ~ICloud () |
Destructor. | |
Public Member Functions inherited from AIDA::IBaseHistogram | |
virtual | ~IBaseHistogram () |
Destructor. | |
User level interface to a 1D Cloud.
|
virtual |
Convert internally the ICloud1D to an IHistogram1D with given number of bins, upper edge and lower edge.
nBins | The number of bins. |
lowerEdge | The lower edge. |
upperEdge | The upper edge. |
Implements AIDA::ICloud1D.
References myConvert().
Referenced by fill().
|
virtual |
Convert the ICloud to an IHistogram using the default number of bins.
Implements AIDA::ICloud.
References myConvertToHistogram().
|
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.
References AIDA::IBaseHistogram::entries().
|
virtual |
Fill the ICloud1D with a value and a corresponding weight.
x | The value. |
weight | The corresponding weight. By default it is 1. |
Implements AIDA::ICloud1D.
References convert(), AIDA::IHistogram1D::fill(), and weight().
|
virtual |
Project the ICloud1D on an IHistogram1D.
hist | The IHistogram1D to be filled. |
Implements AIDA::ICloud1D.
References AIDA::IHistogram1D::fill(), and weight().
|
virtual |
Convert internally the ICloud1D to an IHistogram1D with given bin edges.
binEdges | The bins edges. |
Implements AIDA::ICloud1D.
References myConvertToHistogram().
|
virtual |
Check if the ICloud has been converted to an IHistogram.
true
if it has been converted. Implements AIDA::ICloud.
|
virtual |
Get the lower edge of the ICloud1D.
Implements AIDA::ICloud1D.
Referenced by myConvert().
|
virtual |
Get the number of entries after which the cloud will be converted to an IHistogram.
Implements AIDA::ICloud.
|
virtual |
Get the mean of the ICloud1D.
Implements AIDA::ICloud1D.
References AIDA::IHistogram1D::mean().
Referenced by rms().
|
virtual |
Convert internally the ICloud1D to an IHistogram1D with given number of bins, upper edge and lower edge.
nBins | The number of bins. |
lowerEdge | The lower edge. |
upperEdge | The upper edge. |
References AIDA::ITree::cd(), AIDA::IHistogram1D::fill(), lowerEdge(), AIDA::ITree::pwd(), title(), and weight().
Referenced by convert(), and myConvertToHistogram().
|
virtual |
Convert the ICloud to an IHistogram using the default number of bins.
References myConvert().
Referenced by convertToHistogram(), and histogram().
|
virtual |
Reset the Histogram; as if just created.
Implements AIDA::IBaseHistogram.
|
virtual |
Get the RMS of the ICloud1D.
Implements AIDA::ICloud1D.
References mean(), and AIDA::IHistogram1D::rms().
|
virtual |
Scale the weights by a given factor.
scaleFactor | The scale factor. |
Implements AIDA::ICloud.
References AIDA::ITree::cd(), AIDA::ITree::pwd(), AIDA::IHistogram::scale(), title(), and weight().
|
virtual |
Set the histogram title.
title | The title. |
Implements AIDA::IBaseHistogram.
References AIDA::IBaseHistogram::setTitle().
|
virtual |
Get the sum of weights of all the entries.
Implements AIDA::ICloud.
References AIDA::IHistogram::sumAllBinHeights(), and weight().
|
virtual |
Get the Histogram's title.
Implements AIDA::IBaseHistogram.
References AIDA::IBaseHistogram::title().
Referenced by myConvert(), and scale().
|
virtual |
|
virtual |
Get the value corresponding to a given entry.
index | The entry's index. |
Implements AIDA::ICloud1D.
|
virtual |
Get the weight corresponding to a given entry.
index | The entry's index. |
Implements AIDA::ICloud1D.
Referenced by fill(), fillHistogram(), myConvert(), scale(), and sumOfWeights().