Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ntuple] Missing importer support for leaf count arrays in leaf list #16583

Open
1 task
jblomer opened this issue Oct 2, 2024 · 0 comments
Open
1 task

[ntuple] Missing importer support for leaf count arrays in leaf list #16583

jblomer opened this issue Oct 2, 2024 · 0 comments
Assignees

Comments

@jblomer
Copy link
Contributor

jblomer commented Oct 2, 2024

Check duplicate issues.

  • Checked for duplicates

Description

As discussed in #16478, the TTree feature of using a count leaf inside a leaf list is currently unsupported by the importer.

Reproducer

The following file cannot be imported:

std::unique_ptr<TFile> file(TFile::Open("tree.root", "RECREATE"));
auto tree = std::make_unique<TTree>("tree", "");
int count = 1;
struct {
   float foo = 2.0;
   Int_t values[20]; // is controled by [count]
} leafList;
leafList.values = new Int_t[1];
leafList.values[0] = 1;
tree->Branch("count", &count);
tree->Branch("leaflist", &leafList, "foo/F:values[count]/I");
tree->Fill();
tree->Write();

As well as having the count leaf inside the leaf list as well as "manually" encoding the leaf count arrays (see comments)

ROOT version

master

Installation method

n/a

Operating system

n/a

Additional context

No response

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

No branches or pull requests

1 participant