Skip to content

Get list of top-level fields from RDataFrame #18733

Open
@vepadulano

Description

@vepadulano

Feature description

When calling

ROOT::RDataFrame df{"dataset", "filename.root"};
auto columnNames = df.GetColumnNames();

The user gets the fully expanded list of all column names. This includes all data members at all nesting levels in case a field has a complex class as its type.

It would be desirable in certain scenarios to be able to access only the list of top-level fields, e.g. when specifying the list of column names to a Snapshot call.

FYI @TomasDado

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