Skip to content

Adding eff vs variable plot

Maxence Draguet requested to merge adding_eff_vs_variable_plot into master

This MR aims to add a plotter for efficiency in b-tag + rejection (c, l, and taus) vs any variable (that need to be included in the json files produced by evaluate). Can be used to plot eff+rej vs pT, eta, pile-up, ... It also plots the variable being considered.

Should be flexible enough to cover most cases. The distribution is plotted in bins of the variable demanded, with binomial error for the efficiencies. Supports global and flat b-tag efficiencies per bin.

Two example plots are attached. An example of a set of instruction to plot it is in examples/plotting_umami_config_DL1r.yaml

eff_vs_pt_0_efficiency.pdf

eff_vs_pt_0_distr.pdf

Edited by Maxence Draguet

Merge request reports