Repository navigation
SVertexer: fix V0 index of cascades when the V0 is cloned for other PVs - #16227
Merged
shahor02 merged 1 commit intoNov 27, 2026
Merged
Conversation
Fixes two errors in the V0 index that SVertexer sets in cascades when a V0 is cloned with another primary vertex for a cascade: 1. checkCascades: when a second cascade reuses the clone already made for its primary vertex, the clone's index was taken from mV0sTmp.size(). mV0sTmp is only filled with createFullV0s=true, so with the default the index is 0 and the cascade points to V0 0 of the thread, a V0 with other tracks. Introduced in c07f254. 2. checkV0: cascades that use the V0 with its own primary vertex got nV0Ini. The clones are added before the V0 itself, so these cascades pointed to the first clone: same tracks, but another primary vertex. This happens for any createFullV0s setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shahor02
approved these changes
Nov 27, 2026
shahor02
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for spotting/fixing!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes two errors in the V0 index that
SVertexersets in cascades when a V0 is cloned with another primary vertex (PV) for a cascade:checkCascades: when a second cascade reuses the clone already made for its PV, the clone's index was taken frommV0sTmp.size().mV0sTmpis only filled withcreateFullV0s=true, so with the default the index is 0 and the cascade points to V0 0 of the thread, a V0 with other tracks. Introduced in c07f254.checkV0: cascades that use the V0 with its own PV gotnV0Ini. The clones are added before the V0 itself, so these cascades pointed to the first clone: same tracks, but another PV. This happens for anycreateFullV0ssetting.Effect without the fix (current dev, run 568663, 30 TFs, 807 953 cascades):
createFullV0s=falsethan withtrue.createFullV0s=true, to a V0 whose PV is not the cascade's PV.Test with the fix (one MC TF,
createFullV0s=false): the number of cascades is unchanged (546). The 2 cascades that pointed to a V0 at another PV now point to the right V0, and the other 544 are unchanged.🤖 Generated with Claude Code