|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.HRoot
public class HRoot
Class to read ROOT files.
Constructor Summary | |
---|---|
HRoot(java.lang.String file)
Main constructor to build root file reader. |
Method Summary | |
---|---|
H1D |
getH1D(int index)
Get H1D histogram associated with the key index. |
H1D |
getH1D(java.lang.String skey)
Get H1D histogram associated with the key name. |
hep.io.root.interfaces.TKey |
getKey(int i)
Get a key |
hep.io.root.interfaces.TKey |
getKey(java.lang.String skey)
Get a key |
int |
getNKeys()
Get number of objects in ROOT file |
java.lang.Object |
getObject(int i)
Get object associated with the key name. |
java.lang.Object |
getObject(java.lang.String skey)
Get object associated with the key name |
P1D |
getP1D(int index)
Get P1D object associated with the key index. |
P1D |
getP1D(java.lang.String skey)
Get P1D object associated with the key index. |
P1D |
getP1D(java.lang.String skey,
boolean ybin)
Get P1D object associated with the key index. |
java.lang.String |
getTitle()
Get ROOT title |
int |
getVersion()
Get ROOT version |
java.lang.String |
toString()
Return all root objects in form of a string |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HRoot(java.lang.String file)
file
- Input root fileMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public int getVersion()
public int getNKeys()
public java.lang.String getTitle()
public hep.io.root.interfaces.TKey getKey(int i)
i
- index of this key
public hep.io.root.interfaces.TKey getKey(java.lang.String skey)
skey
- key name
public H1D getH1D(java.lang.String skey)
skey
- key name
public H1D getH1D(int index)
index
- key index
public P1D getP1D(int index)
index
- index of the object
public P1D getP1D(java.lang.String skey)
skey
- name of the object
public P1D getP1D(java.lang.String skey, boolean ybin)
skey
- name of the objectybin
- if true, Y values are set to the mean in each bin.
if false - to the bin height.
public java.lang.Object getObject(java.lang.String skey)
skey
- key name
public java.lang.Object getObject(int i)
i
- key index
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |