Skip to content

Commit

Permalink
Minor update for auxtask plots (#273)
Browse files Browse the repository at this point in the history
* no colourbar by default

* better ylabel names

* changelog

* revert default, update aux results
  • Loading branch information
samvanstroud committed Jul 11, 2024
1 parent 8994fa5 commit 7f803c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changelog

### [Latest]

- Minor updates for aux task plots [!273](https://github.com/umami-hep/puma/pull/273)
- Added better support in yuma, allowing for tau rejection, tau tagging, and Xbb plots [!272](https://github.com/umami-hep/puma/pull/272)
- Redefined fake rate [!268](https://github.com/umami-hep/puma/pull/268)
- Removed padded tracks from consideration when generating track origin classification CM [!267](https://github.com/umami-hep/puma/pull/267)
Expand Down
15 changes: 10 additions & 5 deletions puma/hlplots/aux_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,36 +262,40 @@ def plot_var_vtx_perf(
if isinstance(flavour, str):
flav = Flavours[flavour]

# $n_{vtx}^{match}/n_{vtx}^{true}$
plot_vtx_eff = VarVsVtxPlot(
mode="efficiency",
ylabel=r"$n_{vtx}^{match}/n_{vtx}^{true}$",
ylabel="Efficiency",
xlabel=xlabel,
logy=False,
atlas_first_tag=self.atlas_first_tag,
atlas_second_tag=atlas_second_tag + f", {flav.label}",
y_scale=1.4,
)
# $n_{vtx}^{match}/n_{vtx}^{reco}$
plot_vtx_purity = VarVsVtxPlot(
mode="purity",
ylabel=r"$n_{vtx}^{match}/n_{vtx}^{reco}$",
ylabel="Purity",
xlabel=xlabel,
logy=False,
atlas_first_tag=self.atlas_first_tag,
atlas_second_tag=atlas_second_tag + f", {flav.label}",
y_scale=1.4,
)
# $n_{trk}^{match}/n_{trk}^{true}$
plot_vtx_trk_eff = VarVsVtxPlot(
mode="efficiency",
ylabel=r"$n_{trk}^{match}/n_{trk}^{true}$",
ylabel="Track Assignment Efficiency",
xlabel=xlabel,
logy=False,
atlas_first_tag=self.atlas_first_tag,
atlas_second_tag=atlas_second_tag + f", {flav.label}",
y_scale=1.4,
)
# $n_{trk}^{match}/n_{trk}^{reco}$
plot_vtx_trk_purity = VarVsVtxPlot(
mode="purity",
ylabel=r"$n_{trk}^{match}/n_{trk}^{reco}$",
ylabel="Track Assignment Purity",
xlabel=xlabel,
logy=False,
atlas_first_tag=self.atlas_first_tag,
Expand Down Expand Up @@ -362,7 +366,7 @@ def plot_var_vtx_perf(

plot_vtx_fakes = VarVsVtxPlot(
mode="fakes",
ylabel=r"$n_{vtx}^{reco}$",
ylabel="Vertex Rate",
xlabel=xlabel,
logy=False,
atlas_first_tag=self.atlas_first_tag,
Expand Down Expand Up @@ -457,6 +461,7 @@ def plot_track_origin_confmat(
ylabel="Target Classes",
atlas_second_tag=self.atlas_second_tag,
atlas_tag_outside=True,
show_cbar=False,
**kwargs,
)
plot_cm.draw(cm)
Expand Down

0 comments on commit 7f803c4

Please sign in to comment.