Skip to content

Per RSample friend tree + option to BuildIndex #14933

Open
@TomasDado

Description

@TomasDado

Feature description

Hi,

I would like to use the functionality of RDatasetSpec object to setup my RDataFrame code. However, this seems to lack one crucial functionality: the option to match events from different trees using friend trees and the "BuildIndex" functionality. I see that the object allows to pass some global friends via "WithGlobalFriends" but this adds a global friend trees without the option of matching events from the trees. One would also not want to match the events between the individual samples and a global friend tree.

What I would want is to have an option to define per sample a tree/tchain that would be added as a friend tree for that given sample with the option to match the events between the trees using BuildIndex or similar functionality.

What this would mean in practice is probably to add FriendInfo support for the individual RSamples. This is also what is natural for my setup (which is rather common I think) where you want to match detector level events (one TTree) and truth level events (another TTree) and this matching is different for different samples in the specification.

Please, let me know if this is a reasonable thing or there is some workaround available already.

Best,
Tomas

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions