Reading values of branches with dots in names #313
Replies: 2 comments
-
Can you show more output from that file and also the error message? What is e.g. |
Beta Was this translation helpful? Give feedback.
-
Uproot doesn't do any special interpretation of the dots ( You can check to see if this string is exactly what you get from TTree.keys, possibly with It's also possible for ROOT to make a file with non-unique branch names. Uproot will pick the first that matches, at each level of hierarchy, if that's relevant. In this case, you need to select them by integer index. You can reverse-index them with TBranch.index (to find out which index to pass). |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm having trouble reading leaves of branches with uproot, where the branch names contain dots.
For example in my ROOT file, I have the branch "EventInfoAux.", which contains a leaf "eventNumber".
Normally I would access this with something like:
file["tree/EventInfoAux.eventNumber"]
However, this is not possible as it results in
file["tree/EventInfoAux..eventNumber"]
which uproot doesn't understand. Is there an easy solution to this?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions