|
AIDA API Version 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
User level interface to a 2D Cloud.
Method Summary | |
void |
convert(double[] binEdgesX,
double[] binEdgesY)
Convert internally the ICloud2D to an IHistogram2D with given bin edges. |
void |
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. |
void |
fill(double x,
double y)
Fill the ICloud2D with a couple of values and a corresponding weight. |
void |
fill(double x,
double y,
double weight)
Fill the ICloud2D with a couple of values and a corresponding weight. |
void |
fillHistogram(IHistogram2D hist)
Project the ICloud2D on an IHistogram2D. |
IHistogram2D |
histogram()
Get the internal IHistogram2D in which the ICloud2D converted to. |
double |
lowerEdgeX()
Get the lower edge of the ICloud2D along the x axis. |
double |
lowerEdgeY()
Get the lower edge of the ICloud2D along the y axis. |
double |
meanX()
Get the mean of the ICloud2D along the x axis. |
double |
meanY()
Get the mean of the ICloud2D along the y axis. |
double |
rmsX()
Get the RMS of the ICloud2D along the x axis. |
double |
rmsY()
Get the RMS of the ICloud2D along the y axis. |
void |
setConversionParameters(int binsX,
double lowerEdgeX,
double upperEdgeX,
int binsY,
double lowerEdgeY,
double upperEdgeY)
Set the parameters for the ICloud conversion to an IHistogram. |
double |
upperEdgeX()
Get the upper edge of the ICloud2D along the x axis. |
double |
upperEdgeY()
Get the upper edge of the ICloud2D along the y axis. |
double |
valueX(int index)
Get the x value corresponding to a given entry. |
double |
valueY(int index)
Get the y value corresponding to a given entry. |
double |
weight(int index)
Get the weight corresponding to a given entry. |
Methods inherited from interface hep.aida.ICloud |
convertToHistogram, isConverted, maxEntries, scale, sumOfWeights |
Methods inherited from interface hep.aida.IBaseHistogram |
annotation, dimension, entries, nanEntries, reset, setTitle, title |
Method Detail |
public void fill(double x, double y) throws IllegalArgumentException
x
- The x value.y
- The y value.
IllegalArgumentException
- If the ICloud2D is full or if the weight's value
is not between 0 and 1.public void fill(double x, double y, double weight) throws IllegalArgumentException
x
- The x value.y
- The y value.weight
- The corresponding weight. By default it is 1.
IllegalArgumentException
- If the ICloud2D is full or if the weight's value
is not between 0 and 1.public double lowerEdgeX()
public double lowerEdgeY()
public double upperEdgeX()
public double upperEdgeY()
public double valueX(int index) throws AlreadyConvertedException
index
- The entry's index.
AlreadyConvertedException
- If the ICloud2D has already been converted.public double valueY(int index) throws AlreadyConvertedException
index
- The entry's index.
AlreadyConvertedException
- If the ICloud2D has already been converted.public double weight(int index) throws AlreadyConvertedException
index
- The entry's index.
AlreadyConvertedException
- If the ICloud has already been converted.public double meanX()
public double meanY()
public double rmsX()
public double rmsY()
public void convert(int nBinsX, double lowerEdgeX, double upperEdgeX, int nBinsY, double lowerEdgeY, double upperEdgeY) throws AlreadyConvertedException
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.
AlreadyConvertedException
- If the ICloud2D has already been converted.public void convert(double[] binEdgesX, double[] binEdgesY) throws AlreadyConvertedException
binEdgesX
- The bins edges of the x axis.binEdgesY
- The bins edges of the y axis.
AlreadyConvertedException
- If the ICloud2D has already been converted.public IHistogram2D histogram() throws RuntimeException
RuntimeException
- If the ICloud2D did not convert either automatically
or because of a convert() method invocation.public void fillHistogram(IHistogram2D hist) throws RuntimeException
hist
- The IHistogram2D to be filled.
RuntimeException
- If the ICloud2D is already converted.public void setConversionParameters(int binsX, double lowerEdgeX, double upperEdgeX, int binsY, double lowerEdgeY, double upperEdgeY) throws IllegalArgumentException
binsX
- The X axis number of bins of the conversion IHistogram.lowerEdgeX
- The X axis lower edge of the conversion IHistogram.upperEdgeX
- The X axis upper edge of the conversion IHistogram.binsY
- The Y axis number of bins of the conversion IHistogram.lowerEdgeY
- The Y axis lower edge of the conversion IHistogram.upperEdgeY
- The Y axis upper edge of the conversion IHistogram.
IllegalArgumentException
|
AIDA API Version 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |