public class DataSource extends Object implements Cloneable, Serializable
Constructor and Description |
---|
DataSource()
Simplest constructor.
|
DataSource(H1D s,
H1D b,
H1D d)
Adds one channel with signal, background and data given as input.
|
DataSource(H1D s,
H1D b,
H1D d,
double es,
double eb,
double ed,
String name)
Another constructor, directly adds one channel with signal, background
and data given as input.
|
DataSource(P1D s,
P1D b,
P1D d)
Adds one channel with signal, background and data given as input.
|
Modifier and Type | Method and Description |
---|---|
void |
addChannel(DataKeeper s,
DataKeeper b,
DataKeeper d)
Adds a channel with signal, background and data given as input.
|
void |
addChannel(DataKeeper s,
DataKeeper b,
DataKeeper d,
double es,
double eb,
double ed,
String name)
Adds a channel with signal, background and data given as input.
|
void |
addChannel(H1D s,
H1D b,
H1D d)
Adds a channel with signal, background and data given as input.
|
void |
addChannel(H1D s,
H1D b,
H1D d,
double es,
double eb,
double ed,
String name)
Adds a channel with signal, background and data given as input.
|
void |
addChannel(P1D s,
P1D b,
P1D d)
Adds a channel with signal, background and data given as input.
|
void |
addChannel(P1D s,
P1D b,
P1D d,
double es,
double eb,
double ed,
String name)
Adds a channel with signal, background and data given as input.
|
Object |
clone()
Allow cloning
|
ArrayList<DataKeeper> |
getBackground()
Get data for background
|
ArrayList<DataKeeper> |
getCandidates()
Get data with candidates
|
ArrayList<String> |
getErrorNames()
Get names of the errors
|
ArrayList<Double> |
getErrorOnBackground()
Get systematics on background for all channels
|
ArrayList<Double> |
getErrorOnData()
Get systematics on data for all channels
|
ArrayList<Double> |
getErrorOnSignal()
Get errors on signal on all channels
|
int |
getNumberChennels()
Get total numberer of channels
|
ArrayList<DataKeeper> |
getSignal()
Get data for signal
|
void |
SetOwner()
Initialize all arrays
|
public DataSource()
public DataSource(H1D s, H1D b, H1D d)
s
- Signal histogramb
- Background histogramd
- Observed data histogrampublic DataSource(P1D s, P1D b, P1D d)
s
- Signalb
- Backgroundd
- Datapublic DataSource(H1D s, H1D b, H1D d, double es, double eb, double ed, String name)
s
- Signal histogramb
- Background histogramd
- Data histogrames
- Error on signaleb
- Error on backgrounded
- Error on dataname
- name indicating this systematicspublic void addChannel(H1D s, H1D b, H1D d)
s
- Signal histogramb
- Background histogramd
- Observed data histogrampublic void addChannel(P1D s, P1D b, P1D d)
s
- Signalb
- Backgroundd
- Datapublic void addChannel(DataKeeper s, DataKeeper b, DataKeeper d, double es, double eb, double ed, String name)
s
- Signal expectedb
- Background expectedd
- Data observedes
- Systematic error on signaleb
- Systematic error on backgrounded
- Systematic error on dataname
- Name for this data sourcepublic void addChannel(DataKeeper s, DataKeeper b, DataKeeper d)
s
- Signal expectedb
- Background expectedd
- Data observedpublic ArrayList<DataKeeper> getSignal()
public ArrayList<DataKeeper> getBackground()
public ArrayList<DataKeeper> getCandidates()
public ArrayList<Double> getErrorOnSignal()
public ArrayList<Double> getErrorOnBackground()
public ArrayList<Double> getErrorOnData()
public void addChannel(H1D s, H1D b, H1D d, double es, double eb, double ed, String name)
s
- Signal histogramb
- Background histogramd
- Data histogrames
- Systematic on signaleb
- Systematic on backgrounded
- Systematic on dataname
- Name for this channelpublic void addChannel(P1D s, P1D b, P1D d, double es, double eb, double ed, String name)
s
- Expected signal P1Db
- Expected background P1Dd
- Measured data P1Des
- systematic on signaleb
- systematic on backgrounded
- systematic on dataname
- name for this channelpublic int getNumberChennels()
public void SetOwner()
swtch
- Jas4pp 1.5 © Java Analysis Studio for Particle Physics