Int eff
puma.integrated_eff.IntegratedEfficiency
#
Bases: puma.plot_base.PlotLineObject
Represent a single IntegratedEfficiency curve.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
disc_sig
|
numpy.ndarray
|
Discriminant values for signal |
required |
disc_bkg
|
numpy.ndarray
|
Discriminant values for background |
required |
key
|
str | None
|
Identifier for IntegratedEfficiency e.g. tagger, by default None |
None
|
n_vals
|
int
|
Number of values to calculate the efficiency at, by default 500 |
500
|
tagger
|
str | None
|
Tagger name, by default None |
None
|
flavour
|
str | ftag.Label
|
Flavour label of the jets, by default None |
None
|
**kwargs
|
typing.Any
|
Keyword arguments passed to |
{}
|
Source code in puma/integrated_eff.py
puma.integrated_eff.IntegratedEfficiencyPlot
#
Bases: puma.plot_base.PlotBase
IntegratedEfficiencyPlot class.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
grid
|
bool
|
Set the grid for the plots. |
True
|
**kwargs
|
typing.Any
|
Keyword arguments from |
{}
|
Source code in puma/integrated_eff.py
add
#
Adding puma.Roc object to figure.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
int_eff
|
puma.integrated_eff.IntegratedEfficiency
|
IntegratedEfficiency curve |
required |
key
|
str | None
|
Unique identifier for IntegratedEfficiency curve, by default None |
None
|
Raises:
| Type | Description |
|---|---|
KeyError
|
If unique identifier key is used twice |
Source code in puma/integrated_eff.py
draw
#
Draw plotting.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x_label
|
str
|
x-axis label, by default Discriminant |
'Discriminant'
|
Source code in puma/integrated_eff.py
get_xlim_auto
#
Returns min and max efficiency values.
Returns:
| Type | Description |
|---|---|
float
|
Min and max efficiency values |
Source code in puma/integrated_eff.py
make_legend
#
Make legend.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
handles
|
list
|
List of handles |
required |
Source code in puma/integrated_eff.py
plot
#
Plotting integrated efficiency curves.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
typing.Any
|
Keyword arguments passed to plt.axis.plot |
{}
|
Returns:
| Type | Description |
|---|---|
puma.line_plot_2d.Line2D
|
matplotlib Line2D object |