Skip to content

Dispatch GetMinum,GetMaximum calculations to friend when necessary#22677

Open
vepadulano wants to merge 3 commits into
root-project:masterfrom
vepadulano:gh-22652
Open

Dispatch GetMinum,GetMaximum calculations to friend when necessary#22677
vepadulano wants to merge 3 commits into
root-project:masterfrom
vepadulano:gh-22652

Conversation

@vepadulano

Copy link
Copy Markdown
Member

Fixes #22652

This commit introduces testing for GetMinimum,GetMaximum in case the requested column belongs to a friend tree.

Two tests are taken directly from the reproducer reported by a user at https://root-forum.cern.ch/t/ttree-getminimum-getmaximum-only-scan-one-file-of-a-friend-tchain/64905

A third test exercises in particular the correct updating of the branch addresses of the friend TChain when it switches to another file even though the main TChain is still traversing the same file.
Implement a similar strategy to what was done for GetBranch in root-project@30860f3 .

This will be used in a later commit to dispatch a call to Get[Minimum,Maximum] to a friend if it has the input column name.
If the input column name belongs to a friend, the methods now dispatch the calculation to the friend itself to ensure the branch/leaf addresses are properly updated.
@github-actions

Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 13h 47m 20s ⏱️
 3 872 tests  3 871 ✅ 0 💤 1 ❌
76 462 runs  76 461 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit 9990ddf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong behaviour in TTree::[GetMinimum,GetMaximum]

1 participant