|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.aida.ref.event.AIDAObservable
hep.aida.ref.ManagedObject
hep.aida.ref.histogram.AbstractBaseHistogram
hep.aida.ref.histogram.Histogram
hep.aida.ref.histogram.Histogram3D
| 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 | |
|
Histogram3D()
Create a 3-dimensional Histogram. |
protected |
Histogram3D(String name,
String title,
hep.aida.IAxis xAxis,
hep.aida.IAxis yAxis,
hep.aida.IAxis zAxis)
Create a 3-dimensional Histogram. |
protected |
Histogram3D(String name,
String title,
hep.aida.IAxis xAxis,
hep.aida.IAxis yAxis,
hep.aida.IAxis zAxis,
String options)
Create a 3-dimensional Histogram. |
| Method Summary | |
void |
add(hep.aida.IHistogram3D hist)
Modifies this histogram by adding the contents of h to it. |
int |
binEntries(int indexX,
int indexY,
int indexZ)
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 x bin number (ie the number of times fill was called for these bins). |
int |
binEntriesZ(int indexZ)
Number of entries with a given x bin number (ie the number of times fill was called for these bins). |
double |
binError(int indexX,
int indexY,
int indexZ)
The error on this bin. |
double |
binHeight(int indexX,
int indexY,
int indexZ)
Total height of the corresponding bin. |
double |
binHeightX(int indexX)
Total height of the corresponding x bin along y and z. |
double |
binHeightY(int indexY)
Total height of the corresponding y bin along x and z. |
double |
binHeightZ(int indexZ)
Total height of the corresponding z bin along x and y. |
double |
binMeanX(int indexX,
int indexY,
int indexZ)
Get the mean of a bin along the x axis. |
double |
binMeanY(int indexX,
int indexY,
int indexZ)
Get the mean of a bin along the y axis. |
double |
binMeanZ(int indexX,
int indexY,
int indexZ)
Get the mean of a bin along the z axis. |
double |
binRmsX(int indexX,
int indexY,
int indexZ)
Get the RMS of a bin along the x axis. |
double |
binRmsY(int indexX,
int indexY,
int indexZ)
Get the RMS of a bin along the y axis. |
double |
binRmsZ(int indexX,
int indexY,
int indexZ)
Get the RMS of a bin along the z axis. |
int |
coordToIndexX(double coordX)
Convenience method, equivalent to xAxis().coordToIndex(coord). |
int |
coordToIndexY(double coordY)
Convenience method, equivalent to yAxis().coordToIndex(coord). |
int |
coordToIndexZ(double coordZ)
Convenience method, equivalent to zAxis().coordToIndex(coord). |
int |
extraEntries()
Get the number of entries in the underflow and overflow bins. |
void |
fill(double x,
double y,
double z)
Fill the Histogram with unit weight. |
void |
fill(double x,
double y,
double z,
double weight)
Fill the Histogram. |
void |
initHistogram3D(hep.aida.IAxis xAxis,
hep.aida.IAxis yAxis,
hep.aida.IAxis zAxis,
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 |
meanZ()
Get the mean of the whole Histogram as projected on the z 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. |
double |
rmsZ()
Get the RMS of the whole Histogram as projected on the z axis. |
void |
scale(double scaleFactor)
Scale the weights and the errors by a given factor. |
void |
setBinError(int indexX,
int indexY,
int indexZ,
double error)
Set the error on this bin. |
void |
setContents(double[][][] heights,
double[][][] errors,
int[][][] entries,
double[][][] meanXs,
double[][][] rmsXs,
double[][][] meanYs,
double[][][] rmsYs,
double[][][] meanZs,
double[][][] rmsZs)
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 |
setMeanZ(double meanZ)
|
void |
setRmsX(double rmsX)
|
void |
setRmsY(double rmsY)
|
void |
setRmsZ(double rmsZ)
|
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. |
hep.aida.IAxis |
zAxis()
Get the Z 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 Histogram3D()
protected Histogram3D(String name,
String title,
hep.aida.IAxis xAxis,
hep.aida.IAxis yAxis,
hep.aida.IAxis zAxis)
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.zAxis - The z-axis of the Histogram.
protected Histogram3D(String name,
String title,
hep.aida.IAxis xAxis,
hep.aida.IAxis yAxis,
hep.aida.IAxis zAxis,
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.zAxis - The z-axis of the Histogram.options - The options of the Histogram.| Method Detail |
public void fill(double x,
double y,
double z)
fill in interface hep.aida.IHistogram3Dx - The x value to be filled.y - The y value to be filled.z - The z value to be filled.
public void fill(double x,
double y,
double z,
double weight)
fill in interface hep.aida.IHistogram3Dx - The x value to be filled.y - The y value to be filled.z - The z value to be filled.weight - The weight for this entry.public void reset()
reset in interface hep.aida.IBaseHistogramreset in class Histogrampublic int extraEntries()
extraEntries in interface hep.aida.IHistogramextraEntries in class Histogrampublic double sumAllBinHeights()
sumAllBinHeights in interface hep.aida.IHistogramsumAllBinHeights in class Histogrampublic double sumExtraBinHeights()
sumExtraBinHeights in interface hep.aida.IHistogramsumExtraBinHeights in class Histogrampublic double minBinHeight()
minBinHeight in interface hep.aida.IHistogramminBinHeight in class Histogrampublic double maxBinHeight()
maxBinHeight in interface hep.aida.IHistogrammaxBinHeight in class Histogram
public int binEntries(int indexX,
int indexY,
int indexZ)
binEntries in interface hep.aida.IHistogram3DindexX - 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.indexZ - The z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public int binEntriesX(int indexX)
binEntriesX in interface hep.aida.IHistogram3DindexX - 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.IHistogram3DindexY - the y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public int binEntriesZ(int indexZ)
binEntriesZ in interface hep.aida.IHistogram3DindexZ - the z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binHeight(int indexX,
int indexY,
int indexZ)
binHeight in interface hep.aida.IHistogram3DindexX - 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.indexZ - The z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binHeightX(int indexX)
binHeightX in interface hep.aida.IHistogram3DindexX - 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.IHistogram3DindexY - The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binHeightZ(int indexZ)
binHeightZ in interface hep.aida.IHistogram3DindexZ - The y bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binError(int indexX,
int indexY,
int indexZ)
binError in interface hep.aida.IHistogram3DindexX - 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.indexZ - The z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double meanX()
meanX in interface hep.aida.IHistogram3Dpublic double meanY()
meanY in interface hep.aida.IHistogram3Dpublic double meanZ()
meanZ in interface hep.aida.IHistogram3Dpublic double rmsX()
rmsX in interface hep.aida.IHistogram3Dpublic double rmsY()
rmsY in interface hep.aida.IHistogram3Dpublic double rmsZ()
rmsZ in interface hep.aida.IHistogram3Dpublic hep.aida.IAxis xAxis()
xAxis in interface hep.aida.IHistogram3Dpublic hep.aida.IAxis yAxis()
yAxis in interface hep.aida.IHistogram3Dpublic hep.aida.IAxis zAxis()
zAxis in interface hep.aida.IHistogram3Dpublic int coordToIndexX(double coordX)
coordToIndexX in interface hep.aida.IHistogram3DIAxis.coordToIndex(double)public int coordToIndexY(double coordY)
coordToIndexY in interface hep.aida.IHistogram3DIAxis.coordToIndex(double)public int coordToIndexZ(double coordZ)
coordToIndexZ in interface hep.aida.IHistogram3DIAxis.coordToIndex(double)
public void scale(double scaleFactor)
throws IllegalArgumentException
scale in interface hep.aida.IHistogramscale in class HistogramscaleFactor - The scale factor.
IllegalArgumentException
public void add(hep.aida.IHistogram3D hist)
throws IllegalArgumentException
add in interface hep.aida.IHistogram3Dhist - 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 void setMeanZ(double meanZ)
public void setRmsZ(double rmsZ)
public double binMeanX(int indexX,
int indexY,
int indexZ)
binMeanX in interface hep.aida.IHistogram3DindexX - 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.indexZ - The z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binMeanY(int indexX,
int indexY,
int indexZ)
binMeanY in interface hep.aida.IHistogram3DindexX - 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.indexZ - The z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binMeanZ(int indexX,
int indexY,
int indexZ)
binMeanZ in interface hep.aida.IHistogram3DindexX - 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.indexZ - The z bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binRmsX(int indexX,
int indexY,
int indexZ)
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.indexZ - The z bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.
public double binRmsY(int indexX,
int indexY,
int indexZ)
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.indexZ - The z bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.
public double binRmsZ(int indexX,
int indexY,
int indexZ)
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.indexZ - The z bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.
public void setBinError(int indexX,
int indexY,
int indexZ,
double error)
indexX - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.indexY - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.indexZ - the bin number (0...N-1) or OVERFLOW or UNDERFLOW.
public void setContents(double[][][] heights,
double[][][] errors,
int[][][] entries,
double[][][] meanXs,
double[][][] rmsXs,
double[][][] meanYs,
double[][][] rmsYs,
double[][][] meanZs,
double[][][] rmsZs)
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 axismeanZs - The means of the bin along the z axisrmsZs - The rmss of the bin along the z axis
public void initHistogram3D(hep.aida.IAxis xAxis,
hep.aida.IAxis yAxis,
hep.aida.IAxis zAxis,
String options)
|
FreeHEP API Version current |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||