feat: add configurable masterclass panel with event bus for external integration#835
feat: add configurable masterclass panel with event bus for external integration#835
Conversation
|
Hey @EdwardMoyse @sponce , this account is my temporary replacement for my previous account remo-lab . |
|
Hi @rx18-eng, good to see you back ! I did not have time to look carefully to this PR yet, but I'll do it next week for sure. |
|
Thanks @sponce for your review ! it really means a lot coming from you. I was honestly a bit worried due to the overnight GitHub situation, so I really appreciate your feedback! |
…integration Signed-off-by: rx18-eng <remopanda78@gmail.com>
1fe94c1 to
778e531
Compare
|
@sponce does this feature looks good to you? |
|
Sorry, I thought I had commented about this, but I must have lost myself. |
Closes #824 #826
Adds a configurable masterclass panel for tagging particles and computing
invariant masses, designed to be reusable across experiments.
What it does
Students can select tracks from any collection, tag them as particle types,
see kinematic values in a table, and compute invariant masses. Results can be
recorded across events and exported as a text file.
Architecture
The panel is experiment-agnostic. All experiment-specific details
(particle types, masses, hints, event classification) are defined in a
MasterclassConfiginterface and passed as an input — not hardcoded.MasterclassConfig— defines particle tags (id, symbol, color, mass),educational hints, and a classification callback
ATLAS_MASTERCLASS_CONFIG— default config for ATLAS Z-path exercises(e±/μ±/γ, Z/Higgs/J/ψ hints)
config object — no component changes
Integration API
A lightweight event bus (
on/emit) is added toEventDisplay, enablingexternal frameworks to subscribe to live data:
This allows external tools (e.g. histogram frameworks) to react to user
actions without modifying Phoenix.
Files
Core library (phoenix-event-display):
MasterclassConfig/ParticleTagDef types + ATLAS default config
UI components (phoenix-ui-components):
@input()
App (phoenix-app):
Test plan
Recording.2026-03-13.160329.mp4