|
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.Histogram hep.aida.ref.histogram.Histogram2D
Field Summary |
Fields inherited from class hep.aida.ref.histogram.Histogram |
allEntries, isFillable, sumOfWeights, sumOfWeightsSquared, validEntries, X_AXIS, Y_AXIS, Z_AXIS |
Fields inherited from class hep.aida.ref.ManagedObject |
fillable |
Fields inherited from class hep.aida.ref.event.AIDAObservable |
connectionDidChange, isConnected, isValid |
Constructor Summary | |
|
Histogram2D()
Create a 2-dimensional Histogram. |
|
Histogram2D(String name,
String title,
hep.aida.IAxis xAxis,
hep.aida.IAxis yAxis)
Create a 2-dimensional Histogram. |
protected |
Histogram2D(String name,
String title,
hep.aida.IAxis xAxis,
hep.aida.IAxis yAxis,
String options)
Create a 2-dimensional Histogram. |
Method Summary | |
void |
add(hep.aida.IHistogram2D hist)
Modifies this histogram by adding the contents of h to it. |
int |
binEntries(int indexX,
int indexY)
Number of entries in the corresponding bin (ie the number of times fill was called for this bin). |
int |
binEntriesX(int indexX)
Number of entries with a given x bin number (ie the number of times fill was called for these bins). |
int |
binEntriesY(int indexY)
Number of entries with a given y bin number (ie the number of times fill was called for these bins). |
double |
binError(int indexX,
int indexY)
The error on this bin. |
double |
binHeight(int indexX,
int indexY)
Total height of the corresponding bin. |
double |
binHeightX(int indexX)
Total height of the corresponding x bin along y. |
double |
binHeightY(int indexY)
Total height of the corresponding y bin along x. |
double |
binMeanX(int indexX,
int indexY)
Get the mean of a bin along the x axis. |
double |
binMeanY(int indexX,
int indexY)
Get the mean of a bin along the y axis. |
double |
binRmsX(int indexX,
int indexY)
Get the RMS of a bin along the x axis. |
double |
binRmsY(int indexX,
int indexY)
Get the RMS of a bin along the y axis. |
int |
coordToIndexX(double coordX)
Convenience method, equivalent to xAxis().coordToIndex(coord). |
int |
coordToIndexY(double coordY)
Convenience method, equivalent to yAxis().coordToIndex(coord). |
int |
extraEntries()
Get the number of entries in the underflow and overflow bins. |
void |
fill(double x,
double y)
Fill the Histogram with unit weight. |
void |
fill(double x,
double y,
double weight)
Fill the Histogram. |
void |
initHistogram2D(hep.aida.IAxis xAxis,
hep.aida.IAxis yAxis,
String options)
|
double |
maxBinHeight()
Get the maximum height of in-range bins in the Histogram. |
double |
meanX()
Get the mean of the whole Histogram as projected on the x axis. |
double |
meanY()
Get the mean of the whole Histogram as projected on the y axis. |
double |
minBinHeight()
Get the minimum height of in-range bins in the Histogram. |
void |
reset()
Reset the Histogram. |
double |
rmsX()
Get the RMS of the whole Histogram as projected on the x axis. |
double |
rmsY()
Get the RMS of the whole Histogram as projected on the y axis. |
void |
scale(double scaleFactor)
Scale the weights and the errors by a given factor. |
void |
setBinError(int indexX,
int indexY,
double error)
Set the error on this bin. |
void |
setContents(double[][] heights,
double[][] errors,
int[][] entries,
double[][] meanXs,
double[][] rmsXs,
double[][] meanYs,
double[][] rmsYs)
Set the content of the whole Histogram at once. |
void |
setMeanX(double meanX)
All the non-AIDA methods should go below this point. |
void |
setMeanY(double meanY)
|
void |
setRmsX(double rmsX)
|
void |
setRmsY(double rmsY)
|
double |
sumAllBinHeights()
Get the sum of the bin heights for all the entries, in-range and out-range ones. |
double |
sumExtraBinHeights()
Get the sum of the bin heights for all the entries outside the Histogram's range. |
hep.aida.IAxis |
xAxis()
Get the X axis. |
hep.aida.IAxis |
yAxis()
Get the Y axis. |
Methods inherited from class hep.aida.ref.histogram.Histogram |
allEntries, createEvent, entries, equivalentBinEntries, mapBinNumber, nanEntries, options, setNEntries, setUseOutflows, setValidEntries, sumBinHeights, useOutflows |
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.IHistogram |
allEntries, equivalentBinEntries, sumBinHeights |
Methods inherited from interface hep.aida.IBaseHistogram |
annotation, dimension, entries, 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 |
Constructor Detail |
public Histogram2D()
public Histogram2D(String name, String title, hep.aida.IAxis xAxis, hep.aida.IAxis yAxis)
name
- The name of the Histogram as a ManagedObject.title
- The title of the Histogram.xAxis
- The x-axis of the Histogram.yAxis
- The y-axis of the Histogram.protected Histogram2D(String name, String title, hep.aida.IAxis xAxis, hep.aida.IAxis yAxis, String options)
name
- The name of the Histogram as a ManagedObject.title
- The title of the Histogram.xAxis
- The x-axis of the Histogram.yAxis
- The y-axis of the Histogram.options
- The options of the Histogram.Method Detail |
public void fill(double x, double y)
fill
in interface hep.aida.IHistogram2D
x
- The x value to be filled.y
- The y value to be filled.public void fill(double x, double y, double weight)
fill
in interface hep.aida.IHistogram2D
x
- The x value to be filled.y
- The y value to be filled.weight
- The weight for this entry.public void reset()
reset
in interface hep.aida.IBaseHistogram
reset
in class Histogram
public int extraEntries()
extraEntries
in interface hep.aida.IHistogram
extraEntries
in class Histogram
public double sumAllBinHeights()
sumAllBinHeights
in interface hep.aida.IHistogram
sumAllBinHeights
in class Histogram
public double sumExtraBinHeights()
sumExtraBinHeights
in interface hep.aida.IHistogram
sumExtraBinHeights
in class Histogram
public double minBinHeight()
minBinHeight
in interface hep.aida.IHistogram
minBinHeight
in class Histogram
public double maxBinHeight()
maxBinHeight
in interface hep.aida.IHistogram
maxBinHeight
in class Histogram
public int binEntries(int indexX, int indexY)
binEntries
in interface hep.aida.IHistogram2D
indexX
- the x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexY
- the y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public int binEntriesX(int indexX)
binEntriesX
in interface hep.aida.IHistogram2D
indexX
- the x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public int binEntriesY(int indexY)
binEntriesY
in interface hep.aida.IHistogram2D
indexY
- the y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binHeight(int indexX, int indexY)
binHeight
in interface hep.aida.IHistogram2D
indexX
- The x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexY
- The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binHeightX(int indexX)
binHeightX
in interface hep.aida.IHistogram2D
indexX
- The x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binHeightY(int indexY)
binHeightY
in interface hep.aida.IHistogram2D
indexY
- The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binError(int indexX, int indexY)
binError
in interface hep.aida.IHistogram2D
indexX
- The x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexY
- The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double meanX()
meanX
in interface hep.aida.IHistogram2D
public double meanY()
meanY
in interface hep.aida.IHistogram2D
public double rmsX()
rmsX
in interface hep.aida.IHistogram2D
public double rmsY()
rmsY
in interface hep.aida.IHistogram2D
public hep.aida.IAxis xAxis()
xAxis
in interface hep.aida.IHistogram2D
public hep.aida.IAxis yAxis()
yAxis
in interface hep.aida.IHistogram2D
public int coordToIndexX(double coordX)
coordToIndexX
in interface hep.aida.IHistogram2D
IAxis.coordToIndex(double)
public int coordToIndexY(double coordY)
coordToIndexY
in interface hep.aida.IHistogram2D
IAxis.coordToIndex(double)
public void scale(double scaleFactor)
scale
in interface hep.aida.IHistogram
scale
in class Histogram
scaleFactor
- The scale factor.public void add(hep.aida.IHistogram2D hist) throws IllegalArgumentException
add
in interface hep.aida.IHistogram2D
hist
- The histogram to be added to this histogram
IllegalArgumentException
- if histogram binnings are incompatiblepublic void setMeanX(double meanX)
public void setRmsX(double rmsX)
public void setMeanY(double meanY)
public void setRmsY(double rmsY)
public double binMeanX(int indexX, int indexY)
binMeanX
in interface hep.aida.IHistogram2D
indexX
- The x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexY
- The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binMeanY(int indexX, int indexY)
binMeanY
in interface hep.aida.IHistogram2D
indexX
- The x bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.indexY
- The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binRmsX(int indexX, int indexY)
indexX
- The x bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.indexY
- The y bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.
public double binRmsY(int indexX, int indexY)
indexX
- The x bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.indexY
- The y bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.
public void setBinError(int indexX, int indexY, double error)
indexX
- the bin number (0...N-1) or OVERFLOW or UNDERFLOW.indexY
- the bin number (0...N-1) or OVERFLOW or UNDERFLOW.error
- the error.public void setContents(double[][] heights, double[][] errors, int[][] entries, double[][] meanXs, double[][] rmsXs, double[][] meanYs, double[][] rmsYs)
heights
- The bin heightserrors
- The bin errorsentries
- The bin entriesmeanXs
- The means of the bin along the x axisrmsXs
- The rmss of the bin along the x axismeanYs
- The means of the bin along the y axisrmsYs
- The rmss of the bin along the y axispublic void initHistogram2D(hep.aida.IAxis xAxis, hep.aida.IAxis yAxis, String options)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |