public class HProf2D extends Object implements Serializable
Constructor and Description |
---|
HProf2D(hep.aida.ref.histogram.Profile2D h1)
Create a H2D histogram from JAIDA histogram
|
HProf2D(String title,
double[] edgesX,
double[] edgesY)
Create 2D profile histogram with variable bin size.
|
HProf2D(String title,
int binsX,
double minX,
double maxX,
int binsY,
double minY,
double maxY)
Create 2D histogram
|
Modifier and Type | Method and Description |
---|---|
int |
allEntries()
Get number of all entries
|
int |
binEntries(int indexX,
int indexY)
Number of entries in the corresponding bin (i.e.
|
double |
binError(int indexX,
int indexY)
Error of the corresponding bin.
|
double |
binHeight(int indexX,
int indexY)
Total height of the corresponding bin.
|
void |
doc()
Show online documentation.
|
int |
entries()
Number of in-range entries in the histogram
|
int |
extraEntries()
Get the number of entries in the underflow and overflow bins.
|
void |
fill(double[] x,
double[] y,
double[] z)
Fill histogram from 2 arrays.
|
void |
fill(double[] x,
double[] y,
double[] z,
double[] w)
Fill histogram from 2 arrays.
|
void |
fill(double x,
double y,
double z)
Fill histogram assuming all weights are unity.
|
void |
fill(double x,
double y,
double z,
double w)
Fill histogram assuming all weights are unity.
|
hep.aida.ref.histogram.Profile2D |
get()
Get the JAIDA Profile2D
|
hep.aida.IAxis |
getAxisX()
Get IAxis in X
|
hep.aida.IAxis |
getAxisY()
Get IAxis in Y
|
int |
getBinsX()
Get the number of bins in X
|
int |
getBinsY()
Get the number of bins in Y
|
H2D |
getH2D()
Convert to H2D keeping the original title
|
H2D |
getH2D(String newtitle)
Make H2D copy of the current histogram.
|
H2D |
getH2D(String newtitle,
String option)
Make H2D copy of the current histogram.
|
double |
getLowerEdgeX(int index)
Get lower edge of the bin in X
|
double |
getLowerEdgeY(int index)
Get lower edge of the bins in Y
|
double |
getMaxX()
Get max value of axis in X
|
double |
getMaxY()
Get max value of Y axis
|
double |
getMeanX()
Get mean on X.
|
double |
getMeanY()
Get mean on Y
|
double |
getMinX()
Get min value of axis in X
|
double |
getMinY()
Get min value of Y axis
|
int |
getOverflowEntriesX()
Get overflow entries in Y
|
int |
getOverflowEntriesY()
Get overflow entries in Y
|
double |
getOverflowHeightX()
Get overflow entries in Y
|
double |
getOverflowHeightY()
Get overflow height in Y
|
double |
getRmsX()
Get RMS on X
|
double |
getRmsY()
Get RMS on Y
|
int |
getUnderflowEntriesX()
Get underflow entries in X
|
int |
getUnderflowEntriesY()
Get underflow entries in Y
|
double |
getUnderflowHeightsX()
Get underflow heights in X
|
double |
getUnderflowHeightX()
Get underflow height in X
|
double |
getUnderflowHeightY()
Get underflow height in Y
|
double |
getUpperEdgeX(int index)
Get upper edge of the bin in X
|
double |
getUpperEdgeY(int index)
Get upper edge of the bin in Y
|
int |
mapBinNumber(int index,
hep.aida.IAxis axis)
Utility method to map the bin number from the external representation (from -2 to nBins-1 where -2 is the overflow and -1 is the underflow)
to the internal one (from 0 to nBins+1 where 0 is the underflow and nBins+1 if the overflow bin)
|
void |
setContents(double[][] heights,
double[][] errors)
Set content of H2D histogram
|
void |
setMeanX(double mean)
Set mean on X.
|
void |
setMeanY(double mean)
Set mean on Y
|
void |
setNEntries(int entries)
Set all entries.
|
void |
setRmsX(double rmsX)
Set RMS on X.
|
void |
setRmsY(double rmsY)
Set RMS on Y
|
void |
setTitle(String title)
Set title
|
void |
setValidEntries(int entries)
Set in-range entries.
|
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.
|
public HProf2D(String title, int binsX, double minX, double maxX, int binsY, double minY, double maxY)
title
- TitlebinsX
- Number of bins in XminX
- Min value in XmaxX
- Max value in XbinsY
- Number of bins in YminY
- Min value in YmaxY
- Max value in Ypublic HProf2D(String title, double[] edgesX, double[] edgesY)
title
- Title of histogram.edgesX
- edges for XedgesY
- edges for Ypublic HProf2D(hep.aida.ref.histogram.Profile2D h1)
h1
- Histogram2D histogrampublic void setTitle(String title)
title
- titlepublic hep.aida.ref.histogram.Profile2D get()
public H2D getH2D(String newtitle)
newtitle
- New titlepublic H2D getH2D(String newtitle, String option)
newtitle
- New titleoption
- id option is "s", spread (RMS) is used as errorpublic H2D getH2D()
public void setRmsY(double rmsY)
rmsY
- RMS on Ypublic void setMeanY(double mean)
mean
- on Ypublic double getRmsY()
public double getMeanY()
public double getMeanX()
public double getRmsX()
public void setNEntries(int entries)
entries
- entriespublic void setValidEntries(int entries)
entries
- entriespublic void setRmsX(double rmsX)
public void setMeanX(double mean)
mean
- on Xpublic void setContents(double[][] heights, double[][] errors)
heights
- heightserrors
- errorspublic void fill(double x, double y, double z)
x
- value in Xy
- value in Yz
- value in Zpublic void fill(double x, double y, double z, double w)
x
- value in Xy
- value in Yz
- value in Zw
- weightpublic double binHeight(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 int extraEntries()
public double sumExtraBinHeights()
public double sumAllBinHeights()
public int getBinsX()
public int getBinsY()
public double getMinX()
public double getMaxX()
public double getMaxY()
public double getMinY()
public int getUnderflowEntriesY()
public double getUnderflowHeightY()
public double getUnderflowHeightX()
public int getUnderflowEntriesX()
public int getOverflowEntriesY()
public double getOverflowHeightY()
public int getOverflowEntriesX()
public double getOverflowHeightX()
public double getLowerEdgeX(int index)
index
- of the binpublic double getUpperEdgeX(int index)
index
- of the binpublic double getUpperEdgeY(int index)
index
- of the binpublic double getLowerEdgeY(int index)
index
- of the binpublic double getUnderflowHeightsX()
public int allEntries()
public int entries()
public hep.aida.IAxis getAxisX()
public hep.aida.IAxis getAxisY()
public int binEntries(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 binError(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 fill(double[] x, double[] y, double[] z)
x
- array with values in Xy
- array with values in Yz
- array wih values in zpublic void fill(double[] x, double[] y, double[] z, double[] w)
x
- array with values in Xy
- array with values in Yz
- array with values in zw
- array with weightspublic int mapBinNumber(int index, hep.aida.IAxis axis)
index
- The bin number in the external representation.axis
- The axis to which the bin belongs to.public void doc()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics