Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor update for auxtask plots #273

Merged
merged 5 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading