Skip to content

shipStrawTracking reconstructibility filter hardcodes motherId==2 (HNL topology) #1312

Description

@olantwin

In python/shipStrawTracking.py (~line 805), the reconstructibility denominator drops every MC track whose mother isn't index 2:

motherId = atrack.GetMotherId()
if motherId != 2:  #!!!!
    itemstoremove.append(item)

This hardcodes the assumption that signal tracks descend from an HNL stored at MCTrack index 2. For any other topology (or an HNL not at index 2), the efficiency denominator is wrong. The #!!!! marker suggests the author knew this was a hack.

This needs a design decision (make the signal-mother selection configurable / detect it robustly) rather than a mechanical fix. Found during a code review.

Metadata

Metadata

Assignees

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