-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Description
Implement gamma data plotting functionality as specified in Sections 2.5.1 and 2.5.2 of the SLD_CAS Software Graphing Requirements_R1.0(2010-09).pdf
📈 Requirements Summary
Gamma Data Plotting (Section 2.5.1)
- Sampling rate: Plot a new gamma data point every 200ms.
- Initial burst: First plotted point is derived from the burst of 5 gamma messages at occupancy start. Plot only the most recent (
γt); the previous 4 are used in rolling sum. - Expert View: For each detector panel, gamma counts (
Sd) = sum of current + previous 4 samples (5-sample rolling window). - Standard View: Total gamma counts (
Stotal) = sum of allSd.
Gamma Sigma:
σγ = sqrt(B)whereBis the background.- Plot in sigma units using:
- Expert:
Gσ = (Sd - Bd) / sqrt(Bd) - Standard:
Gσ = (Stotal - Btotal) / sqrt(Btotal)
- Expert:
- Negative values must be plotted as-is.
Gamma Background (Section 2.5.2)
- Expert View: Background
Bd= field from last GB message before occupancy. - Standard View:
Btotal = ∑Bdfrom all panels. - Background shown as dashed horizontal line, not interfering with data traces.
- In Sigma mode, background = 0.
✅ Deliverables
- Gamma plotting logic for:
- Expert view
- Standard view
- Y-axis toggle: Counts or Sigma
- Background marker overlay
- Solid line for data, dashed for background
- Test coverage for:
- Rolling sum calculations
- Sigma transformations
- Background retrieval from GB message
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels