Skip to content

fix: indexing issue between DECAYS::Particle and REC::VertDoca bank#1212

Open
skuditha wants to merge 1 commit intoJeffersonLab:developmentfrom
skuditha:development
Open

fix: indexing issue between DECAYS::Particle and REC::VertDoca bank#1212
skuditha wants to merge 1 commit intoJeffersonLab:developmentfrom
skuditha:development

Conversation

@skuditha
Copy link
Copy Markdown
Contributor

Fix off-by-one mismatch in REC::VertDoca matching for decay reconstruction.

The decay code was comparing p1.getIdx()-1 / p2.getIdx()-1 to REC::VertDoca.index1 / index2, which caused valid charged-particle pairs to miss the vertex-bank match and be dropped from DECAYS::Particle.

This PR removes the unnecessary -1 offset in the four affected comparisons so that REC::Particle indices are matched correctly to REC::VertDoca. This restores missing valid decay candidates without changing the reconstruction logic otherwise.

@skuditha skuditha marked this pull request as ready for review April 17, 2026 14:48
@skuditha skuditha requested a review from zieglerv as a code owner April 17, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant