Skip to content

Propagate Electron ID score to GT object#154

Open
gpetruc wants to merge 1 commit intop2l1pfp:L1PF_15_1_Xfrom
gpetruc:eleId_to_GT_15X
Open

Propagate Electron ID score to GT object#154
gpetruc wants to merge 1 commit intop2l1pfp:L1PF_15_1_Xfrom
gpetruc:eleId_to_GT_15X

Conversation

@gpetruc
Copy link
Copy Markdown
Collaborator

@gpetruc gpetruc commented Mar 30, 2026

Propagate Electron ID score to GT object, object using the same format as jet tagging (ap_ufixed<8,1>), range [0.0, 1.0] with LSB=1/128

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the GT electron hardware data model to carry an electron ID score (stored as an ap_ufixed<8,1> probability-like quantity) and propagates the score from the L1CT electron object into the GT electron object during conversion.

Changes:

  • Add idScore field to l1gt::Electron and include it in pack/unpack bit-serialization.
  • Add CTtoGT_idProba helper to convert l1ct::id_score_t (≈[-1, 1)) into l1gt::id_proba_t (intended [0,1]).
  • Populate l1gt::Electron::idScore in EGIsoEleObj::toGT().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
DataFormats/L1TParticleFlow/interface/gt_datatypes.h Adds idScore to GT electron bit-format and introduces CT→GT ID-score conversion helper.
DataFormats/L1TParticleFlow/interface/egamma.h Wires L1CT electron ID score into the GT electron object during toGT() conversion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gpetruc
Copy link
Copy Markdown
Collaborator Author

gpetruc commented Mar 30, 2026

@gpetruc gpetruc requested a review from cerminar March 31, 2026 12:06
@gpetruc gpetruc changed the title Draft: Propagate Electron ID score to GT object Propagate Electron ID score to GT object Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants