cms-l1-dpg / Phase2-L1MenuTools

This repository contains the framework for the measurement of matching efficiencies, trigger turn-on curves, and scalings for the assessment of the physics performance of the CMS Phase-2 L1 Menu.
3 stars 10 forks source link

Multi-object rate plots #79

Open artlbv opened 5 months ago

artlbv commented 5 months ago

As proposed/requested by @EmyrClement the idea is to make rate vs threshold plots, but for multiple identical objects, e.g. two Taus of the same kind or two jets etc.

This would be an extension to the current rate plotting mechanism in here: https://github.com/cms-l1-dpg/Phase2-L1MenuTools/blob/main/menu_tools/rate_plots/plotter.py#L242

An idea would be to add an option of Nobjects to the plot config, and then in the above code look at the pt of the n-th object (passing all ID cuts), given that they are pt sorted (TBC, as we might be using offline pt which could affect pt sorting): ak.max(max_pt_obj, axis=1) -> ak.firsts(max_pt_obj[:,Nobj])