Skip to content

Implement Hit Subtraction Logic in Multi-Track Finder #23

Description

@anveshmy

Location:

  • QTracker_main/src/models/multi_track_finder.py in dev branch

Problem:
The current multi-track finder does not remove or suppress hits belonging to already identified tracks. Without this, repeated runs can produce identical or confused track proposals.

Naively zeroing out hits is insufficient due to:

  • Error propagation
  • Overlapping tracks
  • Shared detector elements

Proposed Solution:
Implement soft subtraction based on detector-wise softmax scores.

Algorithm:
For each detector in an event:

  1. Identify the detector element ID predicted to be a signal hit for the current track.
  2. Retrieve the highest softmax probability for that detector.
  3. Subtract this probability from the corresponding hit value.

Example:

  • Detector: I
  • Event: J
  • Element ID: K
  • Predicted signal hit softmax: 0.9
  • Original hit value: 1.0
  • Updated hit value: 1.0 - 0.9 = 0.1

Safety Constraint:

  • Enforce a lower bound of zero to avoid negative values:
    new_value = max(0.0, original_value - softmax_value)

This handles cases where overlapping mu+ and mu- tracks share the same detector element.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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