Skip to content

feat(jets): accept pt as the jet magnitude - #1047

Open
AnKiT-GaRG2 wants to merge 1 commit into
HSF:mainfrom
AnKiT-GaRG2:feat/jet-pt-magnitude
Open

AnKiT-GaRG2 wants to merge 1 commit into
HSF:mainfrom
AnKiT-GaRG2:feat/jet-pt-magnitude

Conversation

@AnKiT-GaRG2

Copy link
Copy Markdown

Refs #350

Jets took their length from energy or et only, so event data that stores pT had to put it in an energy field. This also accepts pt: energy is used first, then et, then pt, so existing data is unaffected.

  • PhoenixObjects.getJet falls back to pt
  • guides/developers/event_data_format.md documents the three fields
  • new test checks the jet length comes from pt when energy and et are absent (fails without the change)

phoenix-objects.test.ts passes and prettier is clean. I haven't looked at it in the browser. This only covers the loader; whether the UI label and cut should say "energy" for pT-based jets is a separate question I left open on the issue.

AI disclosure: an AI coding assistant helped prepare this change. The tests above were run locally.

Jets took their length from energy or et only. Also accept pt so event data
that stores transverse momentum does not have to put it in an energy field.
energy is still used first, then et, then pt. Documented in the event data
format guide and covered by a test.

Refs HSF#350

Signed-off-by: Ankit Garg <146389256+AnKiT-GaRG2@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant