Skip to content

Need more user friendly way of dealing with friend trees and dataframes #17801

Open
@acampove

Description

@acampove

Feature description

Problem

We have multiple trees t1 t2 t3, etc. For each of them, we have a set of 100 files that contain them. I.e. we have 300 files. However the trees t1 contain most of the branches, we just add extra branches through the latter two sets of files. I.e. this is the classical friend tree issues.

Solution needed

We need something like:

from ROOT import RDataFrame

rdf = RDataFrame('treename')
rdf = rdf.AddFiles('/path/to/tree1/files/*.root')
rdf = rdf.AddFiles('/path/to/tree2/files/*.root')
rdf = rdf.AddFiles('/path/to/tree3/files/*.root')

Currently I am writting my own classes to do this, mostly because you haven't spent time building something that can do this. Could you please work on it?

Thanks.

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions