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
Retain tree name through TChain
with RNTupleImporter
#13088
Comments
TChain
TChain
with RNTupleImporter
Hi @bernhardmgruber , thank you for reporting this! I understand the problem, we need to make sure we give a meaningful name to the RNTuple. Regarding your specific example above, I have a doubt about the design. Since the input is a
|
Hello! I think in the case where the provided In any case, if a different name is desired, one can always call |
Yes.
That sounds too deliberate to me.
I think this would be the only sensible solution. But I don't kow how big
Again, I think this is too deliberate.
That is the the status quo, as observed by me. The name picked is |
Yes, sorry I should have given a bit more context. A Personally, I agree with @enirolf as I still think getting the first name is not that bad of an idea. It's surely not super elegant, but I believe it is at least better than giving it an arbitrary name like it's done currently. Maybe a compromise could be:
|
Alright, than maybe really just take the first tree's name. The algorithm for chosing a name involving a threshold may also be surprising to some users. Imagine relying on the |
One more thing to add, it is also possible to create a named
This will of course only work when all trees you want to chain have the same name so we should still do something for the other cases (or the case you described in the original post), but just wanted to point out that this is an option (and in this case, the importer will use the original name). |
Indeed. And this is the most common use case.
Technically this is inaccurate.
|
I think that we need to add a signature of For the default behavior I see only 2 sensible behavior:
Note that the 2nd behavior might actually be the prefer one ... depending on what we do if/when we encounter a
|
For completeness, auto imp = ROOT::Experimental::RNTupleImporter::Create(&chain, "B2HHH~zstd~10x.ntuple");
imp->SetNTupleName(“DecayTree”);
imp->Import(); My issue is just about an improvement of user experience. |
Hi @enirolf, @vepadulano, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
1 similar comment
Hi @enirolf, @vepadulano, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
Hi @enirolf, @vepadulano, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
1 similar comment
Hi @enirolf, @vepadulano, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
Explain what you would like to see improved and how.
The other day someone helpful suggested this way of creating an artifically enlarged ntuple file for testing:
Afterwards however, I was quite lost because the tree inside the result file was no longer called "DecayTree", but "ROOT::Experimental::RNTuple". I understand that if you mix multiple files with a
TChain
there is no unique name to pick. But if there was a unique name, I think it would be great to carry it over to the resulting file!ROOT version
ROOT Version: 6.29/01
Built for linuxx8664gcc on Jun 22 2023, 16:45:00
From heads/master@v6-29-01-1712-g1d65f2ecf4
Installation method
built from source
Operating system
Linux
Additional context
No response
The text was updated successfully, but these errors were encountered: