|
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.Histogram1D
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 | |
|
Histogram1D()
Create a 1-dimensional Histogram. |
|
Histogram1D(String name,
String title,
hep.aida.IAxis axis)
Create a 1-dimensional Histogram. |
protected |
Histogram1D(String name,
String title,
hep.aida.IAxis axis,
String options)
Create a 1-dimensional Histogram. |
Method Summary | |
void |
add(hep.aida.IHistogram1D hist)
Modifies this histogram by adding the contents of h to it. |
hep.aida.IAxis |
axis()
Get the X axis. |
int |
binEntries(int index)
Number of entries in the corresponding bin (ie the number of times fill was called for this bin). |
double |
binError(int index)
The error on this bin. |
double |
binHeight(int index)
Total height of the corresponding bin. |
double |
binMean(int index)
Get the mean of a bin. |
double |
binRms(int index)
Get the RMS of a bin. |
int |
coordToIndex(double coord)
Convenience method, equivalent to axis().coordToIndex(coord). |
int |
extraEntries()
Get the number of entries in the underflow and overflow bins. |
void |
fill(double x)
Fill the Histogram with unit weight. |
void |
fill(double x,
double weight)
Fill the Histogram. |
void |
initHistogram1D(hep.aida.IAxis xAxis,
String options)
|
double |
maxBinHeight()
Get the maximum height of in-range bins in the Histogram. |
double |
mean()
Get the mean of the whole Histogram. |
double |
minBinHeight()
Get the minimum height of in-range bins in the Histogram. |
void |
reset()
Reset the Histogram. |
double |
rms()
Get the RMS of the whole Histogram. |
void |
scale(double scaleFactor)
Scale the weights and the errors by a given factor. |
void |
setBinError(int bin,
double error)
|
void |
setContents(double[] heights,
double[] errors,
int[] entries,
double[] means,
double[] rmss)
Set the content of the whole Histogram at once. |
void |
setMean(double mean)
Set the mean of the Histogram. |
void |
setRms(double rms)
Set the rms of the Histogram. |
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. |
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 Histogram1D()
public Histogram1D(String name, String title, hep.aida.IAxis axis)
name
- The name of the Histogram as a ManagedObject.title
- The title of the Histogram.axis
- The x-axis of the Histogram.protected Histogram1D(String name, String title, hep.aida.IAxis axis, String options)
name
- The name of the Histogram as a ManagedObject.title
- The title of the Histogram.axis
- The x-axis of the Histogram.options
- options of the Histogram.Method Detail |
public void fill(double x)
fill
in interface hep.aida.IHistogram1D
x
- The value to be filled.public void fill(double x, double weight)
fill
in interface hep.aida.IHistogram1D
x
- The 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 index)
binEntries
in interface hep.aida.IHistogram1D
index
- the bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binHeight(int index)
binHeight
in interface hep.aida.IHistogram1D
index
- The bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binError(int index)
binError
in interface hep.aida.IHistogram1D
index
- the bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double mean()
mean
in interface hep.aida.IHistogram1D
public double rms()
rms
in interface hep.aida.IHistogram1D
public hep.aida.IAxis axis()
axis
in interface hep.aida.IHistogram1D
public int coordToIndex(double coord)
coordToIndex
in interface hep.aida.IHistogram1D
IAxis.coordToIndex(double)
public void scale(double scaleFactor) throws IllegalArgumentException
scale
in interface hep.aida.IHistogram
scale
in class Histogram
scaleFactor
- The scale factor.
IllegalArgumentException
public void add(hep.aida.IHistogram1D hist) throws IllegalArgumentException
add
in interface hep.aida.IHistogram1D
hist
- The histogram to be added to this histogram
IllegalArgumentException
- if histogram binnings are incompatiblepublic void setRms(double rms)
rms
- The Historam's x rmspublic void setMean(double mean)
mean
- The Histogram's x meanpublic double binMean(int index)
binMean
in interface hep.aida.IHistogram1D
index
- The bin number in the external representation: (0...N-1) or OVERFLOW or UNDERFLOW.
public double binRms(int index)
index
- the bin number in the external representation:(0...N-1) or OVERFLOW or UNDERFLOW.
public void setBinError(int bin, double error)
public void setContents(double[] heights, double[] errors, int[] entries, double[] means, double[] rmss)
heights
- The bins heightserrors
- The bins errorsentries
- The bin entries.means
- The means of the bins.rmss
- The rmss of the binspublic void initHistogram1D(hep.aida.IAxis xAxis, String options)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |