RAIDA
1.9.0
|
User level interface to a 2D Cloud. More...
#include <ICloud2DROOT.h>
Public Member Functions | |
virtual | ~ICloud2DROOT () |
Destructor. | |
ICloud2DROOT (const std::string &path, const std::string &title, int nMax, ITree *usedTree, const std::string &options="") | |
Constructor. | |
ICloud2DROOT (const std::string &path, ITree *usedTree, const ICloud2DROOT &cloud) | |
virtual bool | fill (double x, double y, double weight=1.) |
Fill the ICloud2D with a couple of values and a corresponding weight. More... | |
virtual double | lowerEdgeX () const |
Get the lower edge of the ICloud2D along the x axis. More... | |
virtual double | lowerEdgeY () const |
Get the lower edge of the ICloud2D along the y axis. More... | |
virtual double | upperEdgeX () const |
Get the upper edge of the ICloud2D along the x axis. More... | |
virtual double | upperEdgeY () const |
Get the upper edge of the ICloud2D along the y axis. More... | |
virtual double | valueX (int index) const |
Get the x value corresponding to a given entry. More... | |
virtual double | valueY (int index) const |
Get the y value corresponding to a given entry. More... | |
virtual double | weight (int index) const |
Get the weight corresponding to a given entry. More... | |
virtual double | meanX () const |
Get the mean of the ICloud2D along the x axis. More... | |
virtual double | meanY () const |
Get the mean of the ICloud2D along the y axis. More... | |
virtual double | rmsX () const |
Get the RMS of the ICloud2D along the x axis. More... | |
virtual double | rmsY () const |
Get the RMS of the ICloud2D along the y axis. More... | |
virtual bool | convert (int nBinsX, double lowerEdgeX, double upperEdgeX, int nBinsY, double lowerEdgeY, double upperEdgeY) |
Convert internally the ICloud2D to an IHistogram2D with given number of bins, upper edge and lower edge. More... | |
virtual bool | myConvert (int nBinsX, double lowerEdgeX, double upperEdgeX, int nBinsY, double lowerEdgeY, double upperEdgeY) const |
virtual const IHistogram2D & | histogram () const |
Convert internally the ICloud2D to an IHistogram2D with given bin edges. More... | |
virtual bool | fillHistogram (IHistogram2D &hist) const |
Project the ICloud2D on an IHistogram2D. More... | |
virtual double | sumOfWeights () const |
Get the sum of weights of all the entries. More... | |
virtual bool | convertToHistogram () |
Convert the ICloud to an IHistogram using the default number of bins. More... | |
virtual bool | myConvertToHistogram () const |
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::ICloud2D | |
virtual | ~ICloud2D () |
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 2D Cloud.
|
virtual |
Convert internally the ICloud2D to an IHistogram2D with given number of bins, upper edge and lower edge.
nBinsX | The number of bins of the x axis. |
lowerEdgeX | The lower edge of bins of the x axis. |
upperEdgeX | The upper edge of bins of the x axis. |
nBinsY | The number of bins of the y axis. |
lowerEdgeY | The lower edge of bins of the y axis. |
upperEdgeY | The upper edge of bins of the y axis. |
Implements AIDA::ICloud2D.
Referenced by fill().
|
virtual |
Convert the ICloud to an IHistogram using the default number of bins.
Implements AIDA::ICloud.
|
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 ICloud2D with a couple of values and a corresponding weight.
x | The x value. |
y | The y value. |
weight | The corresponding weight. By default it is 1. |
Implements AIDA::ICloud2D.
References convert(), AIDA::IHistogram2D::fill(), and weight().
|
virtual |
Project the ICloud2D on an IHistogram2D.
hist | The IHistogram2D to be filled. |
Implements AIDA::ICloud2D.
References AIDA::IHistogram2D::fill(), and weight().
|
virtual |
Convert internally the ICloud2D to an IHistogram2D with given bin edges.
binEdgesX | The bins edges of the x axis. |
binEdgesY | The bins edges of the y axis. |
Implements AIDA::ICloud2D.
|
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 ICloud2D along the x axis.
Implements AIDA::ICloud2D.
|
virtual |
Get the lower edge of the ICloud2D along the y axis.
Implements AIDA::ICloud2D.
|
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 ICloud2D along the x axis.
Implements AIDA::ICloud2D.
References AIDA::IHistogram2D::meanX().
Referenced by rmsX().
|
virtual |
Get the mean of the ICloud2D along the y axis.
Implements AIDA::ICloud2D.
References AIDA::IHistogram2D::meanY().
Referenced by rmsY().
|
virtual |
Reset the Histogram; as if just created.
Implements AIDA::IBaseHistogram.
|
virtual |
Get the RMS of the ICloud2D along the x axis.
Implements AIDA::ICloud2D.
References meanX(), and AIDA::IHistogram2D::rmsX().
|
virtual |
Get the RMS of the ICloud2D along the y axis.
Implements AIDA::ICloud2D.
References meanY(), and AIDA::IHistogram2D::rmsY().
|
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 scale().
|
virtual |
Get the upper edge of the ICloud2D along the x axis.
Implements AIDA::ICloud2D.
|
virtual |
Get the upper edge of the ICloud2D along the y axis.
Implements AIDA::ICloud2D.
|
virtual |
Get the x value corresponding to a given entry.
index | The entry's index. |
Implements AIDA::ICloud2D.
|
virtual |
Get the y value corresponding to a given entry.
index | The entry's index. |
Implements AIDA::ICloud2D.
|
virtual |
Get the weight corresponding to a given entry.
index | The entry's index. |
Implements AIDA::ICloud2D.
Referenced by fill(), fillHistogram(), scale(), and sumOfWeights().