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

Export online thresholds from menu seeds #84

Open
artlbv opened this issue Aug 20, 2024 · 2 comments
Open

Export online thresholds from menu seeds #84

artlbv opened this issue Aug 20, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@artlbv
Copy link
Collaborator

artlbv commented Aug 20, 2024

For the Global Trigger (P2GT) we need to export the online thresholds of the L1 seeds we define in our menu.
I previously did this manually by loading all the scalings and printing the threshold (converted from offline to online pt) for each eta region. This should be automatised.

@artlbv artlbv added enhancement New feature or request good first issue Good for newcomers labels Aug 20, 2024
@Lara813
Copy link
Collaborator

Lara813 commented Nov 15, 2024

Hi @artlbv, I am not sure whether I understand that issue correctly. But would a solution be to take what is done here (

slope, offset = load_scaling_params(obj, "inclusive")
new_pt = new_pt + (pt_orig * slope + offset)
) already and safe the the return in some sort of output? And how would such an output look like

@artlbv
Copy link
Collaborator Author

artlbv commented Nov 15, 2024

Hi @Lara813 yes it would be this way. However with this PR this issue might be obsolete, as we directly export the MenuTools scalings to the CMSSW config of the Global Trigger: cms-sw/cmssw#46489

TBC also with @RobertJWard if this is still needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants