Transition tutorial examples from Associations to Links - #12
Conversation
Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>
Thank you!Thank you for your pull request 😃 🤖 This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}. If you have files that automatically render output (e.g. R Markdown), then you should check for the following:
Rendered Changes🔍 Inspect the changes: https://github.com/eic/tutorial-analysis/compare/md-outputs..md-outputs-PR-12 The following changes were observed in the rendered markdown documents: What does this mean?If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible. This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation. ⏱️ Updated at 2026-08-30 16:20:39 +0000 |
There was a problem hiding this comment.
Pull request overview
This PR updates the tutorial documentation and example macros to align with the current EICrecon output schema by replacing legacy *_Associations_* usage with *_Links_* branches and updating related narrative text.
Changes:
- Updated pruning examples to keep link-related branches instead of association branches.
- Updated C++ (TTreeReader) and Python examples to use
_ReconstructedChargedParticleLinks_{from,to}.indexandTTreeReaderArray<unsigned int>. - Reworded tutorial text from “association” to “link” across the lesson and learner docs.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| learners/tree-pruning-script.md | Updates the pruning script snippet to retain *Links* branches. |
| learners/files/TreePrune.C | Updates the actual ROOT pruning macro to keep link branches (needs a small pattern fix). |
| learners/exercise-scripts.md | Migrates multiple exercise code templates (C++/Python/RDF) from associations to links. |
| learners/branch-dictionary.md | Renames branch sections and updates explanatory text to “links” (needs a wording correction). |
| episodes/03-analysis.md | Updates Episode 3 tutorial narrative and code blocks to use link-based branches and unsigned indices. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
sjdkay
left a comment
There was a problem hiding this comment.
Looks good, even a typo fix to boot.
Auto-generated via `{sandpaper}`
Source : d994466
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-09-03 15:04:14 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 5b3627b
Branch : main
Author : Wouter Deconinck <wdconinc@gmail.com>
Time : 2026-09-03 15:01:54 +0000
Message : Merge pull request #12 from eic/copilot/eic-11-transition-associations-to-links
Transition tutorial examples from Associations to Links
Auto-generated via `{sandpaper}`
Source : d994466
Branch : md-outputs
Author : GitHub Actions <actions@github.com>
Time : 2026-09-03 15:04:14 +0000
Message : markdown source builds
Auto-generated via `{sandpaper}`
Source : 5b3627b
Branch : main
Author : Wouter Deconinck <wdconinc@gmail.com>
Time : 2026-09-03 15:01:54 +0000
Message : Merge pull request #12 from eic/copilot/eic-11-transition-associations-to-links
Transition tutorial examples from Associations to Links
The tutorial and example macros were still using the legacy EICrecon association naming while the current tree layout exposes link-based branches and index arrays. This left the examples out of sync with the actual data products and their naming conventions.
Scope
*_Links_*branch names instead of the legacy*_Associations_*names.TTreeReaderArray<unsigned int>and aligned thefrom/toindex branches with the current EICrecon schema.Examples updated
"_ReconstructedChargedParticleAssociations_rec.index"→"_ReconstructedChargedParticleLinks_from.index""_ReconstructedChargedParticleAssociations_sim.index"→"_ReconstructedChargedParticleLinks_to.index"TTreeReaderArray<int>→TTreeReaderArray<unsigned int>Notes