Skip to content

Implement Gamma Plotting per CAS Software Requirements (Sections 2.5.1 & 2.5.2) #59

@tyronechrisharris

Description

@tyronechrisharris

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 all Sd.

Gamma Sigma:

  • σγ = sqrt(B) where B is the background.
  • Plot in sigma units using:
    • Expert: Gσ = (Sd - Bd) / sqrt(Bd)
    • Standard: Gσ = (Stotal - Btotal) / sqrt(Btotal)
  • 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 = ∑Bd from 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions