public class CFBook extends Object
Constructor and Description |
---|
CFBook()
Initialize CFBook class.
|
CFBook(String description)
Initialize CFBook.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int id,
H1D h1d)
add H1D histogram to CFBook
|
void |
add(int id,
H2D h2d)
add H2D histogram to CFBook
|
void |
add(int id,
P1D p1d)
add P1D histogram to CFBook
|
void |
clear()
Remove all objects from the CFBook
|
H1D[] |
getAllH1D()
Get array with all H1D histograms.
|
H2D[] |
getAllH2D()
Get array with all H2D histograms.
|
P1D[] |
getAllP1D()
Get array with all P1D containers.
|
H1D |
getH1D(int id)
Get H1D histogram from the index (key)
|
H2D |
getH2D(int id)
Get H2D histogram from the index (key) ID
|
int[] |
getKeysH1D()
Get keys of all known H1D histograms.
|
int[] |
getKeysH2D()
Get keys of all known H2D histograms.
|
int[] |
getKeysP1D()
Get keys of all known P1D containers.
|
P1D |
getP1D(int id)
Get P1D object from the index (key)
|
String |
listAll()
List all objects inside CFBook
|
String |
listH1D()
List all known H1D histograms.
|
String |
listH2D()
List all known H1D histograms.
|
String |
listP1D()
List all known P1D objects.
|
void |
read(String file)
Read external XML file with all objects (H1D, H2D, P1D)
|
void |
write(String file)
write an external XML file with all
CFBook objects (H1D, H2D, P1D)
|
public CFBook(String description)
description
- description.public CFBook()
public void write(String file)
file
- output file namepublic void read(String file)
file
- input file namepublic H1D getH1D(int id)
id
- index or key of histogrampublic P1D getP1D(int id)
id
- index or key of P1Dpublic String listH1D()
public String listP1D()
public int[] getKeysH1D()
public int[] getKeysP1D()
public H1D[] getAllH1D()
public P1D[] getAllP1D()
public H2D[] getAllH2D()
public int[] getKeysH2D()
public String listH2D()
public String listAll()
public H2D getH2D(int id)
id
- indexpublic void add(int id, H1D h1d)
id
- key to be assignedh1d
- H1D histogram to be addedpublic void add(int id, H2D h2d)
id
- key to be assignedh2d
- H2D histogram to be addedpublic void add(int id, P1D p1d)
id
- key to be assignedp1d
- P1D histogram to be addedpublic void clear()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics