|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hep.aida.ref.event.AIDAObservable hep.aida.ref.ManagedObject hep.aida.ref.histogram.AbstractBaseHistogram hep.aida.ref.histogram.Cloud hep.aida.ref.histogram.Cloud2D
Field Summary | |
protected double |
sumOfWeights
|
Fields inherited from class hep.aida.ref.histogram.Cloud |
arraySize, CLOUD_ARRAY_ENTRIES, maxEntries, validEntries |
Fields inherited from class hep.aida.ref.ManagedObject |
fillable |
Fields inherited from class hep.aida.ref.event.AIDAObservable |
connectionDidChange, isConnected, isValid |
Constructor Summary | |
|
Cloud2D()
Create a new Cloud2D |
protected |
Cloud2D(String name,
String title,
int nMax,
String options)
Create a new Cloud2D |
Method Summary | |
int |
conversionBinsX()
|
int |
conversionBinsY()
|
double |
conversionLowerEdgeX()
|
double |
conversionLowerEdgeY()
|
double |
conversionUpperEdgeX()
|
double |
conversionUpperEdgeY()
|
void |
convert(double[] binEdgesX,
double[] binEdgesY)
Convert the ICloud to an IHistogram by specifying the bin edges. |
void |
convert(int nBinsX,
double lowerEdgeX,
double upperEdgeX,
int nBinsY,
double lowerEdgeY,
double upperEdgeY)
Convert the Cloud to a Histogram. |
void |
convertToHistogram()
Convert the ICloud to an IHistogram using the default number of bins. |
int |
entries()
Get the Cloud's entries. |
void |
fill(double xValue,
double yValue)
Fill the Cloud with new values with unit weight |
void |
fill(double xValue,
double yValue,
double weight)
Fill the Cloud with new values with given weight |
void |
fillHistogram(hep.aida.IHistogram2D hist2d)
|
protected hep.aida.IHistogram |
hist()
|
hep.aida.IHistogram2D |
histogram()
Get the Histogram representing the Cloud |
boolean |
isConverted()
Has the Cloud been converted to a Histogram? |
double |
lowerEdgeX()
Get the Cloud's x lower edge. |
double |
lowerEdgeXWithMargin()
|
double |
lowerEdgeY()
Get the Cloud's y lower edge. |
double |
lowerEdgeYWithMargin()
|
double |
meanX()
Get the Cloud's x mean. |
double |
meanY()
Get the Cloud's y mean. |
void |
reset()
Reset the histogram; as if just created. |
double |
rmsX()
Get the Cloud's x rms. |
double |
rmsY()
Get the Cloud's y rms. |
void |
scale(double scaleFactor)
Scale the weights by a given factor. |
void |
setConversionParameters(int binsX,
double lowerEdgeX,
double upperEdgeX,
int binsY,
double lowerEdgeY,
double upperEdgeY)
Set the parameters for the ICloud conversion to an IHistogram. |
void |
setHistogram(hep.aida.IHistogram2D hist)
Set the Histogram representation of the Cloud. |
void |
setLowerEdgeX(double lowerEdgeX)
Set the Cloud's x lower edge |
void |
setLowerEdgeY(double lowerEdgeY)
Set the Cloud's y lower edge |
void |
setUpperEdgeX(double upperEdgeX)
Set the Cloud's x upper edge |
void |
setUpperEdgeY(double upperEdgeY)
Set the Cloud's y upper edge |
double |
sumOfWeights()
Get the sum of weights of of all the entries |
double |
upperEdgeX()
Get the Cloud's x upper edge. |
double |
upperEdgeXWithMargin()
|
double |
upperEdgeY()
Get the Cloud's y upper edge. |
double |
upperEdgeYWithMargin()
|
double |
valueX(int index)
Get a given x value from the Cloud. |
double |
valueY(int index)
Get a given y value from the Cloud. |
double |
weight(int index)
Get a given weight from the Cloud. |
Methods inherited from class hep.aida.ref.histogram.Cloud |
autoConvert, createEvent, getOptions, initCloud, margin, maxEntries, nanEntries |
Methods inherited from class hep.aida.ref.histogram.AbstractBaseHistogram |
annotation, dimension, setAnnotation, setTitle, title |
Methods inherited from class hep.aida.ref.ManagedObject |
isFillable, name, setFillable, setName, type |
Methods inherited from class hep.aida.ref.event.AIDAObservable |
addListener, fireStateChanged, fireStateChanged, fireStateChanged, isConnected, removeAllListeners, removeListener, setConnected, setIsValidAfterNotify, setValid, setValidForAll |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface hep.aida.ICloud |
maxEntries |
Methods inherited from interface hep.aida.IBaseHistogram |
annotation, dimension, nanEntries, setTitle, title |
Methods inherited from interface hep.aida.ref.event.IsObservable |
addListener, removeAllListeners, removeListener, setValid |
Methods inherited from interface hep.aida.ref.event.Connectable |
isConnected, setConnected |
Field Detail |
protected double sumOfWeights
Constructor Detail |
public Cloud2D()
protected Cloud2D(String name, String title, int nMax, String options)
name
- The Cloud's name.title
- The Cloud's title.nMax
- The maximum number of entries stored in the Cloud. If nMax is greater than zero the Cloud
will be converted to an Histogram when the number of entries is more than nMax.options
- Some options.Method Detail |
public void fill(double xValue, double yValue)
fill
in interface hep.aida.ICloud2D
xValue
- The x value to add to the Cloud.yValue
- The y value to add to the Cloud.
true
if the fill was successful.public void fill(double xValue, double yValue, double weight)
fill
in interface hep.aida.ICloud2D
xValue
- The x value to add to the Cloud.yValue
- The y value to add to the Cloud.weight
- The values weight.
true
if the fill was successful.public double lowerEdgeX()
lowerEdgeX
in interface hep.aida.ICloud2D
public double lowerEdgeY()
lowerEdgeY
in interface hep.aida.ICloud2D
public double upperEdgeX()
upperEdgeX
in interface hep.aida.ICloud2D
public double upperEdgeY()
upperEdgeY
in interface hep.aida.ICloud2D
public void setLowerEdgeX(double lowerEdgeX)
lowerEdgeX
- The Cloud's x lower edge.public void setLowerEdgeY(double lowerEdgeY)
lowerEdgeY
- The Cloud's y lower edge.public void setUpperEdgeX(double upperEdgeX)
upperEdgeX
- The Cloud's x upper edge.public void setUpperEdgeY(double upperEdgeY)
upperEdgeY
- The Cloud's y upper edge.public double valueX(int index)
valueX
in interface hep.aida.ICloud2D
index
- The x value's index.
RuntimeException
- if the Cloud has been convertedpublic double valueY(int index)
valueY
in interface hep.aida.ICloud2D
index
- The y value's index.
RuntimeException
- if the Cloud has been convertedpublic double weight(int index)
weight
in interface hep.aida.ICloud2D
index
- The weight's index.
RuntimeException
- if the Cloud has been convertedpublic double meanX()
meanX
in interface hep.aida.ICloud2D
public double meanY()
meanY
in interface hep.aida.ICloud2D
public double rmsX()
rmsX
in interface hep.aida.ICloud2D
public double rmsY()
rmsY
in interface hep.aida.ICloud2D
public int entries()
entries
in interface hep.aida.IBaseHistogram
entries
in class AbstractBaseHistogram
public void convert(int nBinsX, double lowerEdgeX, double upperEdgeX, int nBinsY, double lowerEdgeY, double upperEdgeY)
convert
in interface hep.aida.ICloud2D
nBinsX
- The Histogram's x number of bins.lowerEdgeX
- The Histogram's x lower edge.upperEdgeX
- The Histogram's x upper edge.nBinsY
- The Histogram's y number of bins.lowerEdgeY
- The Histogram's y lower edge.upperEdgeY
- The Histogram's y upper edge.public void convert(double[] binEdgesX, double[] binEdgesY)
convert
in interface hep.aida.ICloud2D
public boolean isConverted()
isConverted
in interface hep.aida.ICloud
isConverted
in class Cloud
true<\code> if the Cloud has been converted to a Histogram.
public hep.aida.IHistogram2D histogram() throws RuntimeException
histogram
in interface hep.aida.ICloud2D
RuntimeException
- if the histogram is not auto-convertible and "convert"
has not been called.public void setHistogram(hep.aida.IHistogram2D hist)
hist
- The Histogram representing the Cloud.public void fillHistogram(hep.aida.IHistogram2D hist2d)
fillHistogram
in interface hep.aida.ICloud2D
public void reset()
Cloud
reset
in interface hep.aida.IBaseHistogram
reset
in class Cloud
public void convertToHistogram()
Cloud
convertToHistogram
in interface hep.aida.ICloud
convertToHistogram
in class Cloud
public void scale(double scaleFactor) throws IllegalArgumentException
Cloud
scale
in interface hep.aida.ICloud
scale
in class Cloud
scaleFactor
- The scale factor.
IllegalArgumentException
public double lowerEdgeXWithMargin()
public double upperEdgeXWithMargin()
public double lowerEdgeYWithMargin()
public double upperEdgeYWithMargin()
public double sumOfWeights()
sumOfWeights
in interface hep.aida.ICloud
sumOfWeights
in class Cloud
protected hep.aida.IHistogram hist()
hist
in class Cloud
public void setConversionParameters(int binsX, double lowerEdgeX, double upperEdgeX, int binsY, double lowerEdgeY, double upperEdgeY)
setConversionParameters
in interface hep.aida.ICloud2D
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.public int conversionBinsX()
public double conversionLowerEdgeX()
public double conversionUpperEdgeX()
public int conversionBinsY()
public double conversionLowerEdgeY()
public double conversionUpperEdgeY()
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |