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

Add Phase-2 Level-1 trigger ML MET emulator [14_0_0_pre3] #1193

Conversation

jmduarte
Copy link
Member

@jmduarte jmduarte commented Dec 22, 2023

PR description:

PR validation:

@jmduarte jmduarte changed the title L1metml 1330pre3 Add Phase-2 Level-1 trigger ML MET emulator [13_3_0_pre3] Dec 22, 2023
@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

Attempts to compile this PR succeeded!

Info Value
return code 0
command eval scramv1 runtime -sh && scram b -j 8

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

I found no issues with the code checks!

Info Value
return code 0
command eval scramv1 runtime -sh && scram b -k -j 8 code-checks && scram b -k -j 8 code-checks

I found no issues with the headers!

Info Value
return code 0
command eval scramv1 runtime -sh && scram b -k -j 8 check-headers

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

I found 1 files that did not meet formatting requirements:

  • L1Trigger/L1TTrackMatch/plugins/L1TrackJetClustering.h

Please run scram b code-format to auto-apply code formatting

Info Value
return code 0
command eval scramv1 runtime -sh && scram b -k -j 8 code-format-all

@aloeliger aloeliger added Phase-2 Pertains to phase-2 development Emulator Development Emulator development PR labels Jan 17, 2024
Comment on lines 138 to 151
switch (abs(pdgId)) {
case 211:
return 1;
case 130:
return 2;
case 22:
return 3;
case 13:
return 4;
case 11:
return 5;
default:
return 0;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a slightly picky thing, would you mind commenting the actual particle name after their PDG codes? It may save a few people a trip to the handbook.

And just so I understand, is the return value here supposed to help with indexing a one hot encoded feature?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the particle names.

Yes, this is so we can input these into a Keras embedding layer: https://keras.io/api/layers/core_layers/embedding/

It's sort of like a one-hot encoding, but potentially more efficient (smaller dimensional space).

@@ -12,6 +12,8 @@
<use name="tensorflow"/>
<use name="roottmva"/>
<use name="hls"/>
<use name="hls4mlEmulatorExtras"/>
<use name="L1METML"/>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I ask what the earliest version of CMSSW is that has L1METML? This isn't a problem for you, but we may need to make sure the IB is up to a version that supports your model in CMSSW.

Copy link
Member Author

@jmduarte jmduarte Feb 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was merged on December 20: cms-sw/cmsdist#8901 so I believe CMSSW_14_0_0_pre2 has it (built on December 22), but if not, definitely CMSSW_14_0_0_pre3 has it.

@aloeliger aloeliger added the Physics Affecting A PR expected to affect Physics content of the trigger label Jan 22, 2024
@aloeliger
Copy link

@jmduarte Just a ping on the review comments

@aloeliger aloeliger changed the base branch from phase2-l1t-integration-13_3_0_pre3 to phase2-l1t-integration-14_0_0_pre3 February 5, 2024 15:42
@jmduarte
Copy link
Member Author

jmduarte commented Feb 13, 2024

Rebased PR, and replied to questions, sorry for the delay!

@jmduarte jmduarte changed the title Add Phase-2 Level-1 trigger ML MET emulator [13_3_0_pre3] Add Phase-2 Level-1 trigger ML MET emulator [14_0_0_pre3] Feb 13, 2024
@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

Attempts to compile this PR succeeded!

Info Value
return code 0
command eval scramv1 runtime -sh && scram b -j 8

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

I found no issues with the code checks!

Info Value
return code 0
command eval scramv1 runtime -sh && scram b -k -j 8 code-checks && scram b -k -j 8 code-checks

I found no issues with the headers!

Info Value
return code 0
command eval scramv1 runtime -sh && scram b -k -j 8 check-headers

@triggerDoctor
Copy link

Hello, I'm triggerDoctor. @aloeliger is testing this script for L1T offline software validation.

I found no files with code format issues!

Info Value
return code 0
command eval scramv1 runtime -sh && scram b -k -j 8 code-format-all

@aloeliger
Copy link

@jmduarte In order to start constructing a protoytype branch for the menu team to validate, this PR is being merged immediately. If there is no corresponding PR to CMSSW, please make it now.

@aloeliger aloeliger merged commit 180bc4a into cms-l1t-offline:phase2-l1t-integration-14_0_0_pre3 Feb 14, 2024
@jmduarte
Copy link
Member Author

@aloeliger thanks! I see you already commented on the CMSSW PR cms-sw#43633.

One question I had is should I open a backport to 14_0_X in CMSSW? Or should I ask this in the other PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Emulator Development Emulator development PR Phase-2 Pertains to phase-2 development Physics Affecting A PR expected to affect Physics content of the trigger
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants