Skip to content

Preserve unrelated branches during legacy signal recovery - #577

Closed
cmargalejo wants to merge 1 commit into
masterfrom
fix/legacy-recovery-preserve-branches
Closed

cmargalejo wants to merge 1 commit into
masterfrom
fix/legacy-recovery-preserve-branches

Conversation

@cmargalejo

@cmargalejo cmargalejo commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

cmargalejo Large: 306 Powered by Pull Request Badge

Superseded by #578.

That PR contains the same recovery fix without the additional test code.
The tests and validation details remain here for reference.

Legacy detector-signal recovery can abort while cloning an unrelated old track branch when the loaded class dictionary has removed a historical TObject base. This reproduces with R00236 and the updated tracklib on both ROOT 6.26 and 6.38 (fUniqueID is missing). It is separate from the newer-ROOT compilation fix in #576.

Keep the unaffected branches and their existing basket references in the file copy, and rebuild only the detector-signal branch. Update the tree byte counters and replace obsolete EventTree header cycles. The original file remains unchanged, and the existing validation and atomic output publication are retained.

Add a regression that writes an unrelated split branch with the old TObject-based schema, then loads a newer dictionary without that base during recovery. It verifies historical track values, unchanged unrelated basket/key bytes and offsets, valid leaves, byte counters, and a single EventTree cycle. The test uses detectorlib's existing recovery fixtures and runs on Linux/Unix with LD_PRELOAD; it is disabled on macOS.

Validation:

  • ROOT 6.26.10 and 6.38.06: the new regression fails with the previous recovery code and passes with the fix; all four existing recovery tests also pass on each version.
  • Before publication, rebuilt the recovery translation unit against the existing REST installations, rebuilt the regression fixtures from this PR, and reran the four existing tests plus the new CTest on both ROOT versions. This is targeted validation, not a fresh full-framework build.
  • R00236: 261 events, 19,750 signals and 447,902 points preserved; unrelated event/analysis baskets and 12 unrelated key records remain byte-identical at their original offsets. Checked updates, a 522-event merge, and processing with one and two threads pass.
  • Repository-pinned clang-format, cmake-format and Black checks pass.

This PR contains no library-pointer or dependency-version changes. It fixes the framework recovery path; generic ROOT cloning of old tracks and the previously identified XML-configuration loss during merging remain separate issues.

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