Skip to content

Aliases and cuts when reading ROOT file #543

Answered by jpivarski
CaetanoE asked this question in Q&A
Discussion options

You must be logged in to vote

Not a stupid question, of course! I was going to say that a similar thing was asked on Gitter, but I see that was you. Since you've been working on this for a few days, I'll write out a detailed explanation.

The only hard/not currently possible part of what you want to do is adding branches to an existing TTree. The problem there is that Uproot would have to overwrite the TTree metadata (the part of the file that specifies what branches exist and what their types are) but not the preexisting data. That function just hasn't been written, and I can tell you that such a function wouldn't be a small extension of what already exists. It would be a large project.

If you want to write the result…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CaetanoE
Comment options

Answer selected by CaetanoE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants