Skip to content

Fix recovery of old signal files containing tracks - #578

Merged
cmargalejo merged 1 commit into
masterfrom
fix/legacy-recovery-preserve-branches-slim
Nov 17, 2026
Merged

cmargalejo merged 1 commit into
masterfrom
fix/legacy-recovery-preserve-branches-slim

Conversation

@cmargalejo

@cmargalejo cmargalejo commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

cmargalejo Ok: 40 Powered by Pull Request Badge

Recovering an old REST file can crash if it also contains tracks written with an older version of tracklib.

Recovery creates a copy of the complete file and rebuilds its detector-signal data. This change preserves the other branches directly in that copy, avoiding the step that causes the crash. The original file is unchanged.

This is a smaller version of #577. It changes only one file, the one that implements the fix itself. The test code remains in #577.

The fix was tested with ROOT 6.26.10 and 6.38.06, including recovery of the real TREX data file R00236.

@Vindaar Vindaar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this seems sensible. Being able to avoid the redundant CloneTree is a nice bonus anyway. The original usage of CloneTree spared us from the manual branch removal and byte counter adjustments we now need to do.

@cmargalejo
cmargalejo merged commit 189fd67 into master Nov 17, 2026
64 checks passed
@cmargalejo
cmargalejo deleted the fix/legacy-recovery-preserve-branches-slim branch November 17, 2026 11:21
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.

4 participants