|
FreeHEP API Version 3.0 |
|||||||||
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. |
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, scale, sumOfWeights |
Methods inherited from interface hep.aida.IBaseHistogram |
annotation, dimension, entries, 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, if the weight's value is
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, if the weight's value is
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.
|
FreeHEP API Version 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |